Posts: 4
Joined: Thu Oct 13, 2016 6:33 am

Re: Cross-compilation guide for Qt 5.9.4 and RPi

Tue Dec 11, 2018 1:31 pm

Resolved my issue by using the following configure script provided at https://forum.qt.io/topic/91294/qt-on-raspberry-pi3/9band then compiling any required modules separately.

../qt-everywhere-src-5.11.2/configure -opengl es2 -device rasp-pi3-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -sysroot /home/paul/raspi/sysroot -opensource -confirm-license \
-I/home/paul/raspi/sysroot/usr/include/ \
-L/home/paul/raspi/sysroot/usr/lib/arm-linux-gnueabihf -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v -no-use-gold-linker -nomake examples -no-compile-examples -nomake tests \
-sql-mysql MYSQL_INCDIR=/home/paul/raspi/sysroot/usr/include/mysql \
MYSQL_LIBDIR=/home/paul/raspi/sysroot/usr/lib/arm-linux-gnueabihf \
-skip qtserialbus -skip qtscxml -skip qtscript -skip qtcharts -skip qt3d \
-skip qtdatavis3d -skip qtcanvas3d -skip qtgamepad -skip qtvirtualkeyboard \
-skip qtwayland -skip qtwebengine -skip qtwebchannel -skip qtwebglplugin \
-skip qtwebsockets --recheck-all

Return to “Graphics programming”