qt4-preview-feedback@trolltech.com
[Top] [All Lists]

configure -static fails (4.2 rc1, mingw)

Subject: configure -static fails 4.2 rc1, mingw
From: Jan Griebsch
Date: Fri, 08 Sep 2006 08:50:22 +0200
Hello,

on a clean Qt 4.2 rc1 under WinXP, using the current MinGW (3.4.2),
attempts to build the Qt lib as static via
1) configure.exe -static -debug & make
or
2) configure.exe -static -release & make

fail with the errors below. The -shared builds succeed under the same
environment variables & settings. PATH includes the necessary MinGW
dirs, there are no QTDIR or other vars set a priori.


Regards,

 - jan -



Errors:
1)
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -o
"..\..\..\bin\uic3.exe" object_script.uic3.Debug
-L"c:\Qt\rc1-static-debug\lib" -L"c:\Qt\rc1-static-debug\lib"
-lQt3Supportd -lQtXmld -lQtGuid -lQtCored -lQtSqld4 -lQtXmld4 -lQtGuid4
-lQtNetworkd4 -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool
-lmsimg32 -lQtCored4 -lkernel32 -luser32 -lshell32 -luuid -lole32
-ladvapi32 -lws2_32
c:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lQtSqld4
collect2: ld returned 1 exit status
mingw32-make[3]: *** [..\..\..\bin\uic3.exe] Error 1
mingw32-make[3]: Leaving directory `C:/Qt/rc1-static-debug/src/tools/uic3'
mingw32-make[2]: *** [debug] Error 2
mingw32-make[2]: Leaving directory `C:/Qt/rc1-static-debug/src/tools/uic3'
mingw32-make[1]: *** [sub-tools_uic3-make_default] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/rc1-static-debug/src'
mingw32-make: *** [sub-src-make_default-ordered] Error 2

or
2)
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,console -o
"..\..\..\bin\uic3.exe" object_script.uic3.Release
-L"c:\Qt\rc1-static-release\lib" -L"c:\Qt\rc1-static-release\lib"
-lQt3Support -lQtSql -lQtXml -lQtGui -lQtNetwork -lgdi32 -lcomdlg32
-loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lkernel32
-luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32
c:\Qt\rc1-static-release\lib/libQtGui.a(qguivariant.o)(.text+0xc02):qguivariant.cpp:
undefined reference to `_imp__qMetaTypeGuiHelper'
collect2: ld returned 1 exit status
mingw32-make[3]: *** [..\..\..\bin\uic3.exe] Error 1
mingw32-make[3]: Leaving directory `C:/Qt/rc1-static-release/src/tools/uic3'
mingw32-make[2]: *** [release] Error 2
mingw32-make[2]: Leaving directory `C:/Qt/rc1-static-release/src/tools/uic3'
mingw32-make[1]: *** [sub-tools_uic3-make_default] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/rc1-static-release/src'
mingw32-make: *** [sub-src-make_default-ordered] Error 2


To unsubscribe - send "unsubscribe" in the subject to 
qt4-preview-feedback-request@xxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
  • configure -static fails (4.2 rc1, mingw), Jan Griebsch <=