Last active
February 22, 2018 22:32
-
-
Save alepez/f8a56f01a76e6afa779a16f0a97b1833 to your computer and use it in GitHub Desktop.
Cross Compile QT 5.8 for Raspberry PI 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure -release -opengl es2 -device linux-rpi3-vc4-g++ -device-option CROSS_COMPILE=/opt/rpi3/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot /opt/rpi3/gentoo-sysroot/ -extprefix /opt/Qt/5.8/rpi3 -v -nomake examples -nomake tests -no-use-gold-linker -opensource -confirm-license -skip qtscript | |
gmake | |
sudo gmake install |
Do you know how you might do it with Raspbian?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gold linker must be disabled for Qt on ARMv8. This is why is configured with
-no-use-gold-linke
Toolchain from https://github.com/raspberrypi/tools instaled in /opt/rpi3/tools
Sysroot copyed from Gentoo for Raspberry with some dependencies installed (eg: opengl). Raspbian should be fine, but you have to install some dev package.
Qt will be installed in /opt/Qt/5.8/rpi3