[Qt-creator] How to set up compilation toochain for msvc
Stephen Chu
stephen at ju-ju.com
Tue Mar 2 15:40:27 CET 2010
In article <4B8D0FC3.5070606 at gmx.de>,
Matthias Pospiech <matthias.pospiech at gmx.de> wrote:
> I am using QtCreator from 4.6.2 SDK.
>
> I have installed an older Qt 4.5.2 compiled with msvc 8.0 (2005) which I
> require for a project which
> needs a comercial msvc build lib.
>
> Now I want to set up QtCreator to use the msvc toolchain. Thus qmake +
> nmake (+ nmake clean).
>
> I can select in the build configuration the version 4.5.2 and creator
> selects 'Microsoft Visual C++'
> But in the buildssteps only qmake is correct. Everything else is still
> mingw32-make.
>
> Why does it not select nmake?
>
> I can overwrite mingw32-make with nmake which leads to a compilation.
> But the process of setting it up is strange.
>
> Matthias
I did this to switch an existing mingw32 project to VC (the free tools):
1. Set Qt VC build as the default in the Qt versions preferences.
2. Close the project if it's open.
3. Go to the project folder (where the .pro is) and delete the .user and
all make files.
4. Open the project in Creator. The project should now uses the VC
version of Qt.
You may need to redo some project settings since the .user file is where
various settings are.
Hope this helps.
--
Stephen Chu
More information about the Qt-creator-old
mailing list