QT cross compile for RPI
-
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