杭州市富阳区建设局网站,南安网络推广,wordpress添加夜间模式,网站定制https://download.qt.io/official_releases/qtcreator/
5.15 以上安装
QT5.15以上不再提供离线安装包#xff0c;只能在线安装#xff0c;– 下载
下载地址如下#xff1a; 腾讯云的国内资源: Index of /qt/official_releases/online_installers/ 官网下载#xff1a;…https://download.qt.io/official_releases/qtcreator/
5.15 以上安装
QT5.15以上不再提供离线安装包只能在线安装– 下载
下载地址如下 腾讯云的国内资源: Index of /qt/official_releases/online_installers/ 官网下载https://www.qt.io/download 这里官网最麻烦的是需要登录账号下载时还需要填写信息 – 不过乱填也行 阿里云资源qt-archive-online_installers安装包下载_开源镜像站-阿里云
– 安装
我这里是在官网下载的qt-unified-linux-x64-4.6.1-online.run 安装的qt版本为6.6.1
sudo chmod -R 777 qt-unified-linux-x64-4.6.1-online.run./qt-unified-linux-x64-4.6.1-online.run然后一路点击安装即可
— 添加国内源进行安装
ps 这里没有测试过是否确实生效 ./qt-unified-linux-x64-4.6.1-online.run --mirror https://mirror.nju.edu.cn/qt其它国内源如 清华源–mirror https://mirrors.tuna.tsinghua.edu.cn/qt 阿里源–mirror https://mirrors.aliyun.com/qt/
5.15 以下安装
参考资料
[# Windows Qt离线安装](https://zhuanlan.zhihu.com/p/655299180)5.15版本以下可以下载离线安装包下载路径为 https://download.qt.io/archive/qt/
5.14.2下载示例如下
下载后
sudo chmod -R 777 qt-opensource-linux-x64-5.14.2.run./qt-opensource-linux-x64-5.14.2.run添加国内源进行安装
./qt-opensource-linux-x64-5.14.2.run --mirror https://mirror.nju.edu.cn/qt运行
第一次运行去安装目录下的bin
export QT_DEBUG_PLUGINS1./qtcreator方便查看报错信息
运行报错
– ① qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
参考资料QT开发问题与解决办法总结持续总结-CSDN博客
找问题方案export QT_DEBUG_PLUGINS1 查看详细报错信息
找到报错原因 – 这里就是需要找到libqxcb.so库
ldd libqxcb.so
发现里面libxcb-cursor. so. 0: not found
解决1(成功)
sudo apt install libxcb-cursor0