ubuntu安装qtcreator无法打开问题解决
一.安装过程
1.阿里源下载在线安装工具qt-unified-linux-x64-4.6.0-online.run
2../qt-unified-linux-x64-4.6.0-online.run
运行,根据提示完成安装
3.默认安装路径为/home/user/Qt
4.ubuntu图形界面点击打开qtcreator无反应
二.问题解决
图形界面打开无反应,我们打开shell,进入qtcreator安装目录/home/user/Qt/Tools/QtCreator/bin使用命令行打开
./qtcreator
提示qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found.
这个可能因为缺少某个xcb依赖库。
我们去检查一下
ldd /home/kunming/Qt/6.6.1/gcc_64/plugins/platforms/libqxcb.so
结果发现
libxcb-cursor.so.0 => not found
根据结果,安装对应包sudo apt install libxcb-cursor0
。
安装完成,qt creator 成功启动!