Raspberry guide - Unknown command line option '-hostprefix'
-
Hi folks,
I'm following the Raspberry Pi Beginners Guide and I am stuck on the Compiling Qtbase step.the following instruction returns me the error below.
./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi -hostprefix /usr/local/qt5pi
here is the error:
CMake Error at cmake/QtProcessConfigureArgs.cmake:270 (message): Unknown command line option '-hostprefix'. Call Stack (most recent call first): cmake/QtProcessConfigureArgs.cmake:655 (qtConfAddError)
It seems like it does not like the -hostprefix option. Any idea how to fix it?
Thanks!!!
-
You are probably following a guide for Qt 5 but you are trying to compile Qt 6. For best chances of success, use a setup as similar to the one in the guide as possible.