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

    OpenBOR can't install libpng12-dev dependency

    Scheduled Pinned Locked Moved Help and Support
    libpng12-devopenborretropie-extra
    16 Posts 3 Posters 1.7k 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.
    • B
      BMovieBen
      last edited by BMovieBen

      Hi, I'm desperately trying to install OpenBOR via the RetroPie-Extra script, coming from this thread here. The author said they fixed the dependencies but I'm still having this issue. Can anyone help? Here's what the console is saying:

      Could not install package(s): libpng12-dev.
      

      Log: https://pastebin.com/dMCcMVsz
      I've looked over the other threads about the libpng12-dev dependency issue and I am still stuck. Any help would be appreciated.

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

        The updated script that you mention has no direct dependency for libpng12-dev and from the error you posted you need to fix your apt installation:

        ...
        E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
        ..
        

        How did you install RetroPie ? Did you update your packages after updating RetroPie ? Did you manually added some extra repositories to apt ?

        B 1 Reply Last reply Reply Quote 0
        • Z
          zerojay @BMovieBen
          last edited by

          @BMovieBen Hi, that's me.

          The dependency being updated was for Streets of Rage Remake, not OpenBOR which does not have a dependency upon libpng12-dev.

          function depends_sorr() {
          getDepends libsdl-mixer1.2 libpng libpng-dev <--- This was fixed.
          }

          Your issue does not appear to have anything to do with my scripts and I don't know how I can help.

          1 Reply Last reply Reply Quote 0
          • B
            BMovieBen @mitu
            last edited by

            @mitu I used the image from retropie's website. The only things I've done to it are to add the KintaroSnes script to get the case to shutdown/power on appropriately, and to try and get OpenBOR to work (by that I mean wider compatibility than the older version included with RetroPie proper). I tried a couple of different ways to do it, none of them worked. Latest was trying @zerojay's script (thank you by the way, trying to get past my issue as you can see!)

            I have updated packages after updating the RetroPie-Script yes. I've tried removing holds, uninstalling apts, reinstalling apts, I even went down the road of using aptitude to try and install this libpng12-dev and it gave me a conflict as libpng-dev was already installed and corresponded to a newer version.

            If libpng12-dev is a dependency on something else and that's what's breaking the script, how would I find that out? linux novice here.

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

              @BMovieBen Remove libpng12-dev with apt and then try to see if you still have conflicts. Can you also run dpkg -l | grep libsdl1 and post the output ?

              B 1 Reply Last reply Reply Quote 0
              • B
                BMovieBen @mitu
                last edited by

                @mitu libpng12-dev is not installed. I double-checked and tried to uninstall it. I ran what you asked and here's the output (apologies for blurriness):
                grep lib sm.jpg

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

                  @BMovieBen Hm, the list of packages seems right, but for some reason the installation is not completed.
                  Did you add any additional apt repositories to your installation ? What does the following command show:

                  apt-cache policy libcaca-dev
                  
                  B 1 Reply Last reply Reply Quote 0
                  • B
                    BMovieBen @mitu
                    last edited by

                    @mitu I don't know if I added additional apt repos or not... I don't think so? Here's the results of the libcaca-dev request (incidentally if anyone can tell me how to get a screenshotting tool to work let me know)
                    libcaca-dev-sm.jpg
                    I do have aptitude installed if that will help in any way.

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

                      That looks fine - the package is installed and it's not different from what's available in the repositories. I don't have any more ideas - you could re-installing the libsdl1 packages from RetroPie-Setup (the dependencies section) and see if anything changes.

                      incidentally if anyone can tell me how to get a screenshotting tool to work let me know

                      Use SSH to connect to your Pi, you'll be able to both paste the commands you need and copy the output, without needing a screenshot.

                      B 1 Reply Last reply Reply Quote 1
                      • B
                        BMovieBen @mitu
                        last edited by

                        @mitu Thank you for the info about SSH - I had incorrectly assumed it was just for SFTP. I've got Putty running and now feel like a superuser thanks to you!

                        Tried reinstalling libcaca-dev, didn't help. Removed 'kintaro' repo from sources, didn't help.

                        However, I did a sudo grep -r "libpng12-dev" and found it mentioned in three files:
                        /home/pi/RetroPie-Setup/scriptmodules/ports/openbor.sh
                        /home/pi/RetroPie-Setup/scriptmodules/ports/easyrpgplayer.sh
                        /home/pi/RetroPie-Setup/scriptmodules/helpers.sh

                        I changed references in openbor.sh and easyrpgplayer.sh (left helpers.sh alone) from libpng12-dev to libpng-dev and re-ran the RetroPie-Extra OpenBOR install script, and it builds...progress!

                        Full log: https://pastebin.com/36NQhG89

                        That said...I don't know what it built. In ES, Ports is now visible, with openbor listed as an item. When you launch it it says no config exists for openbor. So maybe my list of 'experimental' packages is broken somehow - there are actually two OpenBOR packages listed. One is the 6510, listed towards the top, and the other is towards the bottom. I went ahead and installed the second 'openbor' package, and now when I launch openbor it's the 3400 version that comes with RetroPie out of the box.

                        @zerojay Any ideas here? I put my paks under roms/openbor, which I have not extracted (which is how I understand 65xx to work), and OpenBor should show up as its own top-level system in ES...

                        Z 1 Reply Last reply Reply Quote 0
                        • Z
                          zerojay @BMovieBen
                          last edited by

                          @BMovieBen said in OpenBOR can't install libpng12-dev dependency:

                          @mitu Thank you for the info about SSH - I had incorrectly assumed it was just for SFTP. I've got Putty running and now feel like a superuser thanks to you!

                          Tried reinstalling libcaca-dev, didn't help. Removed 'kintaro' repo from sources, didn't help.

                          However, I did a sudo grep -r "libpng12-dev" and found it mentioned in three files:
                          /home/pi/RetroPie-Setup/scriptmodules/ports/openbor.sh
                          /home/pi/RetroPie-Setup/scriptmodules/ports/easyrpgplayer.sh
                          /home/pi/RetroPie-Setup/scriptmodules/helpers.sh

                          I changed references in openbor.sh and easyrpgplayer.sh (left helpers.sh alone) from libpng12-dev to libpng-dev and re-ran the RetroPie-Extra OpenBOR install script, and it builds...progress!

                          Full log: https://pastebin.com/36NQhG89

                          That said...I don't know what it built. In ES, Ports is now visible, with openbor listed as an item. When you launch it it says no config exists for openbor. So maybe my list of 'experimental' packages is broken somehow - there are actually two OpenBOR packages listed. One is the 6510, listed towards the top, and the other is towards the bottom. I went ahead and installed the second 'openbor' package, and now when I launch openbor it's the 3400 version that comes with RetroPie out of the box.

                          @zerojay Any ideas here? I put my paks under roms/openbor, which I have not extracted (which is how I understand 65xx to work), and OpenBor should show up as its own top-level system in ES...

                          You didn't use my script but the one already in RetroPie. That's why you have the unpacker there (which isn't needed with mine) and why you aren't getting it as a system but as a port.

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            BMovieBen @zerojay
                            last edited by

                            @zerojay I figured that...so how do I fix it so it runs your script? Or should I just try running it directly with
                            sudo ./RetroPie-Extra/scriptmodules/emulators/openbor.sh?
                            When I try that nothing happens...

                            Z 1 Reply Last reply Reply Quote 0
                            • Z
                              zerojay @BMovieBen
                              last edited by

                              @BMovieBen Replace the one that is already in RetroPie-Setup with my own, then install it as you would normally.

                              B 1 Reply Last reply Reply Quote 1
                              • B
                                BMovieBen @zerojay
                                last edited by

                                @zerojay So I had to kill /home/pi/RetroPie-Setup/scriptmodules/ports/openbor.sh in order for yours (which copies to /home/pi/RetroPie-Setup/scriptmodules/emulators/openbor.sh) to run. It looks like it built successfully, see log: https://pastebin.com/2J0c99DB

                                Now, do I need to manually add this to es_systems.cfg for OpenBOR to show up in ES? Because it's not showing up. Likewise do I need to manually create the gameslist.xml file?

                                Z 1 Reply Last reply Reply Quote 0
                                • Z
                                  zerojay @BMovieBen
                                  last edited by zerojay

                                  @BMovieBen You should see it added in /etc/emulationstation/es_systems.cfg. If you have a ~/.emulationstation/es_systems.cfg, you'll need to copy the chunk for openbor into it to get it working.

                                  The gamelist will be populated if you have the games in the proper place when you start up EmulationStation. There's nothing here that's any different from any other system being added.

                                  Here's what's in mine:

                                   <system>
                                     <name>openbor</name>
                                     <fullname>OpenBOR</fullname>
                                     <path>/home/pi/RetroPie/roms/openbor</path>
                                     <extension>.pak .PAK</extension>
                                     <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ openbor %ROM%</command>
                                     <platform>openbor</platform>
                                     <theme>openbor</theme>
                                   </system>
                                  
                                  B 1 Reply Last reply Reply Quote 1
                                  • B
                                    BMovieBen @zerojay
                                    last edited by

                                    @zerojay The extensions were missing from es_systems.cfg in the openbor section; I just had to add them😊. It's launching now!!! Thank you so much for all your help guys. Really appreciate it.

                                    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.