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. Qt6.7.3 Cross-compilation: The target "xcbqpaprivate" links to: pkgconfig::xkb_common_x11.

Qt6.7.3 Cross-compilation: The target "xcbqpaprivate" links to: pkgconfig::xkb_common_x11.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 304 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.
  • LucasYuenL Offline
    LucasYuenL Offline
    LucasYuen
    wrote on last edited by
    #1

    I have already installed the X11 libraries on the target device, and during the build process, the following is found:

    -- Found XKB: /home/lucasyuen/sysroot/usr/lib/arm-linux-gnueabihf/libxkbcommon.a (found suitable version "0.8.2", minimum required is "0.5.0")
    

    However, I still encounter the following error:

    -- Configuring done (24.5s)
    CMake Error at qtbase/cmake/QtTargetHelpers.cmake:171 (target_link_libraries):
      Target "XcbQpaPrivate" links to:
    
        PkgConfig::XKB_COMMON_X11
    
      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):
      qtbase/cmake/QtModuleHelpers.cmake:610 (qt_internal_extend_target)
      qtbase/src/plugins/platforms/xcb/CMakeLists.txt:13 (qt_internal_add_module)
    
    -- Generating done (3.0s)
    CMake Generate step failed.  Build files cannot be regenerated correctly.
    
    

    I'm not sure why it's failing, even though the paths have been set correctly.

    1 Reply Last reply
    0
    • LucasYuenL Offline
      LucasYuenL Offline
      LucasYuen
      wrote on last edited by
      #2

      I have resolved the issue, as the /usr/share directory was not included in the sysroot.

      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