Environment variables for Qt
-
Hi,
DO we need to set the environment variables after we have installed Qt ,
as PATH = C:\Qt\Qt5.5.0\5.5\msvc2013_64\bin
Thanks,
-
@Pradeep-Kumar Does it show after you install Qt through installer ?
-
HI,
Nope, it is not showing.
Apart from PATH do we need to enter any other?.Thanks,
-
HI,
Nope, it is not showing.
Apart from PATH do we need to enter any other?.Thanks,
@Pradeep-Kumar There is no need to set any environment variables. You can do so if you want, but keep in mind that if you have more than one Qt version installed you can get in troubles.
-
Nope, it is not showing.
Then you need to add.
Apart from PATH do we need to enter any other?.
AFAIK None. Do you get any errors ?
-
Nope, it is not showing.
Then you need to add.
Apart from PATH do we need to enter any other?.
AFAIK None. Do you get any errors ?
-
@jsulm Just in case if OP wants to launch the compiled examples by double clicking on the exe.
@p3c0 This is dangerous: if he later installs another Qt version (lets say MinGW) then I can imagine how he will ask why it is not working anymore (app built with MinGW trying to load Qt VS2013 libs, or calling the wrong qmake). I would not suggest to pollute PATH with Qt stuff.
-
@jsulm True. Perhaps @Pradeep-Kumar could explain what is the intention behind it?
-
hi
You normally do not have to do anything
if you add an other version of Qt.However you seems to have added
msvc2013_64Just be be clear on this.
You do also have the big fat full visual studio 2013 installed also ?
So Creator can see the compiler ? -
yes i have installed visual studio 2013 64 bit of version 12.0 x
Thanks,
-
Since you have multiple qt installled I don't suggest setting env variable if multiple different tools are using different qt versions. If your tools are using same qt version you can set env variable.
-
@jsulm Just in case if OP wants to launch the compiled examples by double clicking on the exe.
@p3c0 said in Environment variables for Qt:
Just in case if OP wants to launch the compiled examples by double clicking on the exe.
I'd recommend running the examples through Qt Creator. That ensures the environment is set up correctly.
@jsulm said in Environment variables for Qt:
I would not suggest to pollute PATH with Qt stuff.
Agreed. There is no need to add Qt to the system PATH.
@Pradeep-Kumar said in Environment variables for Qt:
if we have multiple Qt installed , then only do we need to provide the path?
No.
If you have multiple Qt installed and you add one version to the PATH, then your programs will crash when you use the other version!
You do not need to set any environment variables at all. Just build and run your Qt applications using Qt Creator.