• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

[SOLVED] RPi4 SDL2 problem during installation, meanwhile its available via apt-get

Scheduled Pinned Locked Moved Help and Support
rpi4sdl2
15 Posts 11 Posters 8.1k 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.
  • Y
    Yehor
    last edited by Yehor 11 Sept 2019, 04:22 9 Nov 2019, 01:39

    DISCLAIMER: Yes, I've read that RetroPie for RPi4 is still WIP. I'm just experimenting.

    Problem
    Hello everybody, I'm trying to install RetroPie on RPi4 in manual mode where it results in error message Unable to install binary for sdl2.

    What I noticed (and it is weird) based on this part of log:

    Installing dependencies for 'retroarch' : RetroArch - frontend to the libretro emulator cores - required by all lr-* emulators
    = = = = = = = = = = = = = = = = = = = = =
    
    Did not find needed package(s): libsdl2-dev. I am trying to install them now.
    
    = = = = = = = = = = = = = = = = = = = = =
    Installing 'sdl2' : SDL (Simple DirectMedia Layer) v2.x
    = = = = = = = = = = = = = = = = = = = = =
    
    --2019-11-09 01:24:01--  https://files.retropie.org.uk/binaries/buster/rpi4/kms/libsdl2-dev_2.0.10+1rpi_armhf.deb
    Resolving files.retropie.org.uk (files.retropie.org.uk)... 93.93.129.253, 2a00:1098:0:80:1000:57:0:1
    Connecting to files.retropie.org.uk (files.retropie.org.uk)|93.93.129.253|:443... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2019-11-09 01:24:02 ERROR 404: Not Found.
    
    --2019-11-09 01:24:02--  https://files.retropie.org.uk/binaries/buster/rpi4/kms/libsdl2-2.0-0_2.0.10+1rpi_armhf.deb
    Resolving files.retropie.org.uk (files.retropie.org.uk)... 93.93.129.253, 2a00:1098:0:80:1000:57:0:1
    Connecting to files.retropie.org.uk (files.retropie.org.uk)|93.93.129.253|:443... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2019-11-09 01:24:02 ERROR 404: Not Found.
    
    dpkg: error: cannot access archive 'libsdl2-2.0-0_2.0.10+1rpi_armhf.deb': No such file or directory
    Reading package lists...
    Building dependency tree...
    Reading state information...
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    rm: cannot remove './*.deb': No such file or directory
    Unable to install binary for sdl2
    Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
    Hit:2 http://archive.raspberrypi.org/debian buster InRelease
    Reading package lists...
    Reading package lists...
    Building dependency tree...
    Reading state information...
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Successfully installed package(s): .
    

    it tries to install package libsdl2-dev and to download it from RetroPie servers, meanwhile, it seems to be available and installable via sudo apt-get install libsdl2-dev -y:

    pi@raspberrypi:~/RetroPie-Setup $ sudo apt-get install libsdl2-dev
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libsdl2-dev is already the newest version (2.0.9+dfsg1-1+rpt1).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    

    Question
    Is there a way to force the installer to use the installed version of libsdl2-dev rather than getting it from RetroPie servers?

    Thank you!

    Used parts:

    • RPi 4 [4gb]
    • SanDisk MicroSD 64 GB
    • 3A USB charger [Moto G charger]

    Used Software:

    • Etcher [to flash image]
    • freshest Raspbian Lite
    • Kitty [to access via ssh]
    • RetroPie Setup Version 4.5.2

    Preparations before installation:

    • download and flash freshest Raspbian Lite
    • resize card (automatic action at the first run + reboot)
    • connect to wi-fi, split memory (dedicate 256 MB to video), enable ssh, et the locale to en_US.UTF-8 via sudo raspi-config
    • update everything :sudo apt-get update -y && sudo apt-get upgrade -y && reboot
    • preinstall some stuff : sudo apt-get install git lsb-release

    Installation based on ;

    • https://github.com/RetroPie/RetroPie-Setup/wiki/Manual-Installation
    • https://retropie.org.uk/forum/topic/10260/unknown-platform-error
    • https://retropie.org.uk/forum/topic/23311/raspberry-pi-4-questions/12 )

    Installation:

    git clone --branch fkms_rpi4 https://github.com/RetroPie/RetroPie-Setup.git
    cd ./RetroPie-Setup
    chmod +x ./retropie_setup.sh
    sudo ./retropie_setup.sh
    

    Here I select Basic install. Results are descripbed above.

    Y 1 Reply Last reply 9 Nov 2019, 04:22 Reply Quote 0
    • Y
      Yehor @Yehor
      last edited by 9 Nov 2019, 04:22

      @Yehor
      found a solution to install RetroPie without problems. Working as for 2019-Nov-08:

      sudo apt-get update -y && sudo apt-get upgrade -y && sudo reboot
      sudo apt-get install git
      
      git clone --single-branch --branch fkms_rpi4 --depth=1 https://github.com/RetroPie/RetroPie-Setup.git
      cd ./RetroPie-Setup
      git fetch && git checkout fkms_rpi4
      
      sudo ./retropie_packages.sh 833 depends
      sudo ./retropie_packages.sh 833 sources
      sudo ./retropie_packages.sh 833 build
      cd ./tmp/build/sdl2/
      sudo dpkg -i libsdl2-2.0-0_2.0.10*.deb
      
      cd ../../..
      sudo ./retropie_setup.sh
      # go to basic install
      #setup autoboot to emulation station 
      
      S P 2 Replies Last reply 11 Nov 2019, 16:01 Reply Quote 1
      • B
        BuZz administrators
        last edited by 9 Nov 2019, 06:07

        This is due to me enabling binaries, but I need to fix a path issue for sdl2. Will sort it now. You can also just call this as a workaround

        sudo ./retropie_packages.sh sdl2

        To do a source install.

        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
        • B
          BuZz administrators
          last edited by 9 Nov 2019, 06:09

          Should work now btw. Moved the files manually - will fix the code also and test for next time I build sdl2 bins.

          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

          J 1 Reply Last reply 11 Nov 2019, 22:57 Reply Quote 0
          • S
            Soldier1107 @Yehor
            last edited by 11 Nov 2019, 16:01

            @Yehor Thank you so much for this. It worked perfectly for me as well.

            1 Reply Last reply Reply Quote 0
            • J
              jimmyjudd @BuZz
              last edited by 11 Nov 2019, 22:57

              @BuZz I just tried to install yesterday and the day before getting the same error each time. Any updates?

              P 1 Reply Last reply 11 Nov 2019, 23:37 Reply Quote 0
              • P
                psyke83 Global Moderator @jimmyjudd
                last edited by psyke83 11 Nov 2019, 23:38 11 Nov 2019, 23:37

                @jimmyjudd

                Binaries were disabled due to an issue with SDL2 being installed via binary not pulling in the require dependencies. It will be fixed after this PR is merged: https://github.com/RetroPie/RetroPie-Setup/pull/2898

                Until the PR is merged and binaries are re-enabled, you can simply install SDL2 from source as a temporary workaround.

                1 Reply Last reply Reply Quote 0
                • B
                  Banci
                  last edited by 14 Nov 2019, 16:41

                  @Yehor Can you explain to a noob like me all the steps that I should follow?

                  I'm having your same issue: Unable to install binary for sdl2

                  Y J 2 Replies Last reply 15 Nov 2019, 18:34 Reply Quote 0
                  • Y
                    Yehor @Banci
                    last edited by 15 Nov 2019, 18:34

                    @Banci At which step did you stuck? What instructions do you follow?

                    1 Reply Last reply Reply Quote 0
                    • J
                      jimmyjudd @Banci
                      last edited by 15 Nov 2019, 18:58

                      @Banci Yehor's guide to the fix is posted. Each line he typed out you will type out yourself step by step, each break in the line signifies a submission.
                      i.e.
                      type:

                      sudo apt-get update -y && sudo apt-get upgrade -y && sudo reboot
                      

                      hit enter
                      then:

                      sudo apt-get install git
                      

                      hit enter.

                      his fix is the :
                      sudo ./retropie_packages.sh 833 depends
                      sudo ./retropie_packages.sh 833 sources
                      sudo ./retropie_packages.sh 833 build
                      cd ./tmp/build/sdl2/
                      sudo dpkg -i libsdl2-2.0-0_2.0.10*.deb

                      after this is done, you head into the setup as normal and launch. I followed his guide myself and it fixed my problem

                      1 Reply Last reply Reply Quote 1
                      • P
                        pealvare @Yehor
                        last edited by 20 Nov 2019, 02:00

                        @Yehor I followed all the steps but after the basic install i reboot it then i got the retropie logonbut after that i just got redirect to the command line... if i type emullationstation it shows a black screen.

                        1 Reply Last reply Reply Quote 0
                        • P
                          pauljdoc
                          last edited by 2 Dec 2019, 19:48

                          I am getting 'fkms_rpi4' does not exist.. anyone else got this?

                          1 Reply Last reply Reply Quote 0
                          • H
                            Hervesz
                            last edited by 22 Dec 2019, 16:14

                            After the reboot, I got the retropie logo and after I have a black screen.

                            Do you have an idea ?

                            1 Reply Last reply Reply Quote 0
                            • J
                              jgraves
                              last edited by 31 Dec 2019, 15:14

                              When launching from terminal screen (ALT-F1), emulationstation runs but shows only a black screen. When run from X11 (xterm), it exits with this error:

                              terminate called after throwing an instance of 'std::logic_error'
                                what():  basic_string::_M_construct null not valid
                              Aborted
                              

                              Nothing in the logs that I can find.

                              I noticed the fkms_rpi4 branch is very active, so I'm guessing things are working, then breaking.

                              Thanks to all who are working on this.

                              -John

                              mituM 1 Reply Last reply 2 Jan 2020, 07:15 Reply Quote 0
                              • mituM
                                mitu Global Moderator @jgraves
                                last edited by 2 Jan 2020, 07:15

                                @jgraves We don't support running from a desktop environment, if you want to test the new PI4 support, start from a Buster Lite installation and do a manual installation - the latest version has integrated the fkms_rpi4 development branch.

                                MODERATION note: I'm going to lock this topic, it's no longer relevant to the current RetroPie version and creates more confusion than it gives solutions.

                                1 Reply Last reply Reply Quote 1
                                • 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.

                                  This community forum collects and processes your personal information.
                                  consent.not_received