How to compile RasPi3

I'm currently trying to cross-compile Qt 5.7 for my Raspberry Pi 3. This is my first cross-compilation method, so please be kind. :)

In the Qt Wiki, I found instructions for the Raspberry Pi 2 that I am currently trying to adapt.

The compilation line for RasPi 2 is as follows:

./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option \ CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- \ -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs \ -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v 

I replaced the option

 -device linux-rasp-pi2-g++ 

by

 -device linux-rpi3-g++ 

as I found in the raspi-tools folder.

Now i'm stuck in options

 CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- 

as in the ~/raspi/tools/ folder, I don't see any entry related to raspi3. There is only the arm-bcm2708/ folder. Should there be some kind of bcm2837 entry? Does this mean that there is no RasPi 3 support yet or am I missing something?

Thanks for any tips.

+5
source share
2 answers

The arm-bcm2708/ folder is just a name. It contains several chains of building tools. This is great for using system tool chains. So I installed the g++-arm-linux-gnueabihf package g++-arm-linux-gnueabihf on my build machine (Debian GNU / Linux) and used this configure call:

 ./configure -release -opengl es2 -device linux-rpi3-g++ \ -device-option CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- \ -sysroot /home/fs/raspi/sysroot -opensource -confirm-license \ -make libs -prefix /usr/local/qt5pi -extprefix /home/fs/raspi/qt5pi \ -hostprefix /home/fs/raspi/qt5 -v 
+2
source

After a big fight (the decision made does not work for me), I finally got the qt 5.6 cross compiler for raspberry pi 3 on ubuntu. You basically need to follow this well known as . Just use the following configuration:

./configure -release -opengl es2 -device linux-rpi3-g ++
-device-option CROSS_COMPILE = ~ / raspi / tools / arm-bcm2708 / gcc-linaro-arm-linux-gnueabihf-raspbian-x64 / bin / arm-linux-gnueabihf- -sysroot ~ / raspi / sysroot -prefix / usr / local / qt5pi -extprefix ~ / raspi / qt5pi -hostprefix ~ / raspi / qt5 -v -which examples -nomake tests -no-use-gold-linker

+3
source

All Articles