我试图在ncu-ui 7 Linux系统(使用ncu-ui 2022.1)上运行CentOS分析器GUI,它既是根用户,也是普通用户。我得到了错误:
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库,问题并没有解决。我该怎么办?
发布于 2022-04-28 11:25:15
安装libxkbcommon-x11**.**
如果您注意到错误消息的结尾,它会说:
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.在运行该程序时,您可能会得到以下内容:
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" "$@"他们的重点是:
libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory所以,安装libxkbcommon-x11 (可能还可以安装libxkbcommon以获得良好的效果)。这样就行了。但是-如果您收到一个关于丢失文件的不同错误消息,您需要弄清楚它属于哪个包。
发布于 2022-05-18 09:32:17
在我的例子中,它缺少libxcb。因此,
sudo apt-get install libxcb-xinput-dev解决了这个问题。
https://stackoverflow.com/questions/72042829
复制相似问题