Qt 6.11 is out! See what's new in the release
blog
Error During Cross Compilation
-
Hi,
I'M trying to cross compile QT6.10.2 for an arm64 platform from source.
I compile and installed the Host Build without problems, but when I try to configure the QT6 arm build I got the following error:-- Could NOT find Qt6CoreTools (missing: Qt6CoreTools_DIR) CMake Debug Log at qtbase/cmake/QtToolHelpers.cmake:741 (find_package): The internally managed CMAKE_FIND_PACKAGE_REDIRECTS_DIR. /data/fast/qt6/rk3506/qt6-arm-build/CMakeFiles/pkgRedirects CMAKE_PREFIX_PATH variable [CMAKE_FIND_USE_CMAKE_PATH]. /data/fast/qt6/rk3506/arm-buildroot-linux-gnueabihf_sdk-buildroot/lib/cmake CMAKE_FRAMEWORK_PATH and CMAKE_APPBUNDLE_PATH variables [CMAKE_FIND_USE_CMAKE_PATH]. Paths specified by the find_package HINTS option. none Paths specified by the find_package PATHS option. none find_package considered the following locations for Qt6CoreTools's Config module: The file was not found. Call Stack (most recent call first): qtbase/cmake/QtToolHelpers.cmake:83 (qt_internal_find_tool) qtbase/src/tools/syncqt/CMakeLists.txt:36 (qt_internal_add_tool)I'm using the following command:
make --debug-find-pkg=Qt6CoreTools ../../src/ -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DQT_HOST_PATH=/data/fast/qt6/qt-host -DCMAKE_STAGING_PREFIX=/data/fast/qt6/rk3506/qt6-arm-install -DCMAKE_INSTALL_PREFIX=/usr/local/qt6 -DCMAKE_TOOLCHAIN_FILE=/data/fast/qt6/rk3506/arm-buildroot-linux-gnueabihf_sdk-buildroot/share/buildroot/toolchainfile.cmake -DQT_QMAKE_TARGET_MKSPEC=devices/linux-rasp-pi4-aarch64Has anybody an idea what I'm doing wrong here?
Thanks
Martin