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 -querygives 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 -queryfor 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
windeployqtwork 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 -querygives 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 -queryfor 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
windeployqtwork for 5.15.2? -
@g1ennr you can probably use
qt.confto overwrite these paths. Put it in the same dir whereqmakeis and setPrefixproperty accordingly.@sierdzio thanks, but that doesn't help.
Also tried calling
qmake -unset <var>thenqmake -set <var> <val>for each variable. The-unsetpart doesn't seem to work and it appears that-setprepends 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-unsetpart doesn't seem to work and it appears that-setprepends to the collection and the previous/..value is returned anyway, which isn't helpful.