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

    Compile a core of libretro to a specific commit version

    Scheduled Pinned Locked Moved Help and Support
    help mecompile
    7 Posts 2 Posters 906 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.
    • lagunaL
      laguna
      last edited by

      Hello good day,

      Would it be possible to compile a core of libretro to a desired commit version ??

      I need to modify this script:
      https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/libretrocores/lr-picodrive.sh
      to compile this commit:
      https://github.com/libretro/picodrive/commit/eaac037a9e331e8b26a77239d8dd96b76f86515e

      Anyone who knows how to write the code, can I pass the modified lr-picodrive.sh file to replace it with mine?

      Thank you very much, greetings !!!!!

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

        What's the purpose of this ? If you install from source the emulator, this commit should already be included.

        1 Reply Last reply Reply Quote 0
        • lagunaL
          laguna
          last edited by

          The goal would be to have the same core version of a friend to play online with him ... he has the picodrive version of the commit that I quoted before, and I would need to compile that version. since he has not connected the raspberry to the network and can not update picodrive to the last source.

          Thank you!!

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

            Wouldn't it be easier - if you both have RetroPie - to update from binary the package ? It should get you the same version.

            1 Reply Last reply Reply Quote 0
            • lagunaL
              laguna
              last edited by

              Yes, we already knew that it solves the problem, many thanks, but my goal was to know how to compile a specific commit of the core in question ...

              thank you anyway.

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

                @laguna said in Compile a core of libretro to a specific commit version:

                Yes, we already knew that it solves the problem, many thanks, but my goal was to know how to compile a specific commit of the core in question ...

                You can do that by adding the commit number as a parameter to the gitPullOrClone function that retrieves the sources. Support for this has been recently added, see
                https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/helpers.sh#L336.
                However, any modifications to the setup script will interfere with the update so I don't recommend this. Of course you can create your own local branch so it will not affect updates, but using the binary is much simpler and less error prone.

                lagunaL 1 Reply Last reply Reply Quote 0
                • lagunaL
                  laguna @mitu
                  last edited by

                  @mitu

                  Thank you very much for the reply!!

                  The bad thing is that I do not know how to write code ... and I'm not sure where I should write the commit (eaac037a9e331e8b26a77239d8dd96b76f86515e) and with what syntax ...

                  Please, if it is not too much trouble, if I could write the line that I should include in the ir-picodrive.sh and in what position, I compile and see if it works !!!

                  many thanks!!!

                  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.