You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

gib

Beginner

  • "gib" is male
  • "gib" started this thread

Posts: 14

Location: New Zealand

Occupation: Scientist

  • Send private message

1

Saturday, September 18th 2010, 12:15am

Qt static build error: ActiveQt

I have just made my first attempt at a static build of Qt 4.6.3 (on Windows with MinGW). Unfortunately it has just thrown up a compile error ...

In file included from qaxbase.cpp:45:
qaxobject.h:44:30: error: ActiveQt/qaxbase.h: No such file or directory

From online info I see that ActiveQt is either not part of the opensource distribution, or is not buildable with MinGW tools. That's fine, I don't need it, but how can I exclude it from the build?

What I find surprising is that the shared library build of Qt worked fine.

2

Saturday, September 18th 2010, 6:29am

For win32/64 I recommend MS VS express + win sdk + directx sdk as development environment.

Maybe you have forgot to clean previous (shared) build before configuring and building new one.

If I remember good - in console
>configure.exe -help
Something like -no-activeqt (something with active ax etc).

afaik if you will use static linking with Qt libraries then you will be forced to disclose any such program sources.

Quoted


From online info I see that ActiveQt is either not part of the opensource distribution, or is not buildable with MinGW tools

Not quite true - http://doc.qt.nokia.com/4.6/activeqt.html

Quoted


The ActiveQt modules are part of the Qt Full Framework Edition and the Open Source Versions of Qt.
Fighting fire with fire.
Three can keep a secret if two of them are dead.

gib

Beginner

  • "gib" is male
  • "gib" started this thread

Posts: 14

Location: New Zealand

Occupation: Scientist

  • Send private message

3

Saturday, September 18th 2010, 7:55am

Hi, thanks for responding. I believe I did clean thoroughly, both confclean and distclean. BTW, what's the difference - do I really need to do both?
I don't see any option like -no-activeqt. The closest is -no-accessibility, but that didn't help.

I've now installed 2010.04, and am trying the static build. It goes past the activeqt compilation where it failed before, but fails with a different error later. This is in a separate directory.

gib

Beginner

  • "gib" is male
  • "gib" started this thread

Posts: 14

Location: New Zealand

Occupation: Scientist

  • Send private message

4

Saturday, September 18th 2010, 10:20am

Here is the error with Qt 2010.04, using
configure -static -release -platform win32-g++

g++ -static -static-libgcc -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-en
able-runtime-pseudo-reloc -Wl,-s -Wl,-subsystem,console -mthreads -Wl -o ..\..\.
.\bin\uic3.exe object_script.uic3.Release -L"c:\Qt\2010.04\qt\lib" -L"c:\Qt\201
0.04\qt\lib" -lQt3Support -lQtSql -lQtXml -lQtGui -lQtNetwork -lgdi32 -lcomdlg32
-loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lkernel32 -luser32 -l
shell32 -luuid -lole32 -ladvapi32 -lws2_32
c:\Qt\2010.04\qt\lib\libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x7fca):
undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.04\qt\lib\libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x83f4):
undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.04\qt\lib\libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x8812):
undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.04\qt\lib\libQtGui.a(qwhatsthis.o):qwhatsthis.cpp:(.text+0x122): unde
fined reference to `_imp___Z21qDeleteInEventHandlerP7QObject'
collect2: ld returned 1 exit status

5

Saturday, September 18th 2010, 1:11pm


gib

Beginner

  • "gib" is male
  • "gib" started this thread

Posts: 14

Location: New Zealand

Occupation: Scientist

  • Send private message

6

Sunday, September 19th 2010, 12:09am

Trying this now ... BTW is Qt-2010.04 the same as Qt-4.7?

...

No good, same error.

This post has been edited 2 times, last edit by "gib" (Sep 19th 2010, 4:08am)