PDA

View Full Version : Is it possible to install both mingw and vs2010 version of QT on the same machine?



lucky7456969
19th January 2013, 06:56
There is some environment variables such as QT_DIR, QMAKE_LIBDIR, QMAKESPEC that are the major concerrns
Thanks
Jack

alrawab
19th January 2013, 07:36
yes its possible and both work fine

lucky7456969
19th January 2013, 08:01
How did you achieve that? Can QT_DIR point to 2 directories?
Thanks
Jack

alrawab
19th January 2013, 08:24
no it cant ..simply you can do that from qcreator to define which version you use :
tools->options->compiler and set which Qt you like to use .
same thing with msVc++ .
and use nmake instead of make if your target msvc++ by using visual studio command prompt () .

from cmd :
1-scenario 1 msvc++ :
run Visual Studio Command Prompt
in your project dir run qmake (qmake for vs version)
then nmake.

2-scenario 2
use regular cmd and replace qmake to that for mingw vs then run make

lucky7456969
31st January 2013, 01:09
So we can't really use both versions at the same time?
Which I am strictly desired of.
Thanks
Jack