Unsolved Cross-compile qt for raspberrypi
-
I am trying to follow this tutorial step by step to cross-compile qt for raspberrypi :
https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_PiUntil I reach :
$ ../qt5/configure -release -opengl es2 -nomake examples -nomake tests -qt-host-path $HOME/qt-host -extprefix $HOME/qt-raspi -prefix /usr/local/qt6 -device linux-rasp-pi4-aarch64 -device-option CROSS_COMPILE=aarch64-linux-gnu- -- -DCMAKE_TOOLCHAIN_FILE=$HOME/toolchain.cmake -DQT_FEATURE_xcb=ON -DFEATURE_xcb_xlib=ON -DQT_FEATURE_xlib=ON
I get the following error:
CMake Error at /home/name/qt5/qtwebengine/configure.cmake:65 (check_for_ulimit): Unknown CMake command "check_for_ulimit". Call Stack (most recent call first): /home/name/qt5/qtbase/cmake/QtProcessConfigureArgs.cmake:242 (include)
check_for_ulimit is a function defined elsewhere (qt5/qtwebengine/cmake/Functions.cmake) and used in the configure file I am running. I tried to fix this by adding the following in the configure.cmake file :
include("${CMAKE_CURRENT_LIST_DIR}/cmake/Functions.cmake")
FIrst problem solved but another error pops up :
Make Error at /home/name/qt5/qtwebengine/cmake/Functions.cmake:36 (qt_parse_all_arguments): Unknown CMake command "qt_parse_all_arguments". Call Stack (most recent call first): /home/name/qt5/qtwebengine/configure.cmake:429 (add_check_for_support) /home/name/qt5/qtbase/cmake/QtProcessConfigureArgs.cmake:242 (include)
qt_parse_all_arguments isn't included too, how can I deal with every function included isn't imported ?