how to set QT Creator(opensource) to use MSVC++ compiler instead of mingw ?
I dont see any settings to choose a different compiler rather than mingw.
the only way is vs addin ?
thanks before answers.
how to set QT Creator(opensource) to use MSVC++ compiler instead of mingw ?
I dont see any settings to choose a different compiler rather than mingw.
the only way is vs addin ?
thanks before answers.
see the project tab on the left. There set under "Build Steps" the corresponding spec to qmake.
is there any step by step explaination wiki page for newbies how to setup QT Creator IDE to use MSVC compiler (for x86 and x64)?
I set build steps to :
qmake.exe "C:/Documents and Settings/Administrator/My Documents/qt3/qt3.pro" -spec win32-msvc2008 -r
nothing builds
'cl' is not recognized as an internal or external command,
operable program or batch file.
command failed with exit code 9009
Why this is so hard ?
Last edited by hcetiner; 28th March 2010 at 18:09.
'cl' isn't in your path. You need to make it so.
Run the visual studio command prompt - that will setup the path correctly, then you can use nmake.
Or, you can include path in environment variable.
Or, you can setup path in batch file before loading QtCreator.
Simples.
cmd :
C:\Documents and Settings\Administrator>cl
'cl' is not recognized as an internal or external command,
operable program or batch file.
another attempt on cmd:
where cl
INFO: Could not find files for the given pattern(s).
-------------------------------------------
Visual Studio 2008 x64 Win64 command Prompt :
cl
Microsoft (R) C/C++ Optimizing Compiler Version 15.00.30729.01 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
-------------------------
Qt 4.6.1 Command Prompt :
-- QTDIR set to C:\Qt\4.6.1
-- Added C:\Qt\4.6.1\bin to PATH
-- QMAKESPEC set to "win32-msvc2008"
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
C:\Qt\4.6.1>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
C:\Qt\4.6.1>
-----------------------------------------------------------
my Build Setting >Effective qmake call:
qmake.exe "C:/Documents and Settings/Administrator/My Documents/gt4/gt4.pro" -spec win32-msvc2008 -r CONFIG+=release
--------------
Build result :
Running build steps for project gt4...
Starting: c:/qt/4.6.1//bin/qmake.exe C:/Documents and Settings/Administrator/My Documents/gt4/gt4.pro -spec win32-msvc2008 -r CONFIG+=release
Exited with code 0.
not compiles...
-----------------------------------------------------------
thanks for your helpings.
Last edited by hcetiner; 28th March 2010 at 20:09.
Isn't code 0 success?
Bookmarks