When trying to run windeployqt.exe
, how does it know where to look for the Qt Libraries?
I'm using Windows, Qt 5.3, msvc2013_opengl.
I have the following setup:
- Qt was first extracted to
C:/PathA/Qt/5.3
. It worked fine there. - I copied Qt to
C:/PathB/Qt/5.3
- I then renamed the folder
C:/PathA/
toC:/PathC/
to "hide" the old place.
When running C:/PathB/Qt/5.3/.../windeployqt.exe
it complains, that it can not read file C:/PathA/.../QtPrintSupport.dll
- of course, because that file does not exist anymore....
I tried:
- overriding environent variables locally in a shell.
- Removed all occurences of
PathA
from environment variables and rebooted. - Searched registry for
PathA
. - Checked qt.conf in both
PathB
andPathC
- both contain relative paths. - Checked the source code of windeployqt - it seems to call
qmake -query
. - Called both
qmake.exe -query
- they returnPathB
andPathC
as expected. - Changed the paths in both qtenv2.bat.
Still, windeployqt insists on searching C:/PathA
- so where does it get that value from?
PS: I know that i could try to uninstall all Versions of Qt, get rid of everything Qt-related and reinstall it from scratch. However thats not what i'm interested in. I'm interested in allowing multiple Versions of Qt installed next to each other and controlling, which one to use (Using CMake and Visual Studio).
Edit:
In contrast to this question, i'm not using QtCreator and the scope of this question is not "How to install multiple Versions of Qt when using QtCreator?". The question is specifically "Where does windeployqt.exe
get the path to the Qt libraries?"