1.:-1: error: cannot find -lGL
问题分析:缺少GL库,安装即可
解决办法:sudo apt-get install libgl1-mesa-dev
方式一:利用下载编译好的linuxdeployqt-x86\_64.AppImage 应用程序文件。下载好之后,将其改名为linuxdeployqt,并chmod +x,然后复制到 /usr/local/bin/。然后命令行输入 linuxdeployqt --version,查看是否安装成功,若输出版本信息表示安装成功。
~~~
chmod +x linuxdeployqt-continuous-x86_64.AppImage
sudo mv linuxdeployqt-continuous-x86_64.AppImage linuxdeployqt
sudo mv linuxdeployqt /usr/local/bin
linuxdeployqt --version
#输出的版本信息
linuxdeployqt 8 (commit aeafcd2), build <local dev build> built on 2022-05-19 02:13:10 UTC
~~~
打包时找不到qmake'
设置qmake
export PATH=/home/sukaiwise/Qt5.14.0/5.14.0/gcc_64/bin:$PATH