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

    OpenBOR for ARM64 on Orange Pi 3B

    Scheduled Pinned Locked Moved Ideas and Development
    openborarm64orange pi
    15 Posts 3 Posters 783 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.
    • RenetroxR
      Renetrox
      last edited by Renetrox

      OpenBOR for ARM64 and Orange Pi 3B

      This repository contains a modified version of OpenBOR (Open Beats of Rage) compatible with ARM64 devices, specifically optimized for the Orange Pi 3B.
      Key Features

      ARM64 Compatibility: Modifications made to compile and run OpenBOR on ARM64 devices.
      Optimized for Orange Pi 3B: Specific adjustments for the hardware and operating system of the Orange Pi 3B.
      Extended Compatibility: Tested on Debian- and Ubuntu-based distributions.
      

      System Requirements

      Device: Orange Pi 3B or any ARM64 device.
      Operating System: Debian 11/12, Ubuntu 20.04/22.04, or compatible systems.
      Dependencies:
          SDL2
          GCC/G++
          Make
          Git
      

      Installation Instructions

      Clone this repository:
      

      git clone https://github.com/Renetrox/openbor.git
      cd openbor

      Install the required dependencies:

      sudo apt update
      sudo apt install -y libsdl2-dev build-essential git

      Navigate to the engine directory:

      cd engine

      Compile OpenBOR:

      make BUILD_LINUX_LE_arm64=1

      Run OpenBOR:

      ./OpenBOR
      

      Specific Notes for Orange Pi 3B

      Hardware: This project leverages the capabilities of the Rockchip RK3566 processor and ARM Mali G52 2EE GPU.
      System: Using Orange Pi OS (Debian-based) is recommended for an optimized experience.
      Additional Configurations:
          Adjust scaling and resolution in the configuration file for optimal performance.
      

      Customization

      You can add your own OpenBOR games to the Paks directory. Simply place the .pak files inside this folder.
      Credits

      OpenBOR: Original project developed by the Beats of Rage community.
      ARM64 Adaptations: Implemented by Renetrox.
      Contributions: Thanks to everyone who helped with development and testing.
      

      License

      This project uses the same license as OpenBOR. See the LICENSE file for more details.

      Enjoy your games on your Orange Pi 3B!

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

        Interesting, but the compile build command doesn't work:

        make
        make: *** No targets specified and no makefile found.  Stop.
        

        Do I need to run cmake first ?

        RenetroxR 1 Reply Last reply Reply Quote 0
        • RenetroxR
          Renetrox @mitu
          last edited by

          @mitu make BUILD_LINUX_LE_arm64=1

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

            @Renetrox said in OpenBOR for ARM64 on Orange Pi 3B:

            @mitu make BUILD_LINUX_LE_arm64=1

            I get the same error as before - there's no Makefile in the root folder of the project so just running make will not work.

            RenetroxR 1 Reply Last reply Reply Quote 0
            • RenetroxR
              Renetrox @mitu
              last edited by

              @mitu I think the error is due to the fact that I did not delete the openbor after the compilation, the command you execute it being inside the engine folder

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

                I think the error is due to the fact that I did not delete the openbor after the compilation

                No, it's not because of that, it's because there's no makefile present.

                the command you execute it being inside the engine folder

                OK, so now I don't get the initial error, but the compilation stops with:

                 make BUILD_LINUX_LE_arm64=1
                Makefile:692: warning: overriding recipe for target 'OpenBOR'
                Makefile:218: warning: ignoring old recipe for target 'OpenBOR'
                Compiling LINUX Port: openbor.c...
                In file included from openbor.c:15:
                openbor.h:44:13: fatal error: version.h: No such file or directory
                   44 | #include    "version.h"
                      |             ^~~~~~~~~~~
                compilation terminated.
                make: *** [Makefile:686: openbor.o] Error 1
                

                I suggest you try to compile/build from scratch with a fresh git checkout and then modify the build instructions accordingly.

                RenetroxR 1 Reply Last reply Reply Quote 0
                • RenetroxR
                  Renetrox @mitu
                  last edited by

                  @mitu That's weird, I already went through those errors and I was modifying the makefile according to them to get it compiled, I'll do a review again, if you could help me it would be great! Does the binary work for you?

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

                    @Renetrox said in OpenBOR for ARM64 on Orange Pi 3B:

                    That's weird, I already went through those errors and I was modifying the makefile according to them to get it compiled, I'll do a review again, if you could help me it would be great!

                    Maybe you forgot to add the necessary modifications to the Github repository.

                    Does the binary work for you?

                    Yes, it does, even though I don't have a Orange Pi 3B.

                    RenetroxR 1 Reply Last reply Reply Quote 1
                    • ExarKunIvE
                      ExarKunIv
                      last edited by ExarKunIv

                      I don't have a orange pi. But I did get openBoR working on my pi5 which is 64bit

                      Here's my script if it will help

                      https://github.com/Exarkuniv/RetroPie-Extra/blob/master/scriptmodules/emulators/openbor-v5.sh

                      Nice work BTW

                      RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                      RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                      Maintainer of RetroPie-Extra .

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

                        @ExarKunIv said in OpenBOR for ARM64 on Orange Pi 3B:

                        Here's my script if it will help

                        This means compilation for ARM(64) works without the build modifications from the 1st post.

                        RenetroxR 1 Reply Last reply Reply Quote 1
                        • RenetroxR
                          Renetrox @mitu
                          last edited by

                          @mitu I'm glad it works! at least that for the moment, I have no idea what happened with the makefile since I was modifying it as I got errors

                          1 Reply Last reply Reply Quote 0
                          • RenetroxR
                            Renetrox @mitu
                            last edited by

                            @mitu i already saw that this happens with other programs, I got the drastic binary from batocera and when changing the flags of my system in the installation script I replaced with that binary that I got and it works both in my opi 3b and in an opi 3 lts

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

                              @Renetrox Not sure what's the relation to DraStic, since that's a closed source emulator which hasn't been updated in ages. Your source installation instructions do not work, but they're not needed since a binary can be compiled using @ExarKunIv's version of the install script.

                              RenetroxR 2 Replies Last reply Reply Quote 0
                              • RenetroxR
                                Renetrox @mitu
                                last edited by

                                @mitu I just comment that there are programs that use aarch64 architecture that work independently of the board on which it was compiled. I just put drastic as an example since I have it working in my opi 3b that way in my retropie installation

                                1 Reply Last reply Reply Quote 0
                                • RenetroxR
                                  Renetrox @mitu
                                  last edited by

                                  @mitu i'm going to try it! maybe I need to adapt the flags on my system and it will work!

                                  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.