Problem Cross-Compile Qt 6.
Unsolved
Mobile and Embedded
-
Hello. I am trying to Cross Compile qt for my linux based device using this tutorial: https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi. One of the steps is to compile the qt for the host system(Building Qt 6 for Host Machine). In my case the host system is Ubuntu 22.04.5 LTS. At this stage, when i launch cmake
cmake ../qt5/ -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$HOME/test1/qt-host
the following error occurs.
CMake Error at qtbase/cmake/QtPublicTargetHelpers.cmake:257 (set_property): Attempt to promote imported target "Threads::Threads" to global scope (by setting IMPORTED_GLOBAL) which is not built in this directory. Call Stack ([link text](link url)most recent call first): qtbase/cmake/QtFindPackageHelpers.cmake:180 (__qt_internal_promote_target_to_global) qtbase/src/corelib/CMakeLists.txt:4 (qt_find_package)
Unfortunately I don't know how to show the full command output.
I followed all the steps according to the tutorial. Please advise how to solve the problem