Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT 6.5.1 cross compile fpr raspberry pi 4 "XCB" error
Forum Updated to NodeBB v4.3 + New Features

QT 6.5.1 cross compile fpr raspberry pi 4 "XCB" error

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 3 Posters 632 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 2 Jul 2023, 23:50 last edited by
    #1

    Hi,
    I tried to compile cross platform qt for rpi but i received error when I run below cmake 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
    +++++++++++++++++++++++++++++++++++++++++++++++
    And the error is as follow:

    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)

    Anyone knows what is the problem?
    Thanks

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tchort
      wrote on 9 Jun 2024, 20:08 last edited by
      #2

      XCB::CURSOR / "XcbQpaPrivate /DQT_FEATURE_xcb=ON / -DFEATURE_xcb_xlib=ON

      To what they are inaccurately referring:

      qtbase/src/gui/platform/unix/qxkbcommon.cpp

      XCB != qxkb

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cactus00
        wrote on 20 Nov 2024, 08:26 last edited by
        #3

        Hi,
        I am also facing the same issue.

        @Tchort can you please elaborate your answer.

        I tried , reinstalling the host system, and reinstalling rpi. I was able to compile the qt cmake.

        Bit I'd like to know the actual reason behind this error

        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