after qt build statically by this command( configure -static -release -no-exceptions
mingw32-make sub-src and
QMAKE_LFLAGS = -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
)theris problem i faced.problem is given below:
Running build steps for project layout...
Starting: C:/Qt/2009.02/qt/bin/qmake.exe D:/journeytoqt/layout/layout.pro -spec win32-g++ -r CONFIG+=debug
Exited with code 0.
Starting: C:/Qt/2009.02/mingw/bin/mingw32-make.exe -w
C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Entering directory `D:/journeytoqt/layout'
C:/Qt/2009.02/mingw/bin/mingw32-make.exe -f Makefile.Debug
mingw32-make.exe[1]: Entering directory `D:/journeytoqt/layout'
g++ -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,windows -o debug\layout.exe debug/main.o debug/mainwindow.o debug/moc_mainwindow.o -L"c:\Qt\2009.02\qt\lib" -lmingw32 -lqtmaind -lQtGuid -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCored -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32
mingw32-make.exe[1]: Leaving directory `D:/journeytoqt/layout'
C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Leaving directory `D:/journeytoqt/layout'
C:\Qt\2009.02\mingw\bin\..\lib\gcc\mingw32\3.4.2\. .\..\..\..\mingw32\bin\ld.exe: cannot find -lQtGuid
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [debug\layout.exe] Error 1
C:\Qt\2009.02\mingw\bin\mingw32-make.exe: *** [debug] Error 2
Exited with code 2.
Error while building project layout
When executing build step 'Make'
hw can i get rid of this problem(i use qt version 4.5.1 & windows platforce)
Bookmarks