简体   繁体   English

qt.qpa.plugin:无法在“”中加载 Qt 平台插件“xcb”,即使已找到。 Pop-Os 21.10 侏儒 V40.4.0

[英]qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. Pop-Os 21.10 Gnome V40.4.0

There seems to be a lot of similar questions to this.似乎有很多类似的问题。 I looked at 5 of them on StackOverflow and a few elsewhere (eg https://discuss.pixls.us/t/solved-could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found/17677 ) but none of the solutions worked.我在 StackOverflow 和其他一些地方查看了其中的 5 个(例如https://discuss.pixls.us/t/solved-could-not-load-the-qt-platform-plugin-xcb-in-even-though- it-was-found/17677 )但没有一个解决方案有效。 Everything is installed.一切都安装好了。 Everything is up-to-date.一切都是最新的。 Below is the output.下面是 output。 Any and all help would be appreciated任何和所有的帮助将不胜感激

QFactoryLoader::QFactoryLoader() checking directory path "/home/my_user_name/anaconda3/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/home/my_user_name/anaconda3/plugins/platforms/libqeglfs.so"
Found metadata in lib /home/my_user_name/anaconda3/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 329991
}


Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/home/my_user_name/anaconda3/plugins/platforms/libqminimal.so"
Found metadata in lib /home/my_user_name/anaconda3/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 329991
}


Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/home/my_user_name/anaconda3/plugins/platforms/libqminimalegl.so"
Found metadata in lib /home/my_user_name/anaconda3/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 329991
}


Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/home/my_user_name/anaconda3/plugins/platforms/libqoffscreen.so"
Found metadata in lib /home/my_user_name/anaconda3/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 329991
}


Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/home/my_user_name/anaconda3/plugins/platforms/libqvnc.so"
Found metadata in lib /home/my_user_name/anaconda3/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 329991
}


Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/home/my_user_name/anaconda3/plugins/platforms/libqxcb.so"
Found metadata in lib /home/my_user_name/anaconda3/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 329991
}


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/my_user_name/anaconda3/bin/platforms" ...
Cannot load library /home/my_user_name/anaconda3/plugins/platforms/libqxcb.so: (/home/my_user_name/anaconda3/plugins/platforms/../../lib/libQt5XcbQpa.so.5: undefined symbol: _ZN11QFontEngine14bitmapForGlyphEj6QFixedRK10QTransform, version Qt_5_PRIVATE_API)
QLibraryPrivate::loadPlugin failed on "/home/my_user_name/anaconda3/plugins/platforms/libqxcb.so" : "Cannot load library /home/my_user_name/anaconda3/plugins/platforms/libqxcb.so: (/home/my_user_name/anaconda3/plugins/platforms/../../lib/libQt5XcbQpa.so.5: undefined symbol: _ZN11QFontEngine14bitmapForGlyphEj6QFixedRK10QTransform, version Qt_5_PRIVATE_API)"
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: eglfs, minimal, minimalegl, offscreen, vnc, xcb.

[1]    9588 IOT instruction (core dumped)  streamdeck

Not sure about this specific software, but often the reason is an incompatible Qt version, like a Qt 6 application tries to load a library that needs Qt 5, or vice-versa, or the two Qt versions were configured differently. Not sure about this specific software, but often the reason is an incompatible Qt version, like a Qt 6 application tries to load a library that needs Qt 5, or vice-versa, or the two Qt versions were configured differently.

Try to do the following whithin in a shell:尝试在 shell 中执行以下操作:

export LD_LIBRARY_PATH=/home/<your_user_name>/anaconda3/lib:${LD_LIBRARY_PATH}

This prepends the location used to lookup shared libraries by your Anconda installation.这会预先设置您的 Anconda 安装用于查找共享库的位置。

Start your application within the same shell.在同一个 shell 中启动您的应用程序。

I faced a similar problem and resolved it by installing the below module:我遇到了类似的问题并通过安装以下模块解决了它:

sudo apt-get install libxcb-xinerama0 sudo apt-get install libxcb-xinerama0

I solved this by doing sudo apt install qt6-base-dev我通过执行sudo apt install qt6-base-dev解决了这个问题

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 QT6:“qt.qpa.plugin:即使找到了 Qt 平台插件”xcb“也无法加载”。 - QT6: "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found." qt.qpa.plugin:即使找到了,也无法在“”中加载 Qt 平台插件“xcb” - qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found qt.qpa.plugin:即使找到了 Qt 平台插件“windows”也无法在“”中加载 - qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found qt.qpa.plugin:即使找到了 Qt 平台插件“wayland”也无法在“”中加载 - qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found Docker error for GUI app: qt.qpa.xcb: could not connect to display, qt.qpa.plugin: Could not load the Qt platform plugin "xcb" "" even though - Docker error for GUI app: qt.qpa.xcb: could not connect to display, qt.qpa.plugin: Could not load the Qt platform plugin "xcb" "" even though Raspberry Pi Qt 应用程序不会在启动时运行:qt.qpa.plugin 无法加载 qt 平台插件 xcb,即使它被发现 - Raspberry Pi Qt app won't run on boot: qt.qpa.plugin could not load the qt platform plugin xcb in even though it was found qt.qpa.plugin: Could not load the Qt platform plugin "xcb", no Qt platform can be initialized, but "Available platform plugins are: xcb, eglfs ......" - qt.qpa.plugin: Could not load the Qt platform plugin "xcb", no Qt platform can be initialised, but "Available platform plugins are: xcb, eglfs......" opencv:无法在“”中加载 Qt 平台插件“xcb”,即使它已找到 - opencv: Could not load the Qt platform plugin "xcb" in "" even though it was found 无法在“”中加载 Qt 平台插件“xcb”,即使已找到 - Could not load the Qt platform plugin "xcb" in "" even though it was found 如何修复“即使找到了,也无法在“”中加载 Qt 平台插件“xcb”。 在 fixup_bundle 宏之后? - How to fix 'Could not load the Qt platform plugin "xcb" in "" even though it was found.' after fixup_bundle macro?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM