Elk Audio RPi4 image with X11

Hey,

I have a RPi4 and a 5" touchscreen connected by HDMI. I would like to compile and run a JUCE GUI app to be displayed on the screen. With the current Elk Linux distribution, it’s my understanding that it would require X11 to run the JUCE app. However, it’s not part of the meta-elk yocto layer.

Is my understanding of the requirements correct? If so, would it be possible to ship another elk-audio-os RPi4 binary that contains X11 instead of the Qt layers?

Thanks

Bumping this topic, I was hoping to do something similar with a HDMI connected screen for a multi-fx guitar pedal.

We tried modifying the yocto config a couple of times to get Qt into an image. We only really wanted a quick way to get to gles 2.

For a number of reasons we gave up. Partly a lack of experience with yocto. But also the unreliability of building a full image because of failures pulling dependencies sometimes and finally when we got an image which built correctly with the components we understood we needed it didn’t actually seem to have everything it needed to work.

Our current solution (which we are actually happier with as it gives us less bloat and direct access to gles2) is to build the mesa libs on the Pi and then manually copy them into place in the existing image : Mesa / mesa · GitLab
You will need to configure some things in the meson_options.txt file for the pi and fetch the dependencies it needs - but that is a fairly intuitive process even if you just use trial and error : meson_options.txt · main · Mesa / mesa · GitLab

Once you have those libraries you can test they work with this demo project : Mesa / kmscube · GitLab

If you just want rudimentary stuff on a screen another slightly more esoteric route is outlined in this guys experiments (but this is CPU heavy, rather than “free” GPU rendering) : Raspberry Compote: Low-level Graphics on Raspberry Pi (part one)