RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    SDL Initializing errors on RPi3

    Scheduled Pinned Locked Moved Help and Support
    35 Posts 3 Posters 11.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BuZzB
      BuZz administrators @OkTekk
      last edited by BuZz

      @OkTekk you compiled your own SDL2? Are you not actually using retropie then ?

      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

      1 Reply Last reply Reply Quote 0
      • O
        OkTekk
        last edited by OkTekk

        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 all

        edit: btw, Kodi don't launch neither, due to the same sdl issue i guess..?

        1 Reply Last reply Reply Quote 0
        • BuZzB
          BuZz administrators
          last edited by

          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 ?

          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

          1 Reply Last reply Reply Quote 0
          • O
            OkTekk
            last edited by OkTekk

            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 :/

            1 Reply Last reply Reply Quote 0
            • BuZzB
              BuZz administrators
              last edited by

              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

              To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

              1 Reply Last reply Reply Quote 0
              • O
                OkTekk
                last edited by

                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 ?

                1 Reply Last reply Reply Quote 0
                • BuZzB
                  BuZz administrators
                  last edited by BuZz

                  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

                  To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                  1 Reply Last reply Reply Quote 0
                  • O
                    OkTekk
                    last edited by

                    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 ?

                    1 Reply Last reply Reply Quote 0
                    • BuZzB
                      BuZz administrators
                      last edited by

                      Yes, looks like you downgraded firmware/kernel correctly.

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                      1 Reply Last reply Reply Quote 0
                      • O
                        OkTekk
                        last edited by

                        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.

                        BuZzB 1 Reply Last reply Reply Quote 0
                        • BuZzB
                          BuZz administrators @OkTekk
                          last edited by

                          @OkTekk did you remove any Sdl2 you built?

                          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                          1 Reply Last reply Reply Quote 0
                          • O
                            OkTekk
                            last edited by

                            yes i did, like you said earlier

                            BuZzB 1 Reply Last reply Reply Quote 0
                            • BuZzB
                              BuZz administrators @OkTekk
                              last edited by BuZz

                              @OkTekk Did you remove your own compile of emulationstation (if it's in /usr/local/bin). In case that's the problem

                              To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                              1 Reply Last reply Reply Quote 0
                              • O
                                OkTekk
                                last edited by

                                that too, as well

                                1 Reply Last reply Reply Quote 0
                                • BuZzB
                                  BuZz administrators
                                  last edited by

                                  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

                                  To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                                  1 Reply Last reply Reply Quote 0
                                  • O
                                    OkTekk
                                    last edited by

                                    Ok i stay tuned. Today is a peaceful day~

                                    BuZzB 1 Reply Last reply Reply Quote 0
                                    • BuZzB
                                      BuZz administrators @OkTekk
                                      last edited by BuZz

                                      @OkTekk

                                      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
                                      

                                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                                      1 Reply Last reply Reply Quote 0
                                      • O
                                        OkTekk
                                        last edited by OkTekk

                                        @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
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • BuZzB
                                          BuZz administrators
                                          last edited by BuZz

                                          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

                                          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                                          1 Reply Last reply Reply Quote 0
                                          • BuZzB
                                            BuZz administrators
                                            last edited by BuZz

                                            You might want to remove your locally installed libDL2_image also (and just use the system packaged one).

                                            I suspect this is an issue relating to the new firmware and the GLES libs as this is how it looks on mine

                                            $ sudo find / -name "libGL*"
                                            /opt/vc/lib/libGLESv2_static.a
                                            /opt/vc/lib/libGLESv2.so
                                            /opt/vc/lib/libGLESv1_CM.so
                                            /usr/lib/arm-linux-gnueabihf/libGL.so.1.2.0
                                            /usr/lib/arm-linux-gnueabihf/libGLU.so.1
                                            /usr/lib/arm-linux-gnueabihf/libGL.so.1
                                            /usr/lib/arm-linux-gnueabihf/libGLEW.so.1.10
                                            /usr/lib/arm-linux-gnueabihf/libGLEW.so.1.10.0
                                            /usr/lib/arm-linux-gnueabihf/libGL.so
                                            /usr/lib/arm-linux-gnueabihf/libGLU.so.1.3.1
                                            /usr/lib/arm-linux-gnueabihf/libGLU.a
                                            /usr/lib/arm-linux-gnueabihf/libGLU.so
                                            

                                            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            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.