Results 1 to 3 of 3

Thread: Problem Cross-Compile Qt 6

  1. #1
    Join Date
    Oct 2024
    Posts
    2
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Problem Cross-Compile Qt 6

    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
    Qt Code:
    1. cmake ../qt5/ -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$HOME/test1/qt-host
    To copy to clipboard, switch view to plain text mode 
    the following error occurs.
    Qt Code:
    1. CMake Error at qtbase/cmake/QtPublicTargetHelpers.cmake:257 (set_property):
    2. Attempt to promote imported target "Threads::Threads" to global scope (by
    3. setting IMPORTED_GLOBAL) which is not built in this directory.
    4. Call Stack ([link text](link url)most recent call first):
    5. qtbase/cmake/QtFindPackageHelpers.cmake:180 (__qt_internal_promote_target_to_global)
    6. qtbase/src/corelib/CMakeLists.txt:4 (qt_find_package)
    To copy to clipboard, switch view to plain text mode 
    full command output in a text document available at the link: https://disk.yandex.ru/d/HDnovG2rucgFwA
    I followed all the steps according to the tutorial. Please advise how to solve the problem.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,252
    Thanks
    304
    Thanked 868 Times in 855 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Problem Cross-Compile Qt 6

    cmake ../qt5/ -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$HOME/test1/qt-host
    Are you trying to cross-compile Qt5 or Qt6? This says "../qt5/".
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Oct 2024
    Posts
    2
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Problem Cross-Compile Qt 6

    I did everything according to the instruction: https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi
    git clone "https://codereview.qt-project.org/qt/qt5" - creates a folder qt5 , but as I understand git repo contains later versions of qt
    git checkout 6.4.0 - switch to qt6.4.0

Similar Threads

  1. qmake for cross-compile
    By skypuppy in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 31st December 2015, 14:55
  2. Cross compile
    By Ichi in forum Newbie
    Replies: 9
    Last Post: 3rd April 2013, 21:49
  3. Can't cross compile with dbus
    By nrabara in forum Installation and Deployment
    Replies: 3
    Last Post: 19th March 2012, 13:28
  4. Cant cross compile onto Windows CE 5
    By Willybood in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 27th October 2010, 00:38
  5. Cross-Compile to QT/X11 ARM
    By shiranraviv in forum Installation and Deployment
    Replies: 6
    Last Post: 18th December 2009, 12:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.