qmake -query has wrong output
-
I have installed multiple versions of Qt using the Qt Maintenance tool on Windows 10. I'm trying to run windeployqt for the 5.15.2 mingw8_64 installation and it fails with this error:
Warning: Unable to read \..\mkspecs\qconfig.pri: The system cannot find the path specified. Unable to find dependent libraries of \..\bin\Qt5Core.dll :Cannot open '/../bin/Qt5Core.dll': The system cannot find the file specified.
I understand that it gets the path information from qmake. For the 5.15.2\mingw81_64 installation
qmake -query
gives the following output:QT_SYSROOT: QT_INSTALL_PREFIX:/.. QT_INSTALL_ARCHDATA:/.. QT_INSTALL_DATA:/.. QT_INSTALL_DOCS:/../doc ...
This is consistent with the error from windeployqt.
For comparison
qmake -query
for Qt 6.5.3, also installed using the Qt Maintenance tool, gives:QT_SYSROOT: QT_INSTALL_PREFIX:C:/Qt/6.5.3/mingw_64 QT_INSTALL_ARCHDATA:C:/Qt/6.5.3/mingw_64 QT_INSTALL_DATA:C:/Qt/6.5.3/mingw_64 QT_INSTALL_DOCS:C:/Qt/Docs/Qt-6.5.3 ...
Is there a way to work around this to make
windeployqt
work for 5.15.2? -
I have installed multiple versions of Qt using the Qt Maintenance tool on Windows 10. I'm trying to run windeployqt for the 5.15.2 mingw8_64 installation and it fails with this error:
Warning: Unable to read \..\mkspecs\qconfig.pri: The system cannot find the path specified. Unable to find dependent libraries of \..\bin\Qt5Core.dll :Cannot open '/../bin/Qt5Core.dll': The system cannot find the file specified.
I understand that it gets the path information from qmake. For the 5.15.2\mingw81_64 installation
qmake -query
gives the following output:QT_SYSROOT: QT_INSTALL_PREFIX:/.. QT_INSTALL_ARCHDATA:/.. QT_INSTALL_DATA:/.. QT_INSTALL_DOCS:/../doc ...
This is consistent with the error from windeployqt.
For comparison
qmake -query
for Qt 6.5.3, also installed using the Qt Maintenance tool, gives:QT_SYSROOT: QT_INSTALL_PREFIX:C:/Qt/6.5.3/mingw_64 QT_INSTALL_ARCHDATA:C:/Qt/6.5.3/mingw_64 QT_INSTALL_DATA:C:/Qt/6.5.3/mingw_64 QT_INSTALL_DOCS:C:/Qt/Docs/Qt-6.5.3 ...
Is there a way to work around this to make
windeployqt
work for 5.15.2? -
@g1ennr you can probably use
qt.conf
to overwrite these paths. Put it in the same dir whereqmake
is and setPrefix
property accordingly.@sierdzio thanks, but that doesn't help.
Also tried calling
qmake -unset <var>
thenqmake -set <var> <val>
for each variable. The-unset
part doesn't seem to work and it appears that-set
prepends to the collection and the previous/..
value is returned anyway, which isn't helpful. -
@sierdzio thanks, but that doesn't help.
Also tried calling
qmake -unset <var>
thenqmake -set <var> <val>
for each variable. The-unset
part doesn't seem to work and it appears that-set
prepends to the collection and the previous/..
value is returned anyway, which isn't helpful.