前言
类比windows,使用deployqt
提示:借鉴多篇文章
一、下载linuxdeployqt
参考:
https://blog.csdn.net/Adieu_csdn/article/details/102638934?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromBaidu-1.control
因版本问题,选择使用源程序方法
二、注意事项
1.Could not resolve host: github.com
参考:
https://blog.csdn.net/yjn18021006815/article/details/118568048`
域名的查询``:https://ping.chinaz.com/github.com
2.vim的使用
参考:
https://www.cnblogs.com/mabingxue/p/10281132.html
3.fatal: unable to access ‘https://github.com/xxxxxxxxx/xxx.git/‘: gnutls_
参考:
https://blog.csdn.net/weixin_45647721/article/details/123912786
4.打包报错
ERROR: ldd outputLine: “libjasper.so.1 => not found”
ERROR: for binary: “/home/xl/Qt5.9.0/5.9.0/gcc_64/plugins/imageformats/libqjp2.so”
ERROR: Please ensure that all libraries can be found by ldd. Aborting.
解决:
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt update
sudo apt install libjasper1 libjasper-dev
5.提示没有libqgtk2.so和libqgtk2style.so这两个文件apt-get update
执行:
apt-get -y install libgtk2.0-dev
git clone http://code.qt.io/qt/qtstyleplugins.git
cd qtstyleplugins
qmake
make -j$(nproc)
sudo make install
cd -
后续发布
https://blog.csdn.net/weixin_30788095/article/details/116764760?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165344737516782248546612%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=165344737516782248546612&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_ecpm_v1~rank_v31_ecpm-2-116764760-null-null.142v10control,157v12control&utm_term=Desktop+file+missing%2C+creating+a+default+one&spm=1018.2226.3001.4187