当前位置: 代码网 > 服务器>服务器>Linux > [linux] ubuntu 下安装qtcreate遇到“无法加载Qt平台插件‘xcb’问题”解决方案

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

2024年07月28日 Linux 我要评论
以下是遇到的三种报错情况。

[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核心库

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

sudo apt-get install libxcb-cursor0

重新启动qt

qtcreator

在这里插入图片描述

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2025  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com