S5P6818移植Qt5.5、FFTW、QWT
博客说明
撰写日期 | 2019.09.25 |
---|---|
完稿日期 | 2019.09.28 |
最近维护 | 暂无 |
本文作者 | multimicro |
联系方式 | [email protected] |
资料链接 | 本文无附件资料 |
GitHub | https://github.com/wifialan/ |
原文链接 | https://blog.csdn.net/multimicro/article/details/101369585 |
开发环境
环境说明 | 详细信息 | 备注信息 |
---|---|---|
操作系统 | Ubunut 16.04 | |
开发板 | NanoPC-T3 - S5P6818 - Cortex A53 | NanoPC-T3 |
开发板系统 | debian 32位(由友善之臂提供) | |
Qt版本 | qt-everywhere-opensource-src-5.5.1 | 官网地址 |
FFTW版本 | fftw-3.3.8 | 官网地址 | 下载地址 |
QWT | qwt-6.1.4 | 下载地址 |
编译器版本 | gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf | 官网地址 |
编译器路径 | /opt/toolschain/linaro/bin/arm-linux-gnueabihf- | 绝对路径 |
1. 移植Qt5.5
移植Qt,本文分为三步:
- 1 编写配置脚本文件,方便统一导入配置信息。更改目标平台下文件夹的qmake.conf内容,目的在于修改编译器路径
- 2 执行上述配置脚本,会生成makefile文件,然后编译、a安装
- 3 将编译安装后的文件拷贝到目标板,添加相应的环境变量
1.1 编译Qt5.5
1.1.1 增加配置脚本
cd qt-everywhere-opensource-src-5.5.1
在该文件夹下创建配置脚本文件 qtbuile.sh
文件内容如下
#!/bin/sh
./configure -prefix /home/china/work/s5p6818/qt/Qt5.5 \
-verbose \
-opensource \
-release \
-confirm-license \
-xplatform linux-arm-gnueabi-g++ \
-optimized-qmake \
-shared \
-no-opengl \
-no-openssl \
-no-sse2 \
-no-cups \
-no-glib \
-no-xcb
对此配置文件有疑问的可以在该文件夹下执行./configure --help
查看配置的详情解释
这里提示三点:
-prefix
后面跟的是编译好的qt文件安装目录xplatform
指的是target端的版本platform
是PC端的
-platform target ... The operating system and compiler you are building
on (default detected from host system).
-xplatform target .