为树莓派3B 编译QT 5.7.1

 

 

 

Download QT everywhere package :

http://download.qt.io/archive/qt/5.7/5.7.1/single/qt-everywhere-opensource-src-5.7.1.zip

Download Raspberry cross compiler :

https://github.com/raspberrypi/tools

dump rootfs from Rasberry SD card
 

scp pi@XXXXX:/lib  /(host_workspace)/lib

scp pi@XXXXX:/usr  /(host_workspace)/usr

scp pi@XXXXX:/opt /(host_workspace)/opt

Dowload tslib and compile

 

CROSS COMPILE QT:

1) uncompress QT package to some where.

/opt/workspace/qt-everywhere-opensource-src-5.7.1

2) make build dir under the QT root dir
 

set arm-linux-gnueabihf-gcc into $PATH

cp linux-arm-gnueabi-g++ in the qtbase/mkspec as linux-arm-gnueabihf-g++

cp linux-rpi2-g++ in the qtbase/mkspec/device as linux-rpi3-g++

mkdir build

cd build

../configure -release --opensource -confirm-license -shared -no-qml-debug   -qt-libpng -qt-libjpeg -qt-freetype  -no-glib -no-gtk -nomake examples -no-compile-examples -gui -widgets -tslib -device linux-rpi3-g++  -device-option CROSS_COMPILE=arm-linux-gnueabihf-   -linuxfb   -sysroot /opt/Rasp/rootfs  -no-gstreamer  -I /opt/Rasp/tslib/usr/local/include  -L /opt/Rasp/tslib/usr/local/lib   -xplatform linux-arm-gnueabihf-g++   -skip qtwayland

make ARCH=arm-linux CROSS_COMPILE=arm-linux-gnueabihf-


make install 

 

===========

:~/Downloads/qt-everywhere-src-5.12.5/build$ ../configure -xplatform linux-aarch64-gnu-g++ -release -opensource -confirm-license -shared -confirm-license -I /opt/xxxxx/linux_dev_env/aarch64-linux-gnu/var/include -L /opt/xxxxx/linux_dev_env/aarch64-linux-gnu/var/lib  --prefix=/var -no-glib -no-qml-debug  -nomake examples    -no-opengl -sysroot /opt/xxxxxx/linux_dev_env/aarch64-linux-gnu -skip  qtdoc

 

 

 

 

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Kalong

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值