[英]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.