qt-v6.5.4-lts-lgpl cross compile for windows
Unsolved
General and Desktop
-
I am using the
qt-v6.5.4-lts-lgpl-deb12
git tag, as it seems to be a stable LTS version.
After pulling the repo, I compile it without problems in my debian12 docker.
But cross compiling qt for windows seems to fail due toqtactiveqt
having a dependency which is not given.
I solved it by deinitializing theqtactiveqt
submodule before configuring, which is not build as a consequence.86_64-debian-bookworm
is a script that runs runs a debian12 image and mounts the local file system.
The configure command used with output:86_64-debian-bookworm ../configure -cmake-file-api -submodules qtbase,qtsvg,qttools -prefix ../../qt6-installs/qt-v6.5.4-lts-lgpl-deb12-crosswin -qt-host-path ../../qt6-installs/qt-v6.5.4-lts-lgpl-deb12 -- -DCMAKE_TOOLCHAIN_FILE=x86_64-win32gcc.cmake + mkdir -p qtbase + cd qtbase + exec /home/sg/LLT/git/qt6/qtbase/configure -top-level -cmake-file-api -submodules qtbase,qtsvg,qttools -prefix ../../qt6-installs/qt-v6.5.4-lts-lgpl-deb12-crosswin -qt-host-path ../../qt6-installs/qt-v6.5.4-lts-lgpl-deb12 -- -DCMAKE_TOOLCHAIN_FILE=x86_64-win32gcc.cmake '/usr/bin/cmake' '-DQT_BUILD_SUBMODULES=qtbase;qtsvg;qttools' '-DQT_HOST_PATH=../../qt6-installs/qt-v6.5.4-lts-lgpl-deb12' '-DCMAKE_TOOLCHAIN_FILE=x86_64-win32gcc.cmake' '-DCMAKE_INSTALL_PREFIX=../../qt6-installs/qt-v6.5.4-lts-lgpl-deb12-crosswin' '-G' 'Ninja' '/home/sg/LLT/git/qt6' -- Checking dependencies of submodule 'qtbase' -- Checking dependencies of submodule 'qtsvg' -- Checking dependencies of submodule 'qtactiveqt' -- Checking dependencies of submodule 'qtimageformats' -- Checking dependencies of submodule 'qtlanguageserver' -- Checking dependencies of submodule 'qtshadertools' -- Checking dependencies of submodule 'qtdeclarative' -- Checking dependencies of submodule 'qttools' -- Configuring submodule 'qtbase' -DCMAKE_C_FLAGS_DEBUG=-g -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -O2 -DCMAKE_C_FLAGS_RELWITHDEBINFO=-g -DNDEBUG -O2 -DCMAKE_CXX_FLAGS_DEBUG=-g -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -O2 -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-g -DNDEBUG -O2 -DCMAKE_OBJCOPY=/usr/bin/x86_64-w64-mingw32-objcopy -DCMAKE_TOOLCHAIN_FILE=x86_64-win32gcc.cmake -DCMAKE_C_STANDARD=11 -DCMAKE_C_STANDARD_REQUIRED=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_MODULE_PATH:STRING=/home/sg/LLT/git/qt6/qtbase/cmake/platforms -- Configuring submodule 'qtsvg' -- Configuring submodule 'qtactiveqt' CMake Warning at /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package): Found package configuration file: /home/sg/LLT/git/qt6/build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6QmlIntegration/Qt6QmlIntegrationConfig.cmake but it set Qt6QmlIntegration_FOUND to FALSE so package "Qt6QmlIntegration" is considered to be NOT FOUND. Reason given by package: Target "Qt6::QmlIntegration" was not found.Possibly due to QT_NO_CREATE_TARGETS being set to TRUE and thus /home/sg/LLT/git/qt6/build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6QmlIntegration/Qt6QmlIntegrationTargets.cmake was not included to define the target. Call Stack (most recent call first): build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:111 (find_dependency) build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6Qml/Qt6QmlDependencies.cmake:39 (_qt_internal_find_qt_dependencies) build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:41 (include) build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6/Qt6Config.cmake:158 (find_package) qtactiveqt/CMakeLists.txt:29 (find_package) CMake Warning at build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6/Qt6Config.cmake:158 (find_package): Found package configuration file: /home/sg/LLT/git/qt6/build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake but it set Qt6Qml_FOUND to FALSE so package "Qt6Qml" is considered to be NOT FOUND. Reason given by package: Qt6Qml could not be found because dependency Qt6QmlIntegration could not be found. Configuring with --debug-find-pkg=Qt6QmlIntegration might reveal details why the package was not found. Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some of the path variables that find_package uses to try and find the package. Call Stack (most recent call first): qtactiveqt/CMakeLists.txt:29 (find_package) CMake Warning at build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6/Qt6Config.cmake:215 (message): Failed to find optional Qt component "Qml". Expected Config file at "/home/sg/LLT/git/qt6/build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake" exists Call Stack (most recent call first): qtactiveqt/CMakeLists.txt:29 (find_package) CMake Warning at /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package): Found package configuration file: /home/sg/LLT/git/qt6/build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6QmlIntegration/Qt6QmlIntegrationConfig.cmake but it set Qt6QmlIntegration_FOUND to FALSE so package "Qt6QmlIntegration" is considered to be NOT FOUND. Reason given by package: Target "Qt6::QmlIntegration" was not found.Possibly due to QT_NO_CREATE_TARGETS being set to TRUE and thus /home/sg/LLT/git/qt6/build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6QmlIntegration/Qt6QmlIntegrationTargets.cmake was not included to define the target. Call Stack (most recent call first): build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:111 (find_dependency) build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6Qml/Qt6QmlDependencies.cmake:39 (_qt_internal_find_qt_dependencies) build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:41 (include) /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package) build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:111 (find_dependency) build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:39 (_qt_internal_find_qt_dependencies) build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:40 (include) build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6/Qt6Config.cmake:158 (find_package) qtactiveqt/CMakeLists.txt:29 (find_package) CMake Warning at /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package): Found package configuration file: /home/sg/LLT/git/qt6/build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake but it set Qt6Qml_FOUND to FALSE so package "Qt6Qml" is considered to be NOT FOUND. Reason given by package: Qt6Qml could not be found because dependency Qt6QmlIntegration could not be found. Configuring with --debug-find-pkg=Qt6QmlIntegration might reveal details why the package was not found. Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some of the path variables that find_package uses to try and find the package. Call Stack (most recent call first): build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:111 (find_dependency) build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:39 (_qt_internal_find_qt_dependencies) build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:40 (include) build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6/Qt6Config.cmake:158 (find_package) qtactiveqt/CMakeLists.txt:29 (find_package) CMake Warning at build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6/Qt6Config.cmake:158 (find_package): Found package configuration file: /home/sg/LLT/git/qt6/build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake but it set Qt6Quick_FOUND to FALSE so package "Qt6Quick" is considered to be NOT FOUND. Reason given by package: Qt6Quick could not be found because dependency Qt6Qml could not be found. Configuring with --debug-find-pkg=Qt6Qml might reveal details why the package was not found. Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some of the path variables that find_package uses to try and find the package. Call Stack (most recent call first): qtactiveqt/CMakeLists.txt:29 (find_package) CMake Warning at build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6/Qt6Config.cmake:215 (message): Failed to find optional Qt component "Quick". Expected Config file at "/home/sg/LLT/git/qt6/build-v6.5.4-lts-lgpl-deb12-crosswin/qtbase/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake" exists Call Stack (most recent call first): qtactiveqt/CMakeLists.txt:29 (find_package) -- Could NOT find Qt6AxServerTools (missing: Qt6AxServerTools_DIR) CMake Error at qtbase/cmake/QtToolHelpers.cmake:685 (message): Failed to find the host tool "Qt6::idc". It is part of the Qt6AxServerTools package, but the package could not be found. Make sure you have built and installed the host AxServer module, which will ensure the creation of the Qt6AxServerTools package. Call Stack (most recent call first): qtbase/cmake/QtToolHelpers.cmake:72 (qt_internal_find_tool) qtactiveqt/src/tools/idc/CMakeLists.txt:9 (qt_internal_add_tool) -- Configuring incomplete, errors occurred! See also "/home/sg/LLT/git/qt6/build-v6.5.4-lts-lgpl-deb12-crosswin/CMakeFiles/CMakeOutput.log". See also "/home/sg/LLT/git/qt6/build-v6.5.4-lts-lgpl-deb12-crosswin/CMakeFiles/CMakeError.log". CMake Error at /home/sg/LLT/git/qt6/qtbase/cmake/QtProcessConfigureArgs.cmake:994 (message): CMake exited with code 1.
Is this a mistake in the configure logic or am I missing something?