How to cross-compile for RasPi3

后端 未结 2 1830
野性不改
野性不改 2021-02-09 15:20

I am currently trying to cross-compile Qt 5.7 for my Raspberry Pi 3. This is my first cross-compiling atempt, so please be kind. :)

On the Qt Wiki I found instructions f

2条回答
  •  抹茶落季
    2021-02-09 15:43

    After much struggle (the accepted solution does not work for me), I finally got to cross compile qt 5.6 for raspberry pi 3 on ubuntu. You basically need to follow this well known how to. Just be sure to use the following configure:

    ./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 -nomake examples -nomake tests -no-use-gold-linker

提交回复
热议问题