Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Problem Cross-Compile Qt 6.
Forum Updated to NodeBB v4.3 + New Features

Problem Cross-Compile Qt 6.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 187 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    back-loz
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved