首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ncu-ui无法运行:即使找到了Qt平台插件xcb,也无法加载它。

ncu-ui无法运行:即使找到了Qt平台插件xcb,也无法加载它。
EN

Stack Overflow用户
提问于 2022-04-28 11:25:15
回答 2查看 1.3K关注 0票数 1

我试图在ncu-ui 7 Linux系统(使用ncu-ui 2022.1)上运行CentOS分析器GUI,它既是根用户,也是普通用户。我得到了错误:

代码语言:javascript
复制
qt.qpa.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: xcb.

我已经安装了一堆xcb库,问题并没有解决。我该怎么办?

EN

回答 2

Stack Overflow用户

发布于 2022-04-28 11:25:15

安装libxkbcommon-x11**.**

如果您注意到错误消息的结尾,它会说:

代码语言:javascript
复制
Application could not be initialized!
    This is likely due to missing Qt platform dependencies.
    For a list of dependencies, please refer to https://doc.qt.io/qt-5/linux-requirements.html
    To view missing libraries, set QT_DEBUG_PLUGINS=1 and re-run the application.

在运行该程序时,您可能会得到以下内容:

代码语言:javascript
复制
Warning: OpenGL Version check failed. Falling back to Mesa software rendering.
QFactoryLoader::QFactoryLoader() checking directory path "/opt/nvidia/nsight-compute/2022.1.1/host/linux-desktop-glibc_2_11_3-x64/Plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/opt/nvidia/nsight-compute/2022.1.1/host/linux-desktop-glibc_2_11_3-x64/Plugins/platforms/libqxcb.so"
Found metadata in lib /opt/nvidia/nsight-compute/2022.1.1/host/linux-desktop-glibc_2_11_3-x64/Plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 331520
}


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/opt/nvidia/nsight-compute/2022.1.1/host/linux-desktop-glibc_2_11_3-x64/platforms" ...
Cannot load library /opt/nvidia/nsight-compute/2022.1.1/host/linux-desktop-glibc_2_11_3-x64/Plugins/platforms/libqxcb.so: (libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory)
QLibraryPrivate::loadPlugin failed on "/opt/nvidia/nsight-compute/2022.1.1/host/linux-desktop-glibc_2_11_3-x64/Plugins/platforms/libqxcb.so" : "Cannot load library /opt/nvidia/nsight-compute/2022.1.1/host/linux-desktop-glibc_2_11_3-x64/Plugins/platforms/libqxcb.so: (libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory)"
qt.qpa.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: xcb.

/opt/nvidia/nsight-compute/2022.1.1/host/linux-desktop-glibc_2_11_3-x64/ncu-ui: line 26: 40098 Aborted                 (core dumped) "$NV_AGORA_PATH/CrashReporter" "NVIDIA Nsight Compute" "NVIDIA Nsight Compute" "2022.1.1.0 (build 30914944) (public-release)" "$NV_AGORA_PATH/ncu-ui.bin" "$@"

他们的重点是:

代码语言:javascript
复制
libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory

所以,安装libxkbcommon-x11 (可能还可以安装libxkbcommon以获得良好的效果)。这样就行了。但是-如果您收到一个关于丢失文件的不同错误消息,您需要弄清楚它属于哪个包。

票数 1
EN

Stack Overflow用户

发布于 2022-05-18 09:32:17

在我的例子中,它缺少libxcb。因此,

代码语言:javascript
复制
sudo apt-get install libxcb-xinput-dev

解决了这个问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72042829

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档