标题: 交叉编译qt5.9.6 [打印本页]

作者: 小小凉冰乐    时间: 2021-9-29 22:26
标题: 交叉编译qt5.9.6
开始下载
复制源码到/opt下

解压
进入源码包

Qt配置脚本
查看build内容
查看脚本内容

./configure -v \
-release \
-opensource \
-confirm-license \
-silent \
-shared \
-xplatform linux-arm-gnueabi-g++ \
-prefix /opt/qtenv/Qt-5.9.6-arm \
-tslib \
-I/usr/local/tslib/include \
-L/usr/local/tslib/lib \
-no-opengl \
-nomake examples -nomake tools -nomake tests

使用./configure -h可以查询配置的大概含义

配置qmake

修改完,保存退出。
开始跟我一起配置qt

运行脚本
报错:You don't seem to have 'make' or 'gmake' in your PATH.

再次运行脚本

在创建qmake,等待
报错:arm-linux-gnueabihf/bin/ld: cannot find -lts

原因:

安装tslib(见其他文章)
http://www.51hei.com/bbs/dpj-212768-1.html

再次运行脚本

修改脚本,重新配置,然后编译,安装。
等待
。。。。。。。。

export PATH=/opt/qtenv/Qt-5.9.6-arm/bin/:$PATH

那就重新配置,然后一波操作

链接:https://pan.baidu.com/s/1p3AefJtlr6B3iJ_c-k5rzg
提取码:kka7

以上图文的Word格式文档下载(内容和本网页上的一模一样,方便保存):
交叉编译qt5.9.6.docx (3.24 MB, 下载次数: 4)





欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1