ubuntu_qtcreator安装

https://download.qt.io/official_releases/qtcreator/

5.15 以上安装

QT5.15以上不再提供离线安装包,只能在线安装,

– 下载

下载地址如下:

– 安装

我这里是在官网下载的: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_PLUGINS=1

./qtcreator

方便查看报错信息

运行报错

– ① qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.

参考资料:QT开发问题与解决办法总结(持续总结)-CSDN博客

找问题方案:export QT_DEBUG_PLUGINS=1 查看详细报错信息

找到报错原因 – 这里就是需要找到libqxcb.so库

ldd libqxcb.so

发现里面libxcb-cursor. so. 0: not found

解决1(成功):

sudo apt install libxcb-cursor0

相关推荐

  1. 安装】Linux安装ffmpeg

    2024-01-30 10:34:02       42 阅读
  2. mysql 安装

    2024-01-30 10:34:02       40 阅读
  3. Hadoop安装

    2024-01-30 10:34:02       29 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-01-30 10:34:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-01-30 10:34:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-01-30 10:34:02       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-01-30 10:34:02       20 阅读

热门阅读

  1. Leetcode 203 移除链表元素

    2024-01-30 10:34:02       36 阅读
  2. 多线程的使用

    2024-01-30 10:34:02       36 阅读
  3. 代码随想录算法训练营第六天 - 哈希表part01

    2024-01-30 10:34:02       31 阅读
  4. sass的学习

    2024-01-30 10:34:02       39 阅读
  5. 网络爬虫详解

    2024-01-30 10:34:02       35 阅读
  6. WPF Observablecollection Clear 卡顿

    2024-01-30 10:34:02       36 阅读
  7. GraphicsMagick 的 OpenCL 开发记录(二十六)

    2024-01-30 10:34:02       27 阅读
  8. obs-studio 源码学习 obs.h

    2024-01-30 10:34:02       20 阅读
  9. 译文带你理解Python的dataclass装饰器

    2024-01-30 10:34:02       34 阅读
  10. StringJoiner工具demo

    2024-01-30 10:34:02       32 阅读
  11. 如何统一监听Vue组件报错

    2024-01-30 10:34:02       33 阅读
  12. STM32轮询模式串口收发不定长字符串

    2024-01-30 10:34:02       23 阅读
  13. 【笔记】Helm-5 Chart模板指南-4 模板函数和流水线

    2024-01-30 10:34:02       32 阅读