flemingp
Posts: 6
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

keyurthumar
Posts: 10
Joined: Fri Oct 04, 2019 8:49 am

Cross-compilation guide for Qt 5.9.4 and RPi 4

Tue Nov 05, 2019 9:51 am

What will be the device option for raspberry pi 4 while configuring Qt on Ubuntu ?? will it be like -device linux-rpi4-g++

Thanks in advance

User avatar
topguy
Posts: 6049
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Cross-compilation guide for Qt 5.9.4 and RPi

Tue Nov 05, 2019 11:33 am

The choices you have for the version of Qt you have downloaded is found under "qtbase/mkspecs/devices/".

Code: Select all

/qt-source/qt-everywhere-src-5.13.0$ find . -name *-rasp-*
./qtbase/mkspecs/devices/linux-rasp-pi2-g++
./qtbase/mkspecs/devices/linux-rasp-pi3-g++
./qtbase/mkspecs/devices/linux-rasp-pi-g++
./qtbase/mkspecs/devices/linux-rasp-pi3-vc4-g++
./qtbase/mkspecs/devices/freebsd-rasp-pi-clang

keyurthumar
Posts: 10
Joined: Fri Oct 04, 2019 8:49 am

Re: Cross-compilation guide for Qt 5.9.4 and RPi

Tue Nov 05, 2019 12:02 pm

Thank you for the reply.

yeah those are the choices but i am using raspberry pi 4 and i am not finding a choice for it. Which one will be the best suited for it ?

fruitoftheloom
Posts: 21314
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Cross-compilation guide for Qt 5.9.4 and RPi 4

Tue Nov 05, 2019 12:12 pm

keyurthumar wrote:
Tue Nov 05, 2019 9:51 am
What will be the device option for raspberry pi 4 while configuring Qt on Ubuntu ?? will it be like -device linux-rpi4-g++

Thanks in advance

You are appending to an out of date post which pre-dates both Raspberry Pi 4B SBC and Raspbian Buster.

QT 5.11 is the default in Buster........

https://packages.debian.org/source/bust ... source-src
Retired disgracefully.....
This at present is my daily "computer" https://www.asus.com/us/Chrome-Devices/Chromebit-CS10/

keyurthumar
Posts: 10
Joined: Fri Oct 04, 2019 8:49 am

Re: Cross-compilation guide for Qt 5.9.4 and RPi 4

Tue Nov 05, 2019 12:21 pm

fruitoftheloom wrote:
Tue Nov 05, 2019 12:12 pm
keyurthumar wrote:
Tue Nov 05, 2019 9:51 am
What will be the device option for raspberry pi 4 while configuring Qt on Ubuntu ?? will it be like -device linux-rpi4-g++

Thanks in advance

You are appending to an out of date post which pre-dates both Raspberry Pi 4B SBC and Raspbian Buster.

QT 5.11 is the default in Buster........

https://packages.debian.org/source/bust ... source-src
Thank you.

But what about cross compilation on my Ubuntu ??

fruitoftheloom
Posts: 21314
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Cross-compilation guide for Qt 5.9.4 and RPi 4

Tue Nov 05, 2019 2:26 pm

keyurthumar wrote:
Tue Nov 05, 2019 12:21 pm
fruitoftheloom wrote:
Tue Nov 05, 2019 12:12 pm
keyurthumar wrote:
Tue Nov 05, 2019 9:51 am
What will be the device option for raspberry pi 4 while configuring Qt on Ubuntu ?? will it be like -device linux-rpi4-g++

Thanks in advance

You are appending to an out of date post which pre-dates both Raspberry Pi 4B SBC and Raspbian Buster.

QT 5.11 is the default in Buster........

https://packages.debian.org/source/bust ... source-src
Thank you.

But what about cross compilation on my Ubuntu ??

See you other post in a more appropriate thread:

https://www.raspberrypi.org/forums/view ... 6#p1561816
Retired disgracefully.....
This at present is my daily "computer" https://www.asus.com/us/Chrome-Devices/Chromebit-CS10/

Return to “Graphics programming”