Strange issue with QXcbIntegration: Cannot create platform OpenGL context, neither GLX or EGL are enabled
-
Hi,
Thanks for posting.
Yes, X server is running.
What is the best way to check if the current user has access to xorg? and how do you add the user?FYI I only have one user on the Pi as per out of box when installing raspbarian.
-
If you can log into your RPi locally with the graphical user interface working it should already be a good sign.
-
Thanks. Yes, its all generally Good in terms of the display when logged in as pi user. As described, the issue only manifests when the application is launched locally from the pi user profile. Starting the application remotely or within Qt Creator is all Good. For now I have created a launch application script elevated with sudo and the application runs fine.
-
Can you run GLXGears ?
-
Hi, Yes it glxgears works fine - low frame rate, but that's to be expected on a PiZero.
-
Without sudo ?
-
Yes, sorry
-
@andy0206 said in Strange issue with QXcbIntegration: Cannot create platform OpenGL context, neither GLX or EGL are enabled:
EGL on X11
I wonder if your issue related to that.
Does running your application with sudo use X or the frame buffer directly ?
-
Hi,
I’m not entirely sure how to check for that. The application is not doing anything special, just a QML app with some custom styled controls which has transparency. I am using QtCamera in the application though.
-
You would need a build with EGL on X11 enabled.
12/13