I actually believed you and had not planned on testing this, but I
accidentally hit this code path and confirmed the X11 backend won’t
work.
I was trying to build Qt on Pi for a different task. Two attempted 14
hour build times and a forced SD card upgrade later, I discovered that
Qt Quick won’t work because it uses OpenGL to render everything now
and it can’t intermix non-fullscreen widgets or something and
basically calls exit(). (If I needed fullscreen stuff, I would just
use SDL, and that only takes under 5 minutes to build and won’t eat up
my entire SD card.)
Any way, to build Qt, I had to install multiple dozens of
dependencies. So next time I built SDL, it’s configure script picked
up these things and I believe it built the X11 backend.
When I ran SDL, I would briefly see some windows get created and
immediately close. Then I would see errors on my console that a
renderer could not be created. It did not fallback to the direct
fullscreen display one for some reason.
Anyway, I recommend two things be added to the instructions:
First, there is no mention of building SDL on the Pi itself, just
cross-compiling instructions.
It is actually pretty easy, just run ./configure (with switches) and make.
On a default installation, things will work.
But if you installed extra crap like I did to build some other library
like Qt (I hate doing that because it is hard to know what to
uninstall later), then it is required to force disable X11. (I think
xcb is the relevant component that triggered this.) So I think the
instructions should look like:
./configure --disable-pulseaudio --disable-esd --disable-video-x11
I’m actually using the following, due to remnants from David Gow’s
Linux build guide I based things from. But I think the remaining
switches are unnecessary.
./configure --disable-pulseaudio --disable-esd --disable-video-x11
–disable-rpath --enable-sdl-dlopen
Thanks,
EricOn 6/18/15, Alex Szpakowski wrote:
From what I?ve heard, Minecraft on the Pi does some hacky stuff (using the
videocore API combined with X11 in some manner) in order to get
hardware-accelerated GLES while still being in a window. I don?t think just
using SDL?s X11/GLX backend out of the box on the RPi will be a good idea if
people expect hardware accelerated GLES ? but I could be wrong.