Cross Compiling Qt6 using Cmake for Beagleplay
-
Hello All,
I am currently working on a project where i am using Beagleplay(Am625 Processor).
I tried all the method to cross compile qt based application using Cmake for my beagleplay but couldnt able to build it properly.
If anyone previously worked in this setup please help me to debug this.
I followed the method mentioned here:
https://embeddeduse.com/2020/11/21/cross-compiling-qt-embedded-applications-with-qtcreator-and-cmake/Getting these error message:
CMake Warning at /home/sumanth/CVS_SOURCE/ti-processor-sdk-linux-am62xx-evm-11.01.05.03/linux-devkit/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:100 (find_package):
[cmake] Could not find a configuration file for package "Qt6WidgetsTools" that is
[cmake] compatible with requested version "6.9.2".
[cmake]
[cmake] The following configuration files were considered but not accepted:
[cmake]
[cmake] /home/sumanth/Qt/6.9.1/gcc_64/lib/cmake/Qt6WidgetsTools/Qt6WidgetsToolsConfig.cmake, version: 6.9.1
[cmake]
[cmake] Call Stack (most recent call first):
[cmake] /home/sumanth/CVS_SOURCE/ti-processor-sdk-linux-am62xx-evm-11.01.05.03/linux-devkit/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6Widgets/Qt6WidgetsDependencies.cmake:39 (_qt_internal_find_tool_dependencies)
[cmake] /home/sumanth/CVS_SOURCE/ti-processor-sdk-linux-am62xx-evm-11.01.05.03/linux-devkit/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake:53 (include)
[cmake] /home/sumanth/CVS_SOURCE/ti-processor-sdk-linux-am62xx-evm-11.01.05.03/linux-devkit/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6/Qt6Config.cmake:243 (find_package)
[cmake] CMakeLists.txt:13 (find_package)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[cmake] CMake Warning at /home/sumanth/CVS_SOURCE/ti-processor-sdk-linux-am62xx-evm-11.01.05.03/linux-devkit/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6/Qt6Config.cmake:243 (find_package):
[cmake] Found package configuration file:
[cmake]
[cmake] /home/sumanth/CVS_SOURCE/ti-processor-sdk-linux-am62xx-evm-11.01.05.03/linux-devkit/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake
[cmake]
[cmake] but it set Qt6Widgets_FOUND to FALSE so package "Qt6Widgets" is considered
[cmake] to be NOT FOUND. Reason given by package:
[cmake]
[cmake] Qt6Widgets could not be found because dependency Qt6WidgetsTools could not
[cmake] be found.
[cmake]
[cmake] Configuring with --debug-find-pkg=Qt6WidgetsTools might reveal details why
[cmake] the package was not found.
[cmake]
[cmake] Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
[cmake] of the path variables that find_package uses to try and find the package.
[cmake]
[cmake] Call Stack (most recent call first):
[cmake] CMakeLists.txt:13 (find_package)
[cmake]
[cmake]
[cmake] CMake Error at CMakeLists.txt:13 (find_package):
[cmake] Found package configuration file:
[cmake]
[cmake] /home/sumanth/CVS_SOURCE/ti-processor-sdk-linux-am62xx-evm-11.01.05.03/linux-devkit/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6/Qt6Config.cmake
[cmake]
[cmake] but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
[cmake] FOUND. Reason given by package:
[cmake]
[cmake] Failed to find required Qt component "Widgets".
[cmake]
[cmake] Expected Config file at
[cmake] "/home/sumanth/CVS_SOURCE/ti-processor-sdk-linux-am62xx-evm-11.01.05.03/linux-devkit/sysroots/aarch64-oe-linux/usr/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake"
[cmake] exists
[cmake]
[cmake]
[cmake]
[cmake] Configuring with --debug-find-pkg=Qt6Widgets might reveal details why the
[cmake] package was not found.
[cmake]
[cmake] Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
[cmake] of the path variables that find_package uses to try and find the package.
[cmake]
[cmake]
[cmake]
[cmake]
[cmake] The command "/home/sumanth/CVS_SOURCE/ti-processor-sdk-linux-am62xx-evm-11.01.05.03/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/cmake -S /home/sumanth/CVS_QT/Hello -B /home/sumanth/CVS_QT/Hello/build/BeaglePlay-Debug -DCMAKE_TOOLCHAIN_FILE:FILEPATH=/home/sumanth/CVS_SOURCE/ti-processor-sdk-linux-am62xx-evm-11.01.05.03/linux-devkit/sysroots/x86_64-arago-linux/usr/share/cmake/OEToolchainConfig.cmake -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/home/sumanth/CVS_QT/Hello/build/BeaglePlay-Debug/.qtc/package-manager/auto-setup.cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_CXX_COMPILER_TARGET:STRING=aarch64-oe-linux -DCMAKE_CXX_COMPILER:FILEPATH=/home/sumanth/CVS_SOURCE/ti-processor-sdk-linux-am62xx-evm-11.01.05.03/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-g++ '-DCMAKE_GENERATOR:STRING=Unix Makefiles' -DCMAKE_C_COMPILER_TARGET:STRING=aarch64-oe-linux -DQT_MAINTENANCE_TOOL:FILEPATH=/home/sumanth/Qt/MaintenanceTool -DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON -DCMAKE_C_COMPILER:FILEPATH=/home/sumanth/CVS_SOURCE/ti-processor-sdk-linux-am62xx-evm-11.01.05.03/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc -DCMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make -DCMAKE_SYSROOT:PATH=/home/sumanth/CVS_SOURCE/ti-processor-sdk-linux-am62xx-evm-11.01.05.03/linux-devkit/sysroots/aarch64-oe-linux -DQT_HOST_PATH:PATH=/home/sumanth/Qt/6.9.1/gcc_64" terminated with exit code 1.
[cmake]
[cmake] Elapsed time: 00:00.