標題: 交叉編譯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.denmoz.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格式文檔下載(內容和本網頁上的一模一樣,方便保存):
| 歡迎光臨 (http://www.denmoz.com/bbs/) |
Powered by Discuz! X3.1 |