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