Log In  

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!

P#58788 2018-11-05 00:38 ( Edited 2018-11-05 05:38)

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.

P#58833 2018-11-07 01:56 ( Edited 2018-11-07 06:56)

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.

P#58930 2018-11-10 23:18 ( Edited 2018-11-11 04:18)

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?

P#58931 2018-11-11 01:12 ( Edited 2018-11-11 06:12)

So is there any solution to this? I'm having exactly the same issue

P#59680 2018-12-04 19:54

You aren't alone here, I need help with this as well.

P#59709 2018-12-05 10:36

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..

P#91970 2021-05-15 04:17

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 21:57:09 | 0.007s | Q:20