Skip to content

Instantly share code, notes, and snippets.

@alepez
Last active February 22, 2018 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alepez/f8a56f01a76e6afa779a16f0a97b1833 to your computer and use it in GitHub Desktop.
Save alepez/f8a56f01a76e6afa779a16f0a97b1833 to your computer and use it in GitHub Desktop.
Cross Compile QT 5.8 for Raspberry PI 3
./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
@alepez
Copy link
Author

alepez commented Oct 21, 2017

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

@tofutim
Copy link

tofutim commented Feb 22, 2018

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