编译其他模块
执行到这步的时候,你已经有了针对树莓派交叉编译的qmake工具了,你可以一一的去交叉编译Qt5的其他模块了,为里避免模块编译过程中可能 出现的依赖错误,建议按照这个模块顺序去编译: qtimageformats, qtsvg, qtjsbackend, qtscript, qtxmlpatterns, qtdeclarative, qtsensors, qt3d, qtgraphicaleffects,qtjsondb,qtlocation, qtdocgallery.
模块编译相关的类似命令:
1
diveinedu@debian:~/opt/qt5$cd qtimageformats
2
diveinedu@debian:~/opt/qt5/qtimageformats$/usr/local/qt5pi/bin/qmake .
3
diveinedu@debian:~/opt/qt5/qtimageformats$make -j4
4
diveinedu@debian:~/opt/qt5/qtimageformats$sudo make install
把你所需要或者所想编译的模块都按顺序执行编译安装命令后,所有需要的东西都安装在了镜像文件(raspbain wheezy image)里面了。我们接下来就是把他烧到SD卡上去。 SD卡烧写命令:
1
diveinedu@debian:~/opt/qt5$cd ~/opt/
2
diveinedu@debian:~/opt$sync;sudo umount /mnt/rasp-pi-rootfs
3
diveinedu@debian:~/opt$sudo dd bs=1Mif=2013-02-09-wheezy-raspbian.img of=/dev/sdc;sync
提示:/dev/sdc是我使用的SD的设备, 请根据自己的实际情况修改。
到这里,树莓派的Qt5运行库的编译移植过程就Done了。
后续会有例程Demo以及Qt5的QPA机制在树莓派上的eglfs平台插件的特点介绍和传统QtWidget程序在EGLFS环境下遇到的问题和解决分析。
C/C++开发,嵌入式Linux,嵌入式开发, Qt开发, Qt5移植 等, 尽在长沙戴维营教育 ,欢迎前来学习。