PDA

View Full Version : building in QTCreator with msvc2008 fails



dave2k
22nd February 2012, 14:45
Hi

I downloaded the latest Qt today for my windows environment. I have visual studio 2008 installed. i created a 'gui application' in qt creator, but when i try to build i get the errors below. i know visual studio is set up correctly because i can build and run a program in the visual studio ide fine:

13:02:01: Running build steps for project testy...
13:02:01: Starting: "c:\qtsdk\desktop\qt\4.8.0\msvc2008\bin\qmake.exe" C:\Users\stummer\testy\testy.pro -r -spec win32-msvc2008 "CONFIG+=declarative_debug"
13:02:02: The process "c:\qtsdk\desktop\qt\4.8.0\msvc2008\bin\qmake.exe" exited normally.
13:02:02: Starting: "C:\QtSDK\QtCreator\bin\jom.exe"
C:\QtSDK\QtCreator\bin\jom.exe -nologo -j 2 -f Makefile.Debug
cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -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"..\..\..\QtSDK\Desktop\Qt\4.8.0\msvc2008\include\Q tCore" -I"..\..\..\QtSDK\Desktop\Qt\4.8.0\msvc2008\include\Q tGui" -I"..\..\..\QtSDK\Desktop\Qt\4.8.0\msvc2008\include" -I"..\..\..\QtSDK\Desktop\Qt\4.8.0\msvc2008\include\A ctiveQt" -I"debug" -I"." -I"..\..\..\QtSDK\Desktop\Qt\4.8.0\msvc2008\mkspecs\w in32-msvc2008" -Fodebug\ @C:\Users\stummer\AppData\Local\Temp\main.obj.3092 .0.jom
main.cpp
Command line error D2027 : cannot execute 'c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\c1xx.dll'
C:\QtSDK\Desktop\Qt\4.8.0\msvc2008\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -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"..\..\..\QtSDK\Desktop\Qt\4.8.0\msvc2008\include\Q tCore" -I"..\..\..\QtSDK\Desktop\Qt\4.8.0\msvc2008\include\Q tGui" -I"..\..\..\QtSDK\Desktop\Qt\4.8.0\msvc2008\include" -I"..\..\..\QtSDK\Desktop\Qt\4.8.0\msvc2008\include\A ctiveQt" -I"debug" -I"." -I"..\..\..\QtSDK\Desktop\Qt\4.8.0\msvc2008\mkspecs\w in32-msvc2008" -D_MSC_VER=1500 -DWIN32 mainwindow.h -o debug\moc_mainwindow.cpp

jom 1.0.6 - empower your cores

Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Z:'
Command line warning D4002 : ignoring unknown option '-Zw'
Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Zh'
Command line warning D4002 : ignoring unknown option '-Zr'
Command line warning D4002 : ignoring unknown option '-Z_'
Command line warning D4002 : ignoring unknown option '-Zt'
Command line warning D4002 : ignoring unknown option '-Z-'
Command line warning D4002 : ignoring unknown option '-w34100'
Command line warning D4002 : ignoring unknown option '-w34189'
command failed with exit code 2
command failed with exit code 2
13:02:02: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
Error while building project testy (target: Desktop)
When executing build step 'Make'

Added after 38 minutes:

if i replace 'jom' with 'nmake' in the build step in Project settings, it compiles nicely. It's weird that the jom thingy doesn't work though