Ubuntu18.04下linuxdeployqt下载安装
开发环境:Ubuntu18.04+QT5.14.2
使用需求:使用QT开发完成后的项目需要使用linuxdeployqt工具打包生成相关文件
下载安装:
1.使用火狐浏览器打开linuxdeployqt下载地址:
https://github.com/probonopd/linuxdeployqt/releases
https://objects.githubusercontent.com/github-production-release-asset-2e65be/67432158/42fab29f-1b45-40ec-a7ea-636c02173e49?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230118%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230118T021624Z&X-Amz-Expires=300&X-Amz-Signature=4cfe69787a42a5e7de0bec09fd99d9d83251cb451162c78ceda3799f4a999719&X-Amz-SignedHeaders=host&actor_id=3739986&key_id=0&repo_id=67432158&response-content-disposition=attachment%3B%20filename%3Dlinuxdeployqt-continuous-x86_64.AppImage&response-content-type=application%2Foctet-stream
2. 下载上图中第一个.AppImage的文件,等待下载完成后,打开下载目录,在空白处点击鼠标右键,选择在终端打开(E)命令菜单,执行对应命令
修改下载文件的访问权限
chmod +x linuxdeployqt-continuous-x86_64.AppImage
修改下载文件名称
mv linuxdeployqt-continuous-x86_64.AppImage linuxdeployqt
移动文件位置
sudo mv linuxdeployqt /usr/local/bin
检查是否安装成功
linuxdeployqt --version
------------------------------------------------------------------------------------------------------
xqf222@ubuntupc:~/下载$ chmod +x linuxdeployqt-continuous-x86_64.AppImage
xqf222@ubuntupc:~/下载$ mv linuxdeployqt-continuous-x86_64.AppImage linuxdeployqt
xqf222@ubuntupc:~/下载$ mv linuxdeployqt /usr/local/bin
mv: 无法将'linuxdeployqt' 移动至'/usr/local/bin/linuxdeployqt': 权限不够
xqf222@ubuntupc:~/下载$ sudo mv linuxdeployqt /usr/local/bin
[sudo] xqf222 的密码:
xqf222@ubuntupc:~/下载$ linuxdeployqt --version
linuxdeployqt (commit deebf70), build 38 built on 2022-12-15 18:06:02 UTC
xqf222@ubuntupc:~/下载$
------------------------------------------------------------------------------------------------------