Bug*_*ger 5 cross-compiling raspberry-pi raspberry-pi3 qt5.7
我目前正在尝试为我的Raspberry Pi 3交叉编译Qt 5.7.这是我的第一个交叉编译尝试,所以请善待.:)
在Qt Wiki上,我找到了Raspberry Pi 2的说明,我目前正在努力调整它.
RasPi 2的编译行如下:
./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option \
CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- \
-sysroot ~/raspi/sysroot -opensource -confirm-license -make libs \
-prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v
Run Code Online (Sandbox Code Playgroud)
我替换了选项
-device linux-rasp-pi2-g++
Run Code Online (Sandbox Code Playgroud)
通过
-device linux-rpi3-g++
Run Code Online (Sandbox Code Playgroud)
正如我在raspi-tools文件夹中找到的那样.
现在我陷入了困境
CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
Run Code Online (Sandbox Code Playgroud)
在~/raspi/tools/文件夹中我看不到任何明显与raspi3相关的条目.只有arm-bcm2708/文件夹.不应该有一些bcm2837入境?这是否意味着尚未支持RasPi 3或者我错过了什么?
谢谢你的任何提示.
小智 1
该arm-bcm2708/文件夹只是一个名称。它包含多个构建工具链。使用系统安装的工具链也完全没问题。因此,我在构建机器(Debian GNU/Linux)上安装了该软件包g++-arm-linux-gnueabihf并使用了以下配置调用:
./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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9711 次 |
| 最近记录: |