Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT cross compile for RPI
Qt 6.12 LTS is out! See what's new in the release blog

QT cross compile for RPI

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 469 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.
  • M Offline
    M Offline
    Michael_sa8
    wrote on last edited by
    #1

    HI,
    When I compile source code for rpi with below command:
    +++++++++++++++++++++++++++++++++++++++++++++
    cmake ../src/qtbase-everywhere-src-6.5.1/ -GNinja -DCMAKE_BUILD_TYPE=Release -DINPUT_opengl=es2 -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DQT_HOST_PATH=$HOME/qt6/host -DCMAKE_STAGING_PREFIX=$HOME/qt6/pi -DCMAKE_INSTALL_PREFIX=/usr/local/qt6 -DCMAKE_TOOLCHAIN_FILE=$HOME/qt6/toolchain.cmake -DQT_QMAKE_TARGET_MKSPEC=devices/linux-rasp-pi4-aarch64 -DQT_FEATURE_xcb=ON -DFEATURE_xcb_xlib=ON -DQT_FEATURE_xlib=ON
    +++++++++++++++++++++++++++++++++++++++++++++++
    I am getting this error:


    CMake Error at cmake/QtTargetHelpers.cmake:146 (target_link_libraries):
    Target "XcbQpaPrivate" links to:

    XCB::CURSOR
    

    but the target was not found. Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.
    

    Call Stack (most recent call first):
    cmake/QtModuleHelpers.cmake:576 (qt_internal_extend_target)
    src/plugins/platforms/xcb/CMakeLists.txt:8 (qt_internal_add_module)


    anybody knows what is the problem?
    Thanks

    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
    • Unsolved