安徽品質(zhì)網(wǎng)站建設(shè)創(chuàng)新邀請(qǐng)注冊(cè)推廣賺錢(qián)的app
編譯
手動(dòng)編寫(xiě)編譯腳本
qmake
make
復(fù)制依賴庫(kù)
參考文章:
https://blog.csdn.net/JOBbaba/article/details/124289626
https://zhuanlan.zhihu.com/p/49919048
- 復(fù)制系統(tǒng)依賴庫(kù)
編寫(xiě)復(fù)制腳本copy.sh
ldd
- 復(fù)制Qt依賴庫(kù)
主要是libqxcb.so的相關(guān)依賴需要復(fù)制,請(qǐng)注意一定要在執(zhí)行cpoy.sh腳本前,指定
export LD_LIBRARY_PATH=/opt/Qt/5.15.2/gcc_64/lib
否則,libqxcb.so的依賴默認(rèn)從系統(tǒng)庫(kù)中查找。
- 復(fù)制qml相關(guān)文件
因?yàn)槌绦蛑杏玫搅薗tQuick,需要將Quick相關(guān)文件復(fù)制到目錄下。
主要是5個(gè)文件夾:
/opt/Qt/5.15.2/gcc_64/qml/Qt
/opt/Qt/5.15.2/gcc_64/qml/QtGraphicalEffects
/opt/Qt/5.15.2/gcc_64/qml/QtQml
/opt/Qt/5.15.2/gcc_64/qml/QtQuick
/opt/Qt/5.15.2/gcc_64/qml/QtQuick.2
- 編寫(xiě)啟動(dòng)腳本指定
LD_LIBRARY_PATH
export LD_LIBRARY_PATH=當(dāng)前目錄
- 排查問(wèn)題,可能存在某些庫(kù)依舊找不到,注意可能存在快捷方式庫(kù)。
find /opt -name 庫(kù)名cp -r 目錄 ./
- ldd確認(rèn),腳本執(zhí)行
./start.sh
dpkg打包
https://blog.csdn.net/weixin_39083202/article/details/106817151