How to cross-compile for RasPi3

后端 未结 2 1838
野性不改
野性不改 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:35

    The arm-bcm2708/ folder is just a name. It contains several build tool chains. It's perfectly fine to use system-installed tool chains as well. So I installed the 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
    

提交回复
热议问题