WARNING - these instructions are somewhat verbose. They are posted with the intent to help, but can’t cover EVERYTHING that you might require to get the emulator running. Like any information on the internet, please use the information below at your own risk. The ideal case it all just works and you’ll never have to come back and read this post again.
The hope is that these instructions will take you about 30 minutes read and complete the install.
This procedure was developed on a Mac Mini 2018 3Ghz 6 Core i5 running macOS Big Sur 11.5.1 and covers the R38 release. It may work for future releases of the emulator.
Here are the steps you need to do in short, followed by a little more description:
Install Homebrew
Install SDL2
Install the CX16 Emulator
1 Install Homebrew Homebrew is a package installer - a software tool that makes adding capabilities to your system easy. It is installed using the MAC’s Terminal app. You can find Terminal using Launchpad in the Utils group.
Navigate to the webpage
https://brew.sh to copy the line of text for Install Homebrew (they have a clipboard button at the end of the line.) Start a Terminal window. Paste the line of text and the install will start. You’ll most likely be propped for your admin password a couple of times as it progresses. There will be text output in the terminal window documenting the steps taken, much of it may seem strange. You’re looking for the line “
==> Installation successful!” If you don’t get that message, save the output of the terminal window to a text file and then consult
https://github.com/Homebrew/discussions/discussions for a possible solution. Without Homebrew installed the next step cannot be completed.
If you want to know more about Terminal & Homebrew, see
https://appletoolbox.com/use-the-mac-terminal-the-basics/
https://en.wikipedia.org/wiki/Homebrew_(package_manager)
Or consult your favourite search engine.
2 Install SDL2
The next step is to install SDL2 - a software package that enables the Emulator to access your MAC’s hardware.
Like the first step you use the Terminal to do this installation. See https://formulae.brew.sh/formula/sdl2 for the line you’ll need to enter. There will be more output in the Terminal window. My install ended with the lines:
Pouring sdl2--2.0.14_1.big_sur.bottle.tar.gz
? /usr/local/Cellar/sdl2/2.0.14_1: 91 files, 5.1MB
Your install may state different version numbers. At the time of writing I updated to version 2.0.16 by issuing the command “brew install sdl2” again. You might want to update once in a while, but it isn’t required by the emulator as far as I know.
Reference:
https://www.libsdl.org
3 Install the CX16 Emulator
Navigate to https://www.commanderx16.com/forum/index.php?/files/file/25-commander-x16-emulator-winmaclinux/ in your browser. Download the Mac version x16emu_mac-r38.zip. Extract the zip via a double click. Move the extracted folder to be a sub directory of your Applications folder (Macintosh HD/Applications.)
Note that the folder already contains a compiled copy of the rom.bin file. You don’t have to figure out how to compile it, that work has been done for you.
To start the emulator, right or control click on x16emu. Your security settings may prevent it from running, if so consult https://support.apple.com/en-us/HT202491 to allow it to run.
You’ll notice that a new Terminal window opens displaying the command used to start the emulator. You can manually start the emulator from the Terminal application which allows one to specify the many options listed in the Starting section of the emulator’s User Guide.
Once you got it installed, examine the documentation in the docs sub folder (/Applications/x16emu_mac-r38/docs) Also at the information on https://www.commanderx16.com/forum/index.php?/files/category/8-official-docs/. Look through the X16 Emulator User Guide to discover how to benefit from the many features of the emulator. There is a lot of technical documentation, don’t panic if some of the information doesn’t make sense to you at this time.
Congratulations! The X16 emulator should now be installed and ready for you. If you found these instructions helpful, just let me know via a reaction to this post. If there is anything unclear, start a new post in https://www.commanderx16.com/forum/index.php?/forum/5-x16-software-support/ and perhaps I or another member of the community can help you.