PDA

View Full Version : QT Sample compilation problems



Ender1618
17th October 2012, 04:30
Im just starting out, I downloaded the QT SDK and installed it. I am on Win 7 64, and the compiler I use is visual studio 2010. Qt Creator seems to give me the option for that compiler so I set that (I tried the others as well), it also had trouble finding cl, so I added that to the path. None of the samples seem to compile, here is the clock sample and what I get:

09:49:10: Running build steps for project analogclock...
09:49:10: Starting: "c:\qtsdk\desktop\qt\4.8.1\msvc2010\bin\qmake.exe" C:\QtSDK\Examples\4.7\widgets\analogclock\analogcl ock.pro -r -spec win32-msvc2010 "CONFIG+=release"
09:49:10: The process "c:\qtsdk\desktop\qt\4.8.1\msvc2010\bin\qmake.exe" exited normally.
09:49:10: Starting: "C:\QtSDK\QtCreator\bin\jom.exe"
cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\include\QtCo re" -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\include\QtGu i" -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\include" -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\include\Acti veQt" -I"release" -I"..\analogclock" -I"." -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\mkspecs\win3 2-msvc2010" -Forelease\ @C:\Users\RVILLA~1\AppData\Local\Temp\analogclock. obj.1352.15.jom
cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\include\QtCo re" -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\include\QtGu i" -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\include" -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\include\Acti veQt" -I"release" -I"..\analogclock" -I"." -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\mkspecs\win3 2-msvc2010" -Forelease\ @C:\Users\RVILLA~1\AppData\Local\Temp\main.obj.135 2.15.jom
C:\QtSDK\Desktop\Qt\4.8.1\msvc2010\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\include\QtCo re" -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\include\QtGu i" -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\include" -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\include\Acti veQt" -I"release" -I"..\analogclock" -I"." -I"..\..\..\..\Desktop\Qt\4.8.1\msvc2010\mkspecs\win3 2-msvc2010" -D_MSC_VER=1600 -DWIN32 ..\analogclock\analogclock.h -o release\moc_analogclock.cpp
C:\QtSDK\QtCreator\bin\jom.exe -f Makefile.Release
jom: C:\QtSDK\Examples\4.7\widgets\analogclock-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Release\Makefile.Release [release\analogclock.obj] Error 2

jom 1.0.8 - empower your cores

jom: C:\QtSDK\Examples\4.7\widgets\analogclock-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Release\Makefile [release] Error 2
09:49:10: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
Error while building project analogclock (target: Desktop)
When executing build step 'Make'


I would appreciate any assistance.