QT 6.5.1 cross compile fpr raspberry pi 4 "XCB" error
-
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