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

    Lock SDL2, MESA and DRM update

    Scheduled Pinned Locked Moved Ideas and Development
    mesamesa-drmsdl2
    14 Posts 4 Posters 1.0k 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 @FranceMSR
      last edited by BuZz

      @FranceMSR I forgot to add, we don't force any Mesa version to be installed. If you have upgraded Mesa it should be fine.

      EmulationStation also should work fine with kms.

      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

      F 1 Reply Last reply Reply Quote 0
      • F
        FranceMSR @BuZz
        last edited by FranceMSR

        @BuZz I did what you wrote but for example when I try to install EmulationStation within RetroPie script I see these lines of log:

        = = = = = = = = = = = = = = = = = = = = =
        Installing dependencies for 'emulationstation' : EmulationStation - Frontend used by RetroPie for launching emulators
        = = = = = = = = = = = = = = = = = = = = =
        
        Did not find needed dependencies: libfreeimage-dev libcurl4-openssl-dev cmake libsdl2-dev(custom) libsm-dev libvlc-dev libvlccore-dev rapidjson-dev. Trying to install them now.
        Update is available - updating ...
        
        = = = = = = = = = = = = = = = = = = = = =
        Installing dependencies for 'sdl2' : SDL (Simple DirectMedia Layer) v2.x
        = = = = = = = = = = = = = = = = = = = = =
        
        Did not find needed dependencies: fcitx-libs-dev libsndio-dev libxcursor-dev libxi-dev libxinerama-dev libxkbcommon-dev libxss-dev libxt-dev libxv-dev libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libgl1-mesa-dev libglu1-mesa-dev libgbm-dev devscripts. Trying to install them now.
        

        or these when I run Basic install:

        = = = = = = = = = = = = = = = = = = = = =
        Installing dependencies for 'retroarch' : RetroArch - frontend to the libretro emulator cores - required by all lr-* emulators
        = = = = = = = = = = = = = = = = = = = = =
        
        Did not find needed dependencies: libsdl2-dev(custom) libusb-1.0-0-dev libavcodec-dev libavformat-dev libavdevice-dev. Trying to install them now.
        Update is available - updating ...
        
        = = = = = = = = = = = = = = = = = = = = =
        Installing dependencies for 'sdl2' : SDL (Simple DirectMedia Layer) v2.x
        = = = = = = = = = = = = = = = = = = = = =
        
        /home/<user>/RetroPie-Setup/tmp/build/sdl2 /home/<user>
        
        = = = = = = = = = = = = = = = = = = = = =
        Getting sources for 'sdl2' : SDL (Simple DirectMedia Layer) v2.x
        = = = = = = = = = = = = = = = = = = = = =
        
        Already on 'retropie-2.0.10'
        M	build-scripts/config.guess
        M	build-scripts/config.sub
        M	debian/changelog
        M	debian/control
        M	debian/rules
        Your branch is up to date with 'origin/retropie-2.0.10'.
        Already up to date.
        HEAD is now in branch 'retropie-2.0.10' at commit '8492a8d7a070fc20fb474dfe1cb9f61a7fc26f1c'
        /home/<user>
        /home/<user>/RetroPie-Setup/tmp/build/sdl2 /home/<user>
        
        = = = = = = = = = = = = = = = = = = = = =
        Building 'sdl2' : SDL (Simple DirectMedia Layer) v2.x
        = = = = = = = = = = = = = = = = = = = = =
        
        dpkg-buildpackage: info: source package libsdl2
        dpkg-buildpackage: info: source version 2.0.10+5rpi
        dpkg-buildpackage: info: source distribution UNRELEASED
        dpkg-buildpackage: info: source changed by Jools Wills <buzz@exotica.org.uk>
         dpkg-source --before-build .
        
        

        I don't want libsdl2-dev(custom) or libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libgl1-mesa-dev to be installed by RetroPie

        F BuZzB 3 Replies Last reply Reply Quote 0
        • F
          FranceMSR @FranceMSR
          last edited by

          Additionally EmulationStation didn't build, I receive this error:

          Could not successfully build sdl2 - SDL (Simple DirectMedia Layer) v2.x (/home/<user>/RetroPie-Setup/tmp/build/sdl2/libsdl2-dev_2.0.10+5rpi_armhf.deb not found).
          
          1 Reply Last reply Reply Quote 0
          • BuZzB
            BuZz administrators @FranceMSR
            last edited by

            @FranceMSR You won't be able to stop it installing the mesa packages without reworking the getDepends code. I've used a newer mesa but I built debian packages.

            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 @FranceMSR
              last edited by

              @FranceMSR sorry I meant you need to set own_sdl2=0 I got it the wrong way round.

              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 1
              • F
                FranceMSR
                last edited by

                @BuZz said in Lock SDL2, MESA and DRM update:

                @FranceMSR sorry I meant you need to set own_sdl2=0 I got it the wrong way round.

                Ok, make sense.

                I built Mesa 22.0.4 and DRM from sources, so if I don't want Mesa and DRM to be messed up need I to remove the dependencies from the other scripts modifying all getDepends variables?

                LolonoisL 1 Reply Last reply Reply Quote 0
                • F FranceMSR referenced this topic on
                • LolonoisL
                  Lolonois @FranceMSR
                  last edited by

                  @FranceMSR hmm, I'd rather extend this line with clauses to ignore libs (libdrm, -mesa-dev aso. identified in the emulator scriptmodules), thus not entering the following if branch.

                  Thanks for mentioning the own_sdl2 switch, I didn't know about it until y'day, @buzz.

                  F 1 Reply Last reply Reply Quote 1
                  • F
                    FranceMSR @Lolonois
                    last edited by

                    @Lolonois I'll try to modify that line, thanks

                    G 1 Reply Last reply Reply Quote 0
                    • G
                      gleam2003 @FranceMSR
                      last edited by

                      Install your Mesa and sdl2 library in /usr/local and config LD for use this before the one installed by RetroPie.
                      In this way you can use original RetroPie script without lose your build library

                      F 1 Reply Last reply Reply Quote 0
                      • F
                        FranceMSR @gleam2003
                        last edited by

                        @gleam2003 said in Lock SDL2, MESA and DRM update:

                        Install your Mesa and sdl2 library in /usr/local and config LD for use this before the one installed by RetroPie.
                        In this way you can use original RetroPie script without lose your build library

                        Thanks, I'll try

                        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.