首页 > 系统相关 >qt linux下编译linuxdeployqt ,进行打包qt程序

qt linux下编译linuxdeployqt ,进行打包qt程序

时间:2023-03-24 16:46:54浏览次数:52  
标签:gcc git qt Qt5.14 export linuxdeployqt linux PATH

一、

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

标签:gcc,git,qt,Qt5.14,export,linuxdeployqt,linux,PATH
From: https://www.cnblogs.com/RedWetPlace/p/17252522.html

相关文章