I'm trying to run Pico-8 on a Raspberry Pi 3 B+ with default Raspbian and OpenGL(Full KMS) driver, but keep getting the error
** FATAL ERROR: Unable to initialize SDL
If use raspi-config and revert back to Legacy (non-GL) driver, then Pico8 runs properly.
I tried compiling my SDL2 manually using these instructions, but same thing: I keep getting the error to initialize SDL when running under accelerated OpenGL driver, and the only solution is to revert to Legacy driver, and reboot.
Any idea on how to solve it? I'm running other programs that require the OpenGL driver, and changing manually + reboot every time I want to run Pico8 is a big pain.
Remember to run the pico8_dyn binary and not the pico8 binary if you want it to use a custom build of SDL. The pico8 build is statically linked, so it uses its own SDL. pico8_dyn is dynamically linked, so it will use the version of SDL you have installed. To use the pico8_dyn binary you'll also need the wiringPi library. It's easy to get and build for Raspian.
I haven't tried the OpenGL driver myself, but hopefully that gets you closer. Do report back if you figure it out.
Thanks! But unfortunately pico8_dyn doesn't solve anything. It still gives the exact same error message.
SDL2 is properly installed, and just changing the driver to Legacy (non-GL) fixes the problem. But then I can't run other programs that require OpenGL accelerated driver.
[Please log in to post a comment]