I've been trying for a couple of days with no success to recompile QT 4.6 to the static version using the directions on trolltecks site, and I just tried the directions here for 4.6. The result is always the same, configure occurs fine, then during compilation uic3 throws an error and the compilation stops.
Platform: Windows 7 x64
Compiler: mingw (both my own and the one that comes with the QT SDK, same result)
I use this command -
configure -static -release -no-exceptions && mingw32-make sub-src
I used the QT console in the start menu
The error that appears is
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -Wl,-s -Wl,-subsystem,console -o ..\..\..\bin\uic3.exe object_script.uic3.Rel
ease -L"c:\Qt\2010.03\qt\lib" -L"c:\Qt\2010.03\qt\lib" -lQt3Support -lQtSql -lQ
tXml -lQtGui -lQtNetwork -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspoo
l -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lw
s2_32
c:\Qt\2010.03\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x358a):
undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.03\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x3b2f):
undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.03\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x40ca):
undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.03\qt\lib/libQtGui.a(qwhatsthis.o):qwhatsthis.cpp:(.text+0x15c): unde
fined reference to `_imp___Z21qDeleteInEventHandlerP7QObject'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\..\..\bin\uic3.exe] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/2010.03/qt/src/tools/uic3'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/2010.03/qt/src/tools/uic3'
mingw32-make: *** [sub-uic3-sub_src_target_ordered] Error 2
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -Wl,-s -Wl,-subsystem,console -o ..\..\..\bin\uic3.exe object_script.uic3.Rel
ease -L"c:\Qt\2010.03\qt\lib" -L"c:\Qt\2010.03\qt\lib" -lQt3Support -lQtSql -lQ
tXml -lQtGui -lQtNetwork -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspoo
l -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lw
s2_32
c:\Qt\2010.03\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x358a):
undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.03\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x3b2f):
undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.03\qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x40ca):
undefined reference to `_imp___Z21qt_call_post_routinesv'
c:\Qt\2010.03\qt\lib/libQtGui.a(qwhatsthis.o):qwhatsthis.cpp:(.text+0x15c): unde
fined reference to `_imp___Z21qDeleteInEventHandlerP7QObject'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\..\..\bin\uic3.exe] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/2010.03/qt/src/tools/uic3'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/2010.03/qt/src/tools/uic3'
mingw32-make: *** [sub-uic3-sub_src_target_ordered] Error 2
To copy to clipboard, switch view to plain text mode
Any suggestions would be greatly apreciated
Bookmarks