Hello! I have spent about a week trying to find out correct options to build my QT staticly. I made a nice program that is ready for distribution and I would like to make everyting in one file so I just give this one file to people and it will run on their Windows with no any other files needed. I managed to do such things in past with my previous programs on previous QT versions but this time I got stuck for a while.
The QT version is 4.7.0 (x32). First I got error on builidng uic and found on the Forum to use "-no-qt3support" option. That helped. But now I'm getting an error on my program compilation
c:\Qt\2010.04\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x8e0f): undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.04\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x9443): undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.04\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x9a6b): undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.04\qt\lib/libQtGui.a(qwhatsthis.o):qwhatsthis.cpp:(.text+0xfc): undefined reference to `_imp___Z21qDeleteInEventHandlerP7QObject'
c:\Qt\2010.04\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x8e0f): undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.04\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x9443): undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.04\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x9a6b): undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.04\qt\lib/libQtGui.a(qwhatsthis.o):qwhatsthis.cpp:(.text+0xfc): undefined reference to `_imp___Z21qDeleteInEventHandlerP7QObject'
To copy to clipboard, switch view to plain text mode
I have also tried "-no-webkit" option but it didn't help.
So the last thing I did:
configure -static -no-qt3support
configure -static -no-qt3support
To copy to clipboard, switch view to plain text mode
(20-30 minutes compilations)
mingw32-make sub-src
mingw32-make sub-src
To copy to clipboard, switch view to plain text mode
(another 5-7 hours)
No errors, but can't compile the program giving the above errors during the program compilation state. Please help.
Bookmarks