Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.3.2
-
None
Description
on windows we cannot seem to set INSTALL_ARCHDATADIR other than the default "."
else rcc fails:
2022-09-27T15:23:27.3214156Z [789/7537] Running rcc for resource qpdf 2022-09-27T15:23:27.3217899Z FAILED: qtbase/src/gui/.rcc/qrc_qpdf.cpp C:/bld/qt6-main_1664289944288/work/build/qtbase/src/gui/.rcc/qrc_qpdf.cpp 2022-09-27T15:23:27.3219935Z cmd.exe /C "cd /D %SRC_DIR%\build\qtbase\src\gui && %SRC_DIR%\build\qtbase\lib\qt6\bin\rcc.exe --output C:/bld/qt6-main_1664289944288/work/build/qtbase/src/gui/.rcc/qrc_qpdf.cpp --name qpdf C:/bld/qt6-main_1664289944288/work/build/qtbase/src/gui/.rcc/qpdf.qrc"
the actual error code indicates a dll not found error
indeed Qt6Core.dll is not generated in the same directory (it is located in build\qtbase\bin assuming INSTALL_BINDIR is set to its default value)
my concern is that I want to be able to set INSTALL_ARCHDATADIR to allow for a co-installation with qt5 like it can be done on linux/mac as these binaries conflict with one another
here is my cmake invocation:
cmake -LAH -G "Ninja" ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_PREFIX_PATH="%LIBRARY_PREFIX%" ^ -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^ -DINSTALL_ARCHDATADIR=lib/qt6 ^ -DINSTALL_INCLUDEDIR=include/qt6 ^ -DINSTALL_MKSPECSDIR=lib/qt6/mkspecs ^ -DINSTALL_DATADIR=share/qt6 ^ -DFEATURE_openssl_linked=ON ^ -DQT_BUILD_SUBMODULES="%MODS%" ^ ..
if I drop the INSTALL_ARCHDATADIR line it succeeeds
also is it possible to write versioned tools like it is done on Linux thanks to the user_facing_tool_links.txt files ?