Skip to content

Compiling for macOS

Christer Solskogen edited this page Mar 19, 2024 · 5 revisions

Starting with Amiberry v5.0 (actually, from v4.2.0 but that was never released as a binary), there are two macOS targets available:

  • osx-x86 (for Intel macOS)
  • osx-m1 (for Apple Silicon)

Both targets require the same dependencies, so the process for compiling either one of them is identical.

  • Install Xcode from the App Store
  • Install the Command Line tools from within Xcode.
  • Install Homebrew (check here for instructions: https://docs.brew.sh/Installation)

After that, open a new Terminal and use Homebrew to install all the required libraries:

brew install cmake sdl2 mpg123 sdl2_ttf sdl2_image flac libmpeg2 libserialport portmidi dylibbundler wget

Then you can compile Amiberry as usual, by specifying the PLATFORM option you want (either osx-x86 or osx-m1). The process will generate an application bundle at the end of it, which can be copied into Applications.

On macOS, Amiberry will create a new folder in the user's Documents folder, named Amiberry. That folder will contain all the related subfolders, such as Configurations, Data, Whdboot, etc. You can make changes to the amiberry.conf file there (under Configurations/amiberry.conf), if you wish.

Clone this wiki locally