Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.3.0
-
96be84d703 (qt/qt5/dev) 96be84d703 (qt/tqtc-qt5/dev) 0e15878f08 (qt/qt5/6.3) 0e15878f08 (qt/tqtc-qt5/6.3) 7d6d552a90 (qt/tqtc-qt5/6.2) 71e4b8f2e6 (qt/qt5/6.4) 71e4b8f2e6 (qt/tqtc-qt5/6.4) 0e15878f08 (qt/qt5/6.3.2) 0e15878f08 (qt/tqtc-qt5/6.3.2)
Description
Changing the directory structure when building Qt 6.3.0 from the sources by configuring with -libdir -bindir -headerdir etc. options leads to situation where it cannot find Qt6Config.cmake and other .cmake files. Ultimately the issue with configuration falls down to -libdir <install_prefix>\some_dir\lib configure option.
It seems like when doing -libdir %QTINSTALLDIR%\lib it configures successfully but if there is something between the prefix and lib, it fails to find the necessary .cmake files.
Way to reproduce:
set QTBASEDIR=<Qt_source_root_dir>
set QTINSTALLDIR=<install_prefix_path>
set MY_OS=Win_msvc2019
Configure:
%QTBASEDIR%\configure -prefix %QTINSTALLDIR% -bindir %QTINSTALLDIR%%MY_OS%\qt-6.3\bin -libdir %QTINSTALLDIR%%MY_OS%\qt-6.3\lib -headerdir %QTINSTALLDIR%\share\qt-6.3\include -archdatadir %QTINSTALLDIR%%MY_OS%\qt-6.3 -datadir %QTINSTALLDIR%\share\qt-6.3 -cmake-generator Ninja
The configure output is found in configure_output.txt attached which shows that it is failing to find the .cmake files.