May 7, 2012

Saphrosit Saphrosit
Lab Rat
7 posts

Jom Error 2 at compile time

 

I just downloaded Qt SDK 4.8.1 and, after installing it, I simply tried to compile a default C++ project, but I got this strange error.

  1.     16:50:24: Running build steps for project test...
  2.     16:50:24: Configuration unchanged, skipping qmake step.
  3.     16:50:24: Starting: "C:\QtSDK\QtCreator\bin\jom.exe"
  4.     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.1\msvc2008\include\QtCore" -I"........\QtSDK\Desktop\Qt\4.8.1\msvc2008\include\QtGui" -I"........\QtSDK\Desktop\Qt\4.8.1\msvc2008\include" -I"........\QtSDK\Desktop\Qt\4.8.1\msvc2008\include\ActiveQt" -I"debug" -I"." -I"..\test" -I"." -I"........\QtSDK\Desktop\Qt\4.8.1\msvc2008\mkspecs\win32-msvc2008" -Fodebug\ @C:\DOCUME~1\dfuser\IMPOST~1\Temp\main.obj.1464.0.jom
  5.     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.1\msvc2008\include\QtCore" -I"........\QtSDK\Desktop\Qt\4.8.1\msvc2008\include\QtGui" -I"........\QtSDK\Desktop\Qt\4.8.1\msvc2008\include" -I"........\QtSDK\Desktop\Qt\4.8.1\msvc2008\include\ActiveQt" -I"debug" -I"." -I"..\test" -I"." -I"........\QtSDK\Desktop\Qt\4.8.1\msvc2008\mkspecs\win32-msvc2008" -Fodebug\ @C:\DOCUME~1\dfuser\IMPOST~1\Temp\mainwindow.obj.1464.0.jom
  6.     C:\QtSDK\QtCreator\bin\jom.exe -f Makefile.Debug
  7.     jom: C:\Documents and Settings\dfuser\Desktop\test-build-desktop-Qt_4_8_1_for_Desktop_-MSVC2008_Qt_SDK__Debug\Makefile.Debug [debug\main.obj] Error 2
  8.  
  9.     jom 1.0.8 - empower your cores
  10.  
  11.     jom: C:\Documents and Settings\dfuser\Desktop\test-build-desktop-Qt_4_8_1_for_Desktop_-MSVC2008_Qt_SDK__Debug\Makefile [debug] Error 2
  12.     16:50:24: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
  13.     Error while building project test (target: Desktop)
  14.     When executing build step 'Make'

Does anyone know what is the cause?

I don’t know if it’s relevant or not, but before getting this error I got the common error about cl not found; I solved adding the path to cl in the project settings.

11 replies

May 7, 2012

leon.anavi leon.anavi
Mad Scientist
1047 posts

There are several similar threads at the forum [qt-project.org] Have you already seen them?

 Signature 

http://anavi.org/

May 7, 2012

Saphrosit Saphrosit
Lab Rat
7 posts

Yes I did, they are not so many and they’re all pretty different from my problem.

May 7, 2012

leon.anavi leon.anavi
Mad Scientist
1047 posts

Please share the content of your pro file.

 Signature 

http://anavi.org/

May 7, 2012

Saphrosit Saphrosit
Lab Rat
7 posts

Here you are:

  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2012-05-07T15:34:34
  4. #
  5. #-------------------------------------------------
  6.  
  7. QT       += core gui
  8.  
  9. TARGET = test
  10. TEMPLATE = app
  11.  
  12.  
  13. SOURCES += main.cpp\
  14.         mainwindow.cpp
  15.  
  16. HEADERS  += mainwindow.h
  17.  
  18. FORMS    += mainwindow.ui

May 7, 2012

leon.anavi leon.anavi
Mad Scientist
1047 posts

Seems that the pro file is fine.

Saphrosit wrote:
I don’t know if it’s relevant or not, but before getting this error I got the common error about cl not found; I solved adding the path to cl in the project settings.

Did you make a clean build after that? Clean, rerun qmake and rebuild the whole project.

 Signature 

http://anavi.org/

May 7, 2012

Saphrosit Saphrosit
Lab Rat
7 posts

Yes I did it, but I keep getting the same error…

I tried also to reinstall the entire SDK, but nothing changed

May 7, 2012

leon.anavi leon.anavi
Mad Scientist
1047 posts

Saphrosit wrote:
Yes I did it, but I keep getting the same error…

I tried also to reinstall the entire SDK, but nothing changed

Please try this proposition from a similar issue with jom described at stackoverflow.com [stackoverflow.com]

I can reproduce this problem if I check “Clear system environment” on the Projects’ Build Settings page. Try unchecking that box.

 Signature 

http://anavi.org/

May 7, 2012

Saphrosit Saphrosit
Lab Rat
7 posts

My “Clear system environment” box is already unchecked. If I check it I get the error about “cl.exe not found”.

May 7, 2012

Tobias Hunger Tobias Hunger
Mad Scientist
3156 posts

Saphrosit: Oh, that should not happen! What is your PATH environment variable with clear system environment set? Where did you install the cl.exe? What did you install to get the compiler?

May 8, 2012

Saphrosit Saphrosit
Lab Rat
7 posts

Unfortunately I cannot give an exact answer now (the computer is at the lab), I hope I will answer tomorrow. Anyway, I’m pretty sure cl.exe is the default Microsoft Visual Studio 9 folder.

However, in my home system my “Clear system environment” is not check and everything works fine (I have Visual Studio 10 at home)…

May 9, 2012

Saphrosit Saphrosit
Lab Rat
7 posts

My PATH with “Clear system environment” check is:

C:\QtSDK\Desktop\Qt\4.8.1\msvc2008\lib;C:\QtSDK\Desktop\Qt\4.8.1\msvc2008\bin

 
  ‹‹ error: ‘ptrdiff_t’ does not name a type      Qt 3.2.1 Embedded: Redefinition of ‘const QString& device’ Error ››

You must log in to post a reply. Not a member yet? Register here!