PDA

View Full Version : urgent: can not compile the Qt4 demos



tiany524
31st May 2009, 09:39
i download the qt-sdk-win-opensource-2009.02.1.exe just now.
but can not compile the demos/affine,
thanks!
error info:

Running build steps for project affine...
Starting: C:/Qt/2009.02/qt/bin/qmake.exe C:/Qt/2009.02/qt/demos/affine/affine.pro -spec win32-g++ -r
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 `C:/Qt/2009.02/qt/demos/affine'
C:/Qt/2009.02/mingw/bin/mingw32-make.exe -f Makefile.Debug
mingw32-make.exe[1]: Entering directory `C:/Qt/2009.02/qt/demos/affine'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\affine.exe debug/main.o debug/xform.o debug/moc_xform.o debug/qrc_affine.o -L"c:\Qt\2009.02\qt\lib" -lopengl32 -lglu32 -lgdi32 -luser32 -lmingw32 -lqtmaind -L../shared/debug -ldemo_shared -lQtOpenGLd4 -lQtGuid4 -lQtCored4
mingw32-make.exe[1]: Leaving directory `C:/Qt/2009.02/qt/demos/affine'
C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Leaving directory `C:/Qt/2009.02/qt/demos/affine'
C:\Qt\2009.02\mingw\bin\..\lib\gcc\mingw32\3.4.2\. .\..\..\..\mingw32\bin\ld.exe: cannot find -ldemo_shared
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [debug\affine.exe] Error 1
C:\Qt\2009.02\mingw\bin\mingw32-make.exe: *** [debug] Error 2
Exited with code 2.
Error while building project affine
When executing build step 'Make'

wysota
31st May 2009, 10:51
What's so urgent about it? :-) Was the demo_shared library built before you started building this particular example?