一、
sudo apt install patchelf
二、
sudo apt-get install camke
三、打开.bashrc
1、vim ~/.bashrc
2、添加环境变量(注意自己的qt安装位置)
export LD_LIBRARY_PATH=/usr/local/lib:/home/hywc/Qt5.14.2/5.14.2/gcc_64/lib:$LD_LIBRARY_PATH
export PATH=/home/hywc/Qt5.14.2/5.14.2/gcc_64/bin:$PATH
export QT_PLUGIN_PATH=/home/hywc/Qt5.14.2/5.14.2/gcc_64/plugins:$QT_PLUGIN_PATH
export QML2_IMPORT_PATH=/home/hywc/Qt5.14.2/5.14.2/gcc_64/qml:$QML2_IMPORT_PATH
四、安装git
sudo apt install git
五、下载linuxdeployqt
git clone https://github.com/probonopd/linuxdeployqt.git --depth=1