ubuntu下交叉编译QT程序完整流程
2013-11-25 11:24
253 查看
1、将QT项目构建目录设定于tftp服务目录(如:/root/tftpboot/)下。
2、项目设置
a) tool chains
![](http://images.cnitblog.com/blog/436029/201311/25105805-bd17009edfc4440c9e8b5a5e0d67a587.png)
b)qt version
![](http://images.cnitblog.com/blog/436029/201311/25105830-61ba197810864fb68bf3d2cffdafc2cd.png)
c)project
![](http://images.cnitblog.com/blog/436029/201311/25105909-0c40458d337047f6a9fbde040f348474.png)
3、构建项目,并确定可执行文件的属性,必须是arm。
#cd /root/tftpboot/chip
#file chip
![](http://images.cnitblog.com/blog/436029/201311/25112049-4960281f0a7044c4aa7503cb8b5fc6bd.png)
4、复制开发板相关脚本到构建目录(/root/tftpboot/chip),并压缩该构建目录。
#cd /root/tftpboot
#tar -cvf chip.tar chip
5、将文件下载到开发板,并解压。
#tftp -l /**/chip.tar -r /chip.tar -g *.*.*.* (依据实际情况填写各参数)
#tar -xvf chip.tar
6、确认脚本里的路径正确,运行脚本。
2、项目设置
a) tool chains
![](http://images.cnitblog.com/blog/436029/201311/25105805-bd17009edfc4440c9e8b5a5e0d67a587.png)
b)qt version
![](http://images.cnitblog.com/blog/436029/201311/25105830-61ba197810864fb68bf3d2cffdafc2cd.png)
c)project
![](http://images.cnitblog.com/blog/436029/201311/25105909-0c40458d337047f6a9fbde040f348474.png)
3、构建项目,并确定可执行文件的属性,必须是arm。
#cd /root/tftpboot/chip
#file chip
![](http://images.cnitblog.com/blog/436029/201311/25112049-4960281f0a7044c4aa7503cb8b5fc6bd.png)
4、复制开发板相关脚本到构建目录(/root/tftpboot/chip),并压缩该构建目录。
#cd /root/tftpboot
#tar -cvf chip.tar chip
5、将文件下载到开发板,并解压。
#tftp -l /**/chip.tar -r /chip.tar -g *.*.*.* (依据实际情况填写各参数)
#tar -xvf chip.tar
6、确认脚本里的路径正确,运行脚本。
相关文章推荐
- 图解如何将Ubuntu上的Qt程序交叉编译出可在ARM平台运行的程序(五部曲)
- [置顶] ubuntu 交叉编译qt 5.7 程序到 arm 开发板
- Ubuntu配置安装ARM Linux交叉编译环境完整流程
- Ubuntu下 在终端使用 qmake 编译 Qt widgets程序
- ubuntu qt 4.6.3 交叉编译环境搭建
- 虚拟机下 运行交叉编译QT程序 与 PC环境 命令
- 搭建虚拟机下ubuntu的qt-arm交叉编译工具
- Ubuntu 14.04 LTS + Qt 4.7.3 交叉编译
- Ubuntu下QT程序中编译时出现speex/speex.h: No such file or directory
- ubuntu 12.04安装qt5.4 编译程序cannot find -lGL问题
- Ubuntu14.04 交叉编译Qt-creator
- 虚拟机中在Ubuntu14.04下搭建QT交叉编译环境--2014/8/14
- ubuntu14.04交叉编译vlc2.1.5源码,编译出在win32下运行的程序
- ubuntu16.04下编译qt5。5程序出现:-1: error: [ui_firstpage.h] Error 1 错误的解决
- window和ubuntu上的QT中文显示正常,交叉编译arm板上debian系统中文显示不正常【已解决】
- ubuntu下qt4.7.3交叉编译环境的搭…
- ubuntu14.04交叉编译vlc2.1.5源码,编译出在win32下运行的程序
- linux-ubuntu16.04 为树莓派3B 交叉编译qt5.9 心得
- Qt学习(如何交叉编译一个Qt程序使其能在板子上运行) .
- Ubuntu下QT使用CMake编译Opencv程序