標(biāo)題: 交叉編譯qt5.9.6 [打印本頁]

作者: 小小涼冰樂    時(shí)間: 2021-9-29 22:26
標(biāo)題: 交叉編譯qt5.9.6
開始下載
復(fù)制源碼到/opt下

解壓
進(jìn)入源碼包

Qt配置腳本
查看build內(nèi)容
查看腳本內(nèi)容

./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

運(yùn)行腳本
報(bào)錯(cuò):You don't seem to have 'make' or 'gmake' in your PATH.

再次運(yùn)行腳本

在創(chuàng)建qmake,等待
報(bào)錯(cuò):arm-linux-gnueabihf/bin/ld: cannot find -lts

原因:

安裝tslib(見其他文章)
http://www.torrancerestoration.com/bbs/dpj-212768-1.html

再次運(yùn)行腳本

修改腳本,重新配置,然后編譯,安裝。
等待
。。。。。。。。

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

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

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

以上圖文的Word格式文檔下載(內(nèi)容和本網(wǎng)頁上的一模一樣,方便保存):
交叉編譯qt5.9.6.docx (3.24 MB, 下載次數(shù): 5)





歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1