SDL Initializing errors on RPi3
-
Like the title says..
I'm using a RPi3 not overclocked, when trying to execute ES i got a "pretty"lvl0: Error creating SDL window!
lvl0: Renderer failed to initialize!
lvl0: Window failed to initialize!but w/out the second line, "Could not initialize OpenGL / GLES library".
Even after trying to downgrade the firmware like sayed there, to install from sources SDL2, ES, and RetroArch it still don't work.
I buyed this Pi3 solely for retro gaming purpose and to save my Pi2 for prototyping & dev.. so this is a bit frustrating hahah.
Any ideas to save me ? ^^ -
@OkTekk you compiled your own SDL2? Are you not actually using retropie then ?
-
sorry i didn't gave all informations.
I use Retropie manual installed on top of a raspbian jessie.
1st i've done the quick install, then added some extras and tried to launch ES with it's own packages of sdl2.
Afterward i tried to compile them myself but it didn't change the outcome at alledit: btw, Kodi don't launch neither, due to the same sdl issue i guess..?
-
Sounds like you haven't correctly downgraded the firmware/kernel.
rpi-update shouldn't generally be used to "upgrade" firmware - instead it's better to wait until they get packaged properly (after testing).
What is the output of
uname -a
? -
i tried 1st the sudo rpi-update a16f22120d7979dc91e8d2e03fecb611fb0259e0 reported in this forum and in the hexxeh github
but now returned to the last one (done it today) it is
Linux RPi3Station 4.4.14-v7+ #896 SMP Sat Jul 2 15:09:43 BST 2016 armv7l GNU/Linux
..but on all my Pi2's i do the same and have no problems with ES :/ -
That kernel is newer than the last packaged one, so I think the downgrade failed. Did you get any errors ?
Might be useful to paste the log output
-
It is because i returned back to the latest after seeing it didn't change anything.
Rolled back again to this commit --> Linux RPi3Station 4.4.13-v7+ #893 SMP Wed Jun 8 14:39:18 BST 2016 armv7l GNU/Linux
But still not working and.. which log are you talking about ? -
The rpi-update log I meant as I thought it hadn't downgraded from your kernel version.
It could be that your compile of SDL2 is broken (Needs specific configure parameters to work on the RPI framebuffer) - re-install/update retropie perhaps (which will put our known working SDL2 libraries back on)
Make sure your SDL2 is removed first also if installed to
/usr/local
-
work in progress for the reinstall but as for my kernel version..i did gone from 4.4.14#896 to 4.4.13#893. wasn't it the point ?
-
Yes, looks like you downgraded firmware/kernel correctly.
-
Ok then...complete whipe of retropie, fresh install, full upgrade, reboot then...
pi@RPi3Station:~ $ emulationstation
lvl0: Error initializing SDL!lvl0: Renderer failed to initialize!
lvl0: Window failed to initialize!
pi@RPi3Station:~ $HERE the last retropie log.
-
@OkTekk did you remove any Sdl2 you built?
-
yes i did, like you said earlier
-
@OkTekk Did you remove your own compile of emulationstation (if it's in /usr/local/bin). In case that's the problem
-
that too, as well
-
I'm not at home currently. Will give you some lines to type to verify a few things later. Eg. To check gles libs etc
-
Ok i stay tuned. Today is a peaceful day~
-
Sorry for the delay.
What is the output of these to confirm locations/versions
sudo find / -name "libSDL2*.so" sudo find / -name "libGL*" which emulationstation apt-cache showpkg libsdl2-dev md5sum /usr/lib/arm-linux-gnueabihf/libSDL2.so
-
@BuZz don't mind, my son gave me a shitty night i wouldn't have been able to answer before.
Here we go:pi@RPi3Station:~ $ sudo find / -name "libSDL2*.so" /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so /usr/lib/arm-linux-gnueabihf/libSDL2.so /usr/local/lib/libSDL2_image.so
pi@RPi3Station:~ $ sudo find / -name "libGL*" /opt/vc/lib/libGLESv2.so /opt/vc/lib/libGLESv2_static.a /opt/vc/lib/libGLESv1_CM.so /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so.1 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 /usr/lib/arm-linux-gnueabihf/libGLEW.so.1.10 /usr/lib/arm-linux-gnueabihf/libGL.so.1 /usr/lib/arm-linux-gnueabihf/libGLU.so.1 /usr/lib/arm-linux-gnueabihf/libGL.so /usr/lib/arm-linux-gnueabihf/libGLEW.so.1.10.0 /usr/lib/arm-linux-gnueabihf/libGLU.so /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so.1.1.0 /usr/lib/arm-linux-gnueabihf/libGL.so.1.2.0 /usr/lib/arm-linux-gnueabihf/libGLU.so.1.3.1 /usr/lib/arm-linux-gnueabihf/libGLU.a /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0
pi@RPi3Station:~ $ which emulationstation /usr/bin/emulationstation
pi@RPi3Station:~ $ apt-cache showpkg libsdl2-dev Package: libsdl2-dev Versions: 2.0.4+4rpi (/var/lib/dpkg/status) Description Language: File: /var/lib/dpkg/status MD5: 7085696df1cfaa119cbfcae5fa57d437 2.0.2+dfsg1-6 (/var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_jessie_main_binary-armhf_Packages) Description Language: File: /var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_jessie_main_binary-armhf_Packages MD5: 9a82f59c5790721baad7ffc5f181d3d6 Reverse Depends: libsdl2-ttf-dev,libsdl2-dev 2.0.0 libsdl2-net-dev,libsdl2-dev 2.0.0 libsdl2-mixer-dev,libsdl2-dev 2.0.0 libsdl2-image-dev,libsdl2-dev 2.0.0 libsdl2-gfx-dev,libsdl2-dev games-c++-dev,libsdl2-dev Dependencies: 2.0.4+4rpi - libsdl2-2.0-0 (5 2.0.4+4rpi) libc6-dev (0 (null)) libx11-dev (0 (null)) libsdl-1.3-dev (0 (null)) libsdl-1.3-dev (0 (null)) 2.0.2+dfsg1-6 - libsdl2-2.0-0 (5 2.0.2+dfsg1-6) libasound2-dev (0 (null)) libdbus-1-dev (0 (null)) libegl1-mesa-dev (0 (null)) libgl1-mesa-dev (0 (null)) libgles2-mesa-dev (0 (null)) libglu1-mesa-dev (0 (null)) libpulse-dev (0 (null)) libudev-dev (0 (null)) libwayland-dev (0 (null)) libx11-dev (0 (null)) libxcursor-dev (0 (null)) libxext-dev (0 (null)) libxi-dev (0 (null)) libxinerama-dev (0 (null)) libxkbcommon-dev (0 (null)) libxrandr-dev (0 (null)) libxss-dev (0 (null)) libxt-dev (0 (null)) libxv-dev (0 (null)) libxxf86vm-dev (0 (null)) libsdl-1.3-dev (0 (null)) libsdl-1.3-dev (0 (null)) Provides: 2.0.4+4rpi - 2.0.2+dfsg1-6 - Reverse Provides:
pi@RPi3Station:~ $ md5sum /usr/lib/arm-linux-gnueabihf/libSDL2.so 2e199a2a94f5d55ba3472a069eac9187 /usr/lib/arm-linux-gnueabihf/libSDL2.so
-
I'm afraid I am not sure what the problem is.
you can try reinstalling the stable firmware/kernel by doing
sudo apt-get install --reinstall raspberrypi-bootloader raspberrypi-kernel libraspberrypi-bin
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.