RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    [RetroPie-LMDE] Utility Script to assist with installing RetroPie on Linux Mint Debian Edition.

    Scheduled Pinned Locked Moved Projects and Themes
    retropielmdelibpng12-devlibpng-devmint debian
    12 Posts 2 Posters 1.4k 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.
    • RapidEdwin08R
      RapidEdwin08 @mitu
      last edited by RapidEdwin08

      @mitu said

      RetroPie-Setup identifies LMDE as a Debian derivative less than 9 and applies [libpng12-dev] instead of [libpng-dev].

      Isn't this correct ? For which version of LMDE ?

      The Errors were during RetroPie Setup v4.8.2 - Basic Install.
      It was failing to install EmulationStation due to missing [libpng12-dev].
      Applied Minimal tweak to the [helpers.sh] to get past it.

      Tested on x2 different LMDE PCs.

      OS: LMDE 4 (debbie) x86_64 Kernel: 4.19.0-18-amd64
      Linuxmint
      LMDE 4 (debbie)
      4
      debbie

      OS: LMDE 5 (elsie) x86_64 Kernel: 5.10.0-19-amd64
      Linuxmint
      LMDE 5 (elsie)
      5
      elsie

      @mitu said

      EmulationStation Fails to GIT.

      What does this mean ? What error you get ?

      There are a few make Errors related libraries...
      I uploaded an Error Log from my LMDE4 Machine to GIT for reference.
      Example_ES-LMDE_rps.log

      Raspberry Pi B, Pi B+, Pi2 B, Pi3 B, Pi3 B+, Pi Zero W, Pi4 (4GB/8GB), Pi5 (8GB/16GB), Pi Zero 2 W, GPi V1, minisforum GK50 / RetroPie 4.8.x

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        @RapidEdwin08 said in [RetroPie-LMDE] Utility Script to assist with installing RetroPie on Linux Mint Debian Edition.:

        It was failing to install EmulationStation due to missing [libpng12-dev].

        Can you please post the output of

        lsb_release -sidrc
        apt search ^libpng
        

        The distro version may be incorrectly set and this may cause the an incorrect identification.

        There are a few make Errors related libraries...

        Ok, so there are errors during build, but they're not git related, as you said earlier. From the log, I see an older version of ES is selected, probably because your OS is mis-identified or considered too old to build the current stable version. The build is failing because of a missing package (libboost-date-time-dev).

        RapidEdwin08R 1 Reply Last reply Reply Quote 1
        • RapidEdwin08R
          RapidEdwin08 @mitu
          last edited by RapidEdwin08

          @mitu said

          Ok, so there are errors during build, but they're not git related, as you said earlier. From the log, I see an older version of ES is selected, probably because your OS is mis-identified or considered too old to build the current stable version. The build is failing because of a missing package (libboost-date-time-dev).

          Thanks, I updated the ES Error info.
          Makes sense about misidentified OS, both LMDE4/5 are attempting to git 0lder ES v2.6.7.

          I was able to get past install of 0lder ES v2.7.6 on LMDE4 after installing [libboost-date-time-dev].
          For LMDE5 it still fails with 0lder ES v2.6.7 even after installing the Boost Libraries.
          Here's an example log: Example_ES-LMDE5_rps.log
          Using the Tweaks in the Script gets me a working ES v2.12.0-DEV on both LMDE4/5 for now.

          Output from both LMDE4/5 lsb_release -sidrc:

          Linuxmint
          LMDE 4 (debbie)
          4
          debbie
          
          
          Linuxmint
          LMDE 5 (elsie)
          5
          elsie
          

          Output from both LMDE4/5 apt search ^libpng:

          p   libpng++-dev         - C++ interface to the PNG (Portable Network Graphics) library                                         
          i   libpng-dev           - PNG library - development (version 1.6)                                                              
          p   libpng-dev:i386      - PNG library - development (version 1.6)                                                              
          p   libpng-sixlegs-java  - Sixlegs Java PNG Decoder       
          p   libpng-sixlegs-java-doc  - Documentation for Sixlegs Java PNG Decoder                                                           
          i A libpng-tools         - PNG library - tools (version 1.6)                                                                    
          p   libpng-tools:i386    - PNG library - tools (version 1.6)                                                                    
          i   libpng16-16          - PNG library - runtime (version 1.6)                                                                  
          i A libpng16-16:i386     - PNG library - runtime (version 1.6)                                                                  
          p   libpnglite-dev       - lightweight C library for loading and writing PNG images                                             
          p   libpnglite-dev:i386  - lightweight C library for loading and writing PNG images                                             
          p   libpnglite0          - lightweight C library for loading and writing PNG images                                             
          p   libpnglite0:i386     - lightweight C library for loading and writing PNG images
          

          Raspberry Pi B, Pi B+, Pi2 B, Pi3 B, Pi3 B+, Pi Zero W, Pi4 (4GB/8GB), Pi5 (8GB/16GB), Pi Zero 2 W, GPi V1, minisforum GK50 / RetroPie 4.8.x

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by

            Looking at the detection of LMDE, I see it's ignored by the detection script. The linuxmint part is just handling the non-LMDE variant here. I guess you need to add something to handle LMDE in order to have the correct __os_debian_version. Something like:

            ..
                    LinuxMint|Linuxmint)
                        if [[ "$__os_desc" != LMDE* ]]; then
                            if compareVersions "$__os_release" lt 18; then
                                error="You need Linux Mint 18 or newer"
                            elif compareVersions "$__os_release" lt 19; then
                                __os_ubuntu_ver="16.04"
                                __os_debian_ver="8"
                            elif compareVersions "$__os_release" lt 20; then
                                __os_ubuntu_ver="18.04"
                                __os_debian_ver="10"
                            else
                                __os_ubuntu_ver="20.04"
                                __os_debian_ver="11"
                            fi
                        fi
                        # Add LMDE
                        if [[ "$__os_desc" == LMDE* ]]; then
                            if compareVersions "$__os_release" lt 5; then
                                   __os_debian_ver=10
                            else
                                  __os_debian_ver=11
                            fi
                       fi
            ..
            RapidEdwin08R 1 Reply Last reply Reply Quote 1
            • RapidEdwin08R
              RapidEdwin08 @mitu
              last edited by RapidEdwin08

              @mitu THANK YOU

              Your suggestion Works Perfectly on both LMDE4/5, gives me ES Stable branch, and it's only a Single File [system.sh] that needs to be tweaked.
              I updated the OP and added lmde_rpsetup.diff

              Thanks again @mitu

              Raspberry Pi B, Pi B+, Pi2 B, Pi3 B, Pi3 B+, Pi Zero W, Pi4 (4GB/8GB), Pi5 (8GB/16GB), Pi Zero 2 W, GPi V1, minisforum GK50 / RetroPie 4.8.x

              1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator
                last edited by

                Identifying LMDE has been added to RetroPie-Setup, you just need to update the Setup script and it should work without any other patches.

                RapidEdwin08R 1 Reply Last reply Reply Quote 1
                • RapidEdwin08R
                  RapidEdwin08 @mitu
                  last edited by

                  @mitu Thanks again for all you do...

                  LMDE6 is available.
                  lsb_release -sidrc

                  Linuxmint
                  LMDE 6 (faye)
                  6
                  faye
                  
                  

                  [~/RetroPie-Setup/scriptmodules/system.sh]:

                              if [[ "$__os_desc" == LMDE* ]]; then
                                  if compareVersions "$__os_release" lt 4; then
                                      error="You need Linux Mint Debian Edition 4 or newer"
                                  elif compareVersions "$__os_release" lt 5; then
                                      __os_debian_ver="10"
                                  elif compareVersions "$__os_release" lt 6; then
                                      __os_debian_ver="11"
                                  else
                                      __os_debian_ver="12"
                                  fi
                              fi
                  

                  Raspberry Pi B, Pi B+, Pi2 B, Pi3 B, Pi3 B+, Pi Zero W, Pi4 (4GB/8GB), Pi5 (8GB/16GB), Pi Zero 2 W, GPi V1, minisforum GK50 / RetroPie 4.8.x

                  mituM 1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @RapidEdwin08
                    last edited by

                    @RapidEdwin08 said in [RetroPie-LMDE] Utility Script to assist with installing RetroPie on Linux Mint Debian Edition.:

                    LMDE6 is available.

                    Not sure if we're supposed to update our scripts or it already works with the existing RetroPie-Setup. LMDE 6 is based on Debian 12 Bookworm, so the __os_debian_ver should be correct.

                    RapidEdwin08R 1 Reply Last reply Reply Quote 0
                    • RapidEdwin08R
                      RapidEdwin08 @mitu
                      last edited by

                      @mitu said in [RetroPie-LMDE] Utility Script to assist with installing RetroPie on Linux Mint Debian Edition.:

                      Not sure if we're supposed to update our scripts or it already works with the existing RetroPie-Setup. LMDE 6 is based on Debian 12 Bookworm, so the __os_debian_ver should be correct.

                      $__os_debian_ver detected for LMDE6 was 11.

                      For a test I added a [echo $__os_debian_ver > tmp.log] to the End of the function get_os_version().
                      Then just ran the ./retropie_setup to see the output.
                      The $__os_debian_ver output in my test was 11.

                      You can confirm this on a Live USB of LMDE6 too.

                      Raspberry Pi B, Pi B+, Pi2 B, Pi3 B, Pi3 B+, Pi Zero W, Pi4 (4GB/8GB), Pi5 (8GB/16GB), Pi Zero 2 W, GPi V1, minisforum GK50 / RetroPie 4.8.x

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @RapidEdwin08
                        last edited by

                        @RapidEdwin08 I thought you posted the Retropie-Setup code, not your additions. Feel free to send a PR to support LDME 6.

                        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.