I’ve been trying my hand at getting OpenGL ES 2 graphics working using my RPI4 but have been running into some strange errors:
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QOpenGLWidget: Failed to create context
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QOpenGLWidget: Failed to create context
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
The snap is working on amd64/i386 but I just can’t figure out what is missing to get it working on the RPI4 with the VC4 driver. Any help would be appreciated!
Source:
Uploaded for RPI4 to store on beta channel:
sudo snap install --beta mmapper
Thanks a bunch for that core18 image, Oliver. It works on my side. Can you tell me if this snap will upgrade automatically once the official 20.04 release is available?
nope, sadly not, this image uses a differently named kernel snap that does not come from the store, once there are official core images you will have to re-flash to get the correct names in the model assertion of the image and to get kernel/gadget updates from the store.
with the ubuntu 19.10 kernel now fully supporting the pi4 (and thanks to the holidays ), i invested a little time to switch the kernel snap of my core18 image over to it (the snap is still called “linux-raspberrypi-org” so there wont be any upgrade path to the official image, but it is now at least built from the same source the official kernel will use later)
note that there is no way to upgrade to that new image, you need to completely re-flash your SD card if you were using the older one (once using this image you will be able to “snap install --dangerous linux-raspberrypi-org_*_armhf.snap” later in case i provide an updated kernel snap though)
the snaps it was built from are in the snaps/ subdir, the old image is still available under old/ for people that want to use the actual raspberrypi.org kernel.
I’m testing the latest image for raspberry pi 4 (2Gb) but after the Ubuntu Core init config process where i config static IPv4 settings … all works for a couple of minutes after an automatic reboot … after that i get this view and i can’t do any other moves …
Hello,
I’m trying to build kernel for PI4 using official repo ( eoan ).
This repo has snapcraft.yml so I’m using it to build it.
However if I try to build kernel for arm64 target I get build error -
make: *** No rule to make target ‘zImage’. Stop
What is correct config to build arm64 kernel for pi4?
No other errors seen.
If I set target as armhf build succeeds.
If I remove kernel-image-target: zImage from snapcraft.yml build also succeeds.
However, then when I build ubuntu image, boot fails in u-boot with following error Bad Linux ARM64 Image magic!
I managed to find a solution to the following runtime error:
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
You need to set the following environmental variable for the snap to be able to find the EGL drivers:
__EGL_VENDOR_LIBRARY_DIRS: $SNAP/usr/share/glvnd/egl_vendor.d
I’m not sure why desktop-helpers isn’t doing this by default.