qt fails to visualise application that is run on ubuntu 20.04 from macos
-
Got keys from plugin meta data ("xcb")
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
I was able to workaround this by adding export DISPLAY=:0.0 and the applications is running but is not visualising -
Hi and welcome to devnet,
Set the QT_DEBUG_PLUGINS environment variable to 1 and start your application again without DISPLAY set. This will show you information about what is happening with the plugin.
-
here is the output:
QFactoryLoader::QFactoryLoader() checking directory path "/opt/gitAhead/GitAhead/Plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/opt/gitAhead/GitAhead/Plugins/platforms/libqxcb.so"
Found metadata in lib /opt/gitAhead/GitAhead/Plugins/platforms/libqxcb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"xcb"
]
},
"archreq": 0,
"className": "QXcbIntegrationPlugin",
"debug": false,
"version": 330752
}Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/opt/gitAhead/GitAhead/platforms" ...
loaded library "/opt/gitAhead/GitAhead/Plugins/platforms/libqxcb.so"
qt.qpa.xcb: could not connect to display
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.
-
Do you have an X server running ?
Are you on Wayland ? -
@SGaist said in qt fails to visualise application that is run on ubuntu 20.04 from macos:
Wayland
I am using tty
I have no problems with ssh X for ubuntu to ubuntu -
Sorry, I missed the macOS part.
Did you install Xquartz on your Mac ?
-
@SGaist
when I run it with XQuartz I get:
error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast -
Did you restart your machine after installing Xquartz ?
-
I fixed it, there were some issued with the Debian packages and now it works fine. I have to install them again
-
Which one did you need to reinstall ?