当前位置:   article > 正文

[linux] ubuntu 下安装qtcreate遇到“无法加载Qt平台插件‘xcb’问题”解决方案_from 6.5.0, xcb-cursor0 or libxcb-cursor0 is neede

from 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the qt xcb platf

[linux] ubuntu 下安装qtcreate遇到“无法加载Qt平台插件‘xcb’问题”解决方案

以下是遇到的三种报错情况
From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
Could not load the Qt platform plugin “xcb” in “” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland-egl, xcb, linuxfb, vnc, minimalegl, vkkhrdisplay, offscreen, eglfs, minimal, wayland.
在这里插入图片描述

在这里插入图片描述在这里插入图片描述
在这里插入图片描述

解决方案

终端命令行输入命令先更新,确保自己已经安装下面内容

sudo apt-get update
sudo apt-get install gcc #安装gcc编译器
sudo apt-get install g++ #安装g++编译器
sudo apt-get install make #安装make构建套件
sudo apt-get install libgl1-mesa-dev #安装OpenGL核心库
  • 1
  • 2
  • 3
  • 4
  • 5

需要安装xcb-cursor0 库(最重要的!)

sudo apt-get install libxcb-cursor0
  • 1

重新启动qt

qtcreator
  • 1

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/秋刀鱼在做梦/article/detail/862680
推荐阅读
相关标签
  

闽ICP备14008679号