
Originally Posted by
wysota
Can you show us some of the compiler commands being ran? Especially the linking part (but one example of object compilation is also needed).
Running build steps for project formextractor...
Configuration unchanged, skipping QMake step.
Starting: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/BIN/nmake.exe
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f Makefile.Debug
c:\Qt\4.5.2-vc\bin\uic.exe ..\formextractor.ui -o ui_formextractor.h
C:\Qt\4.5.2-vc\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\4.5.2-vc\include\QtCore" -I"c:\Qt\4.5.2-vc\include\QtGui" -I"c:\Qt\4.5.2-vc\include\QtWebKit" -I"c:\Qt\4.5.2-vc\include" -I"c:\Qt\4.5.2-vc\include\ActiveQt" -I"debug" -I"." -I"..\..\qt-test" -I"." -I"c:\Qt\4.5.2-vc\mkspecs\win32-msvc2008" -D_MSC_VER=1500 -DWIN32 ..\formextractor.h -o debug\moc_formextractor.cpp
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Qt\4.5.2-vc\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\4.5.2-vc\include\QtCore" -I"c:\Qt\4.5.2-vc\include\QtGui" -I"c:\Qt\4.5.2-vc\include\QtWebKit" -I"c:\Qt\4.5.2-vc\include" -I"c:\Qt\4.5.2-vc\include\ActiveQt" -I"debug" -I"." -I"..\..\qt-test" -I"." -I"c:\Qt\4.5.2-vc\mkspecs\win32-msvc2008" -D_MSC_VER=1500 -DWIN32 ..\mainwindow.h -o debug\moc_mainwindow.cpp
c:\Qt\4.5.2-vc\bin\rcc.exe -name formextractor ..\formextractor.qrc -o debug\qrc_formextractor.cpp
cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\4.5.2-vc\include\QtCore" -I"c:\Qt\4.5.2-vc\include\QtGui" -I"c:\Qt\4.5.2-vc\include\QtWebKit" -I"c:\Qt\4.5.2-vc\include" -I"c:\Qt\4.5.2-vc\include\ActiveQt" -I"debug" -I"." -I"..\..\qt-test" -I"." -I"c:\Qt\4.5.2-vc\mkspecs\win32-msvc2008" -Fodebug\ @.\nm6F60.tmp
main.cpp
formextractor.cpp
mainwindow.cpp
Generating Code...
cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\4.5.2-vc\include\QtCore" -I"c:\Qt\4.5.2-vc\include\QtGui" -I"c:\Qt\4.5.2-vc\include\QtWebKit" -I"c:\Qt\4.5.2-vc\include" -I"c:\Qt\4.5.2-vc\include\ActiveQt" -I"debug" -I"." -I"..\..\qt-test" -I"." -I"c:\Qt\4.5.2-vc\mkspecs\win32-msvc2008" -Fodebug\ @.\nm85A9.tmp
moc_formextractor.cpp
moc_mainwindow.cpp
qrc_formextractor.cpp
Generating Code...
link /LIBPATH:"c:\Qt\4.5.2-vc\lib" /NOLOGO /DEBUG /MANIFEST /MANIFESTFILE:"debug\formExtractor.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:debug\formExtractor.exe @.\nm91BF.tmp
mt.exe -nologo -manifest "debug\formExtractor.intermediate.manifest" -outputresource:debug\formExtractor.exe;1
'mt.exe' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'mt.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
Exited with code 2.
Error while building project formextractor
When executing build step 'Make'
Running build steps for project formextractor...
Configuration unchanged, skipping QMake step.
Starting: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/BIN/nmake.exe
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f Makefile.Debug
c:\Qt\4.5.2-vc\bin\uic.exe ..\formextractor.ui -o ui_formextractor.h
C:\Qt\4.5.2-vc\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\4.5.2-vc\include\QtCore" -I"c:\Qt\4.5.2-vc\include\QtGui" -I"c:\Qt\4.5.2-vc\include\QtWebKit" -I"c:\Qt\4.5.2-vc\include" -I"c:\Qt\4.5.2-vc\include\ActiveQt" -I"debug" -I"." -I"..\..\qt-test" -I"." -I"c:\Qt\4.5.2-vc\mkspecs\win32-msvc2008" -D_MSC_VER=1500 -DWIN32 ..\formextractor.h -o debug\moc_formextractor.cpp
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Qt\4.5.2-vc\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\4.5.2-vc\include\QtCore" -I"c:\Qt\4.5.2-vc\include\QtGui" -I"c:\Qt\4.5.2-vc\include\QtWebKit" -I"c:\Qt\4.5.2-vc\include" -I"c:\Qt\4.5.2-vc\include\ActiveQt" -I"debug" -I"." -I"..\..\qt-test" -I"." -I"c:\Qt\4.5.2-vc\mkspecs\win32-msvc2008" -D_MSC_VER=1500 -DWIN32 ..\mainwindow.h -o debug\moc_mainwindow.cpp
c:\Qt\4.5.2-vc\bin\rcc.exe -name formextractor ..\formextractor.qrc -o debug\qrc_formextractor.cpp
cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\4.5.2-vc\include\QtCore" -I"c:\Qt\4.5.2-vc\include\QtGui" -I"c:\Qt\4.5.2-vc\include\QtWebKit" -I"c:\Qt\4.5.2-vc\include" -I"c:\Qt\4.5.2-vc\include\ActiveQt" -I"debug" -I"." -I"..\..\qt-test" -I"." -I"c:\Qt\4.5.2-vc\mkspecs\win32-msvc2008" -Fodebug\ @.\nm6F60.tmp
main.cpp
formextractor.cpp
mainwindow.cpp
Generating Code...
cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\4.5.2-vc\include\QtCore" -I"c:\Qt\4.5.2-vc\include\QtGui" -I"c:\Qt\4.5.2-vc\include\QtWebKit" -I"c:\Qt\4.5.2-vc\include" -I"c:\Qt\4.5.2-vc\include\ActiveQt" -I"debug" -I"." -I"..\..\qt-test" -I"." -I"c:\Qt\4.5.2-vc\mkspecs\win32-msvc2008" -Fodebug\ @.\nm85A9.tmp
moc_formextractor.cpp
moc_mainwindow.cpp
qrc_formextractor.cpp
Generating Code...
link /LIBPATH:"c:\Qt\4.5.2-vc\lib" /NOLOGO /DEBUG /MANIFEST /MANIFESTFILE:"debug\formExtractor.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:debug\formExtractor.exe @.\nm91BF.tmp
mt.exe -nologo -manifest "debug\formExtractor.intermediate.manifest" -outputresource:debug\formExtractor.exe;1
'mt.exe' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'mt.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
Exited with code 2.
Error while building project formextractor
When executing build step 'Make'
To copy to clipboard, switch view to plain text mode
That's strange but when I hit a build button for the second time I don't get above error and the build succeeds...
Running build steps for project formextractor...
Configuration unchanged, skipping QMake step.
Starting: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/BIN/nmake.exe
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f Makefile.Debug
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
Exited with code 0.
Running build steps for project formextractor...
Configuration unchanged, skipping QMake step.
Starting: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/BIN/nmake.exe
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f Makefile.Debug
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
Exited with code 0.
To copy to clipboard, switch view to plain text mode
I think my problem is due to this error with mt.exe which is used to embed information about used libraries from manifest file (which is indeed generated as you can see in compiler's output) into the executable...
When I'm inspecting the executable with Dependency Walker I see that Qt uses other version of msvcr90d.dll than the one in the manifest.
Why during compilation of qt itself a different version of crt library was linked than the one that gets linked during compilation of an example in creator?
The most strange thing is that both versions of these dlls are present in the c:\windows\winsxs folder...
Any ideas?
Bookmarks