6

Which is the recommended toolchain to cross-compile Qt5.6 for Raspberry Pi 3? I tried official tools:

https://github.com/raspberrypi/tools

but it seems they don't support the architecture and flag required for RPi3:

QMAKE_CFLAGS            = -march=armv8-a+crc -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -pipe -Os -mthumb
QMAKE_CXXFLAGS          = $$QMAKE_CFLAGS -std=c++1z
Mark
  • 533
  • 2
  • 11
  • 23

3 Answers3

2

I'm going through the same thing. You need to use the 4.9.2 compiler:

Look under arm-bcm2708 for the arm-rpi-4.9.3-linux-gnueabihf folder.

I still haven't been able to cross-compile QT for Pi3, but I'm working on it.

My adventure can be found here: http://forum.qt.io/topic/67942/failed-cross-compile-bad-architecture

dayres
  • 21
  • 1
0

On Windows, I've used arm-linux-gnueabihf (see http://visualgdb.com/tutorials/raspberry/qt/embedded/), and MinGW64. It worked well. Don't hesitate if you want more details

etiennedm
  • 185
  • 7
0

Just change -std=c++1z to -std=c++11, and it will be recognized. Indeed version 4.9.3 is C++11 compliant.

John Wick
  • 101