PDA

View Full Version : QtCreator with Visual C++ 9 compiler chain source file name problem



Algirdasss
16th March 2010, 14:33
Helllo guys,

I recently moved from MinGW compiler suite to Visual C++ 9 ... Now I use QtCreator 1.3.1 and Qt libraries 4.6.2 for Windows (VS 2008) that can be freely downloaded from Qt web site. Everything works quite fine except some strange things. Now I can't compile project if it contains source file name having multiple dots in it, like "TestClass.pb.cpp" . Here is compile output:

Starting: C:/Qt/2010.02.1/bin/jom.exe
C:\Qt\2010.02.1\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_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\4.6.2\include\QtCore" -I"c:\Qt\4.6.2\include" -I"c:\Qt\4.6.2\include\ActiveQt" -I"debug" -I"c:\Qt\4.6.2\mkspecs\win32-msvc2008" -Fodebug\ @C:\DOCUME~1\USER\LOCALS~1\Temp\main.obj.115791390 .jom
main.cpp
cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\4.6.2\include\QtCore" -I"c:\Qt\4.6.2\include" -I"c:\Qt\4.6.2\include\ActiveQt" -I"debug" -I"c:\Qt\4.6.2\mkspecs\win32-msvc2008" -Fodebug\ @C:\DOCUME~1\USER\LOCALS~1\Temp\TestClass.obj.1157 91406.jom
TestClass.cpp
link /LIBPATH:"c:\Qt\4.6.2\lib" /NOLOGO /DEBUG /SUBSYSTEM:CONSOLE /MANIFEST /MANIFESTFILE:"debug\QtConsoleVC9Test.intermediate.manifest" /OUT:debug\QtConsoleVC9Test.exe @C:\DOCUME~1\USER\LOCALS~1\Temp\QtConsoleVC9Test.e xe.115792546.jom
LINK : fatal error LNK1104: cannot open file 'debug\TestClass2.pb.obj'
command failed with exit code 11

As you can mention QtCreator doesn't even try to generate TestClass2.pb.obj because there is no call to CL compiler for file TestClass.pb.cpp !!!

Maybe somebody has ideas what is wrong???

Algirdasss
16th March 2010, 18:41
Yepp ... I think I found problem. It's bug in jom.exe tool ... I disabled jom usage and nmake builds project without problems. Jom is still quite raw thing ...