Discussion:
[Qt-creator] "Could not initialise GLX"
René J.V. Bertin
2018-01-06 09:59:29 UTC
Permalink
Hi,

What does Creator need GLX for and is there a way to disable the feature(s) in question? I'm getting a GLX error when I try to use Creator on a remote X display and don't get any further than that failure message.

Thanks,
R.
Christian Gagneraud
2018-01-06 11:39:14 UTC
Permalink
Post by René J.V. Bertin
Hi,
What does Creator need GLX for and is there a way to disable the feature(s) in question?
I'm getting a GLX error when I try to use Creator on a remote X display and don't get any further than that failure message.
I got that as well on a VM and/or on a remote docker container, AFAIR
this was not fatal.
Maybe you need to install mesa?

Chris
René J.V. Bertin
2018-01-06 13:06:47 UTC
Permalink
Post by Christian Gagneraud
I got that as well on a VM and/or on a remote docker container, AFAIR
this was not fatal.
Maybe you need to install mesa?
I do have mesa installed, but it's probably not being used for some reason (even on Linux I get a message that swrast fails to load but Creator still runs despite that).

Most other Qt5/KF5 applications run just fine (or have an option not to load plugins that require GLX), I wonder what Creator needs it for?

R.
René J.V. Bertin
2018-01-06 13:14:50 UTC
Permalink
Post by René J.V. Bertin
I wonder what Creator needs it for?
Belay that - QtWebEngine strikes again... see commit #e2d142c7 that added `SharedTools::QtSingleApplication::setAttribute(Qt::AA_ShareOpenGLContexts);` to main.cpp, all because QWE is used to display QtHelp documentation ...

R.
René J. V. Bertin
2018-01-06 22:04:25 UTC
Permalink
Post by Christian Gagneraud
Maybe you need to install mesa?
Hah, got it.

- install mesa, taking care to build/include egl support and at least the swrast
gallium driver

- start Qt applications with QT_XCB_GL_INTEGRATION=xcb_egl

No more complaints about swrast not loading or GLX not being initialised.

Thanks for pointing me in the right direction! :)
Konstantin Tokarev
2018-01-07 10:55:06 UTC
Permalink
Post by René J.V. Bertin
Hi,
What does Creator need GLX for and is there a way to disable the feature(s) in question? I'm getting a GLX error when I try to use Creator on a remote X display and don't get any further than that failure message.
Please update Qt Creator. Old versions used QML for Welcome screen, this is fixed now.
Otherwise you can just disable Welcome plugin by running with "-noload welcome"
Post by René J.V. Bertin
Thanks,
R.
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Regards,
Konstantin
René J.V. Bertin
2018-01-07 12:04:13 UTC
Permalink
Post by Konstantin Tokarev
Please update Qt Creator. Old versions used QML for Welcome screen, this is fixed now.
Otherwise you can just disable Welcome plugin by running with "-noload welcome"
No, as I posted earlier, this results from Creator requesting shared OpenGL contexts, which in turn and if I remember correctly is required for using QWE as a plugin or from a background thread.

I already skip the Welcome plugin when I launch Creator remotely.

R.

Loading...