any Visual Studio mavens here...?

...so, I've been developing an app on the Mac platform, and very recently tried moving it over to Windows XP. (The IDE is Qt, BTW.) I built using MinGW and it works fine. I try to build using MVSC, and it pukes on its shoes. Here's the preliminary error messages I get:

06:39:48: Configuration unchanged, skipping qmake step.
06:39:48: 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 -I"..\simulator" -I"..\simulator\headers" -I"." -I"c:\QtSDK\Desktop\Qt\4.8.0\msvc2010\mkspecs\win32-msvc2010" -Fodebug\ @C:\DOCUME~1\Putin\LOCALS~1\Temp\clock.obj.1364.109.jom
cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -I"..\simulator" -I"..\simulator\headers" -I"." -I"c:\QtSDK\Desktop\Qt\4.8.0\msvc2010\mkspecs\win32-msvc2010" -Fodebug\ @C:\DOCUME~1\Putin\LOCALS~1\Temp\demod.obj.1364.156.jom
jom 1.0.6 - empower your cores
'cl' is not recognized as an internal or external command,
operable program or batch file.
command failed with exit code 1
'cl' is not recognized as an internal or external command,
operable program or batch file.
command failed with exit code 1
command failed with exit code 2
06:39:49: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
Error while building project HittiteModem (target: Desktop)
When executing build step 'Make'


I don't know what all those compile options are; if someone can help me decode this, I'd appreciate it. Thanks!
That seems to be a File Not Found on cl.exe, the compiler. I have never had issues with that, so I'd suggest a full uninstall/install of Visual Studio.
Interesting, because Qt found the tool chain, so it must be there. Could it be the lack of an environment variable (or whatever they're called on Windows)?
You probably need to set your PATH variable to include the binary directory for VC++.

Click click on My Computer and select properties.
Click on Advanced System Settings.
Click the Advanced tab.
Near the bottom is a button labeled "Environment Variables."
See if you have a path variable. Whether you have it or not, you'll need to set up path to include your VC++ bin directory.

As for the command line options:

-I is an additional include directory.
-D is a command line define, like typing "#define USE_FLOATS" within a source file.
-c is simply telling it to compile without linking.
-EHsc says to enable C++ exceptions
-MDd specifies to use DLL runtime libs at link time
-Zc:wchar_t says to treat wchar_t as a built-in type.
-GR adds code for checking C++ object types at runtime
-W3 specifies level 3 warnings.

Not sure what the -w option is.
Last edited on
closed account (z05DSL3A)
There is usually a batch file to run that sets the build environment. Look in the start menu (visual studio) for someone like vars32.bat (not in front of a Windows PC just now).
I have VC++ express 10, and it has a command window in its start menu for compiling on the command line. It sets up the path variable for you. I didn't know that since I don't do command line compiling anymore.
Last edited on
Thanks for the replies, guys. I changed my path variable; it now seems to point to the right place. And that got rid of the compiler error I cited above, but now I'm getting this:

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 -I"..\simulator" -I"..\simulator\headers" -I"." -I"c:\QtSDK\Desktop\Qt\4.8.0\msvc2010\mkspecs\win32-msvc2010" -Fodebug\ @C:\DOCUME~1\Putin\LOCALS~1\Temp\clock.obj.3728.109.jom
cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -I"..\simulator" -I"..\simulator\headers" -I"." -I"c:\QtSDK\Desktop\Qt\4.8.0\msvc2010\mkspecs\win32-msvc2010" -Fodebug\ @C:\DOCUME~1\Putin\LOCALS~1\Temp\demod.obj.3728.125.jom
jom 1.0.6 - empower your cores
command failed with exit code 2
command failed with exit code 2
command failed with exit code 2
command failed with exit code 2
command failed with exit code 2
10:48:40: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
Error while building project HittiteModem (target: Desktop)
When executing build step 'Make'


Does anyone know what this jom.exe is? Is that something unique to the Qt environment?

EDIT: it appears that this is in the realm of Qt now. I'll consider this thread solved.
Last edited on
Topic archived. No new replies allowed.