ncu-ui не запускается: не удалось загрузить плагин платформы Qt «xcb» в «», хотя он был найден

я пытаюсь запустить ncu-uiграфический интерфейс профилировщика в системе CentOS 7 Linux (с использованием ncu-ui 2022.1), как в качестве пользователя root, так и в качестве обычного пользователя. Я получаю сообщение об ошибке:

      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, и проблема не исчезла. Что я должен делать?

1 ответ

Вкратце: установить .

Если вы обратите внимание на конец сообщения об ошибке, он говорит:

      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на всякий случай). Это должно сработать. Но - если вы получили другое сообщение об ошибке об отсутствующем файле, вам нужно выяснить, какому пакету он принадлежит.

Другие вопросы по тегам