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.
Thanks!
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.
I probably won't be able to help further, but just out of curiosity, are you changing the driver with the SDL_VIDEODRIVER environment variable, or something else? Is the SDL_VIDEO_GL_DRIVER environment variable set correctly?
So is there any solution to this? I'm having exactly the same issue
Anyone ever figure out a solution for this? I tried following the directions on the website linked above but end up with SDL version 2.0.15 instead of 2.0.8..
[Please log in to post a comment]