The licence has nothing to do with it.
The licence has nothing to do with it.
Originally Posted by wysota
Actually I dont care so much about if it is license or something else to do with it. You are telling me that QtCreator not glued to mingw, so logically I assume it is possible to setup it to use Qt built for msvc and trigger msvc compiler to build the code etc..Originally Posted by wysota
Can you tell me exactly, how to do this? Step-by-step if it is possible or at least be more speciffic?
I can try (although I've never done it myself) but please tell me what is unclear in what I explained in post #10. Did you find where to adjust the build steps in Creator?
I can tell you the simplest way to do it is to run Qt Creator when qmake built for Visual Studio is the first qmake in the PATH - then you shouldn't need to adjust anything - Creator should pick up the appropriate configuration itself. At least it was so for one of the previous versions of Creator but I suspect nothing has changed in this regard.
I can repeat step by step what I do:
Do you have QtCreator in front of you? Windows? Have Qt libraries 4.7.0 for Windows (VS 2008, 226 MB) installed? Than probably it should be not problem for you to explain which settigng window I have to open and what to write/select there.I have installed both:
Qt libraries 4.7.0 for Windows (VS 2008, 226 MB)
Qt SDK for Windows* (322 MB) - this comes with QtCreator and mingw
(*Based on MinGW (download sources) tool set. Does not support VS compiler.)
In QtCreator I open Tools - Options - Qt4 - Qt versions tab.
There is c:\qt\2010.05\qt\bin\qmake.exe as autodetected version (which is Qt SDK for Windows installation).
When I try to add 4.7.0 qmake for VS2008 it is message in bottom of settings window telling me "Qt version is not properly installed, please run make install". However Qt library 4.7.0 for Windows is properly installed and I able to build current project using Visual Studio without any problems. What should I do to make it recognisable by QtCreator?
No, I don't have Windows in front of me now and I'm using a slightly newer version of Creator than you do but this shouldn't be a problem. Open your project and switch to the "projects" pane where you will find the build settings and build steps. The first build step is the qmake step which you need to adjust by passing a different argument (win32-msvc2008) to the -spec parameter. Then try building the project. If that doesn't work then close Qt Creator, launch "Qt command prompt" for the MSVC-enabled version of Qt and launch Creator from this commandline. Then make sure the Qt versions tab has a "Qt in PATH" entry pointing to your Qt installation and build the project.
Bookmarks