Add a custom build step where you will call "qmake -v"
Thanks for working with me Wysota, results posted below. I'd guess it's not a problem with qmake rather something with the linker.
Running build steps for project Test66...
Starting: Z:\QtCreator\qt\bin\qmake.exe -v
QMake version 2.01a
Using Qt version 4.4.3 in Z:\QtCreator\qt\lib
Exited with code 0.
Creating gdb macros library...
Configuration unchanged, skipping QMake step.
Starting: D:/Microsoft Visual Studio 8/VC/bin/nmake.exe release
"D:\Microsoft Visual Studio 8\VC\bin\nmake.exe" -f Makefile.Release
z:\QtCreator\qt\bin\uic.exe mainwindow.ui -o ui_mainwindow.h
Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
Z:\QtCreator\qt\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"z:\QtCreator\qt\include\QtCore" -I"z:\QtCreator\qt\include\QtCore" -I"z:\QtCreator\qt\include\QtGui" -I"z:\QtCreator\qt\include\QtGui" -I"z:\QtCreator\qt\include" -I"z:\QtCreator\qt\include\ActiveQt" -I"release" -I"." -I"z:\QtCreator\qt\mkspecs\win32-msvc2005" -D_MSC_VER=1400 -DWIN32 mainwindow.h -o release\moc_mainwindow.cpp
cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"z:\QtCreator\qt\include\QtCore" -I"z:\QtCreator\qt\include\QtCore" -I"z:\QtCreator\qt\include\QtGui" -I"z:\QtCreator\qt\include\QtGui" -I"z:\QtCreator\qt\include" -I"z:\QtCreator\qt\include\ActiveQt" -I"release" -I"." -I"z:\QtCreator\qt\mkspecs\win32-msvc2005" -Forelease\ @C:\DOCUME~1\Johnny\LOCALS~1\Temp\nm5.tmp
NMAKE : fatal error U1077: '"D:\Microsoft Visual Studio 8\VC\bin\cl.EXE"' : return code '0xc0000135'
Stop.
NMAKE : fatal error U1077: '"D:\Microsoft Visual Studio 8\VC\bin\nmake.exe"' : return code '0x2'
Stop.
Exited with code 2.
Error while building project Test66
When executing build step 'Make'
Last edited by wysota; 17th April 2009 at 07:50.
You are trying to use a MinGW based Qt installation (the one that comes with Qt Creator) with MSVC which is not possible. You either need to rebuild Qt for MSVC or use MinGW specs so that your applications are compiled using MinGW. The two compilers are not binary compatible.
Thanks again Wysota.
I configured Qt with the switches -platform win32-msvc2005 before compilation.
So recompiling won't make a difference I've tried before.
I wonder why you say I'm trying to use the MingGW installation, first time I installed Qt it installed MingGW as well and worked fine with MSVC.
Besides re-compiling can you think of any other solution maybe?
Does open source Qt only work with MingGW?
I honestly can't get into Qt since I cannot QtCreator to work.
Very frustrating.
Hi Wysota,
After uninstalling the trial and cleaning the registry I ran the setup program (including MingGW installation),
ran configure -platform win32-msvc2005 -phonon and nmake. Then I set the PATH variable to point to the Qt installation.
Both configuration and the building process ran without errors.
QtBuilder however keeps giving the problem above.
First it complains it can't find the MSVC tools, then after adding
the MSVC bin to the project path, it uses the tools until it gives the error.
Why did you download the MinGW installation if you are not going to use it? Delete everything and download the source only archive. You'll then be certain there is no MinGW legacy involved.
Wysota thanks for trying to help.
I don't know, I'm tired of wasting computer time and energy installing and re-installing Qt packages. It looks like QtCreator is not going to work here.
I'll simply try create projects from MSVC and take it from there.
It's compiling all the samples from the prompt, so I'll just say that working solely with MSVC is holding some promise at the moment.
To be honest I don't know what you are trying to obtain so it is hard to help you but Creator doesn't really care what compiler you use.
Bookmarks