-
Notifications
You must be signed in to change notification settings - Fork 70
Compiling (macOS ARM)
Firstly, install Homebrew, this will be used to download the dependencies.
You can either download the source code for this project as a ZIP, or obtain it using git clone
:
git clone https://github.com/coop-deluxe/sm64coopdx.git
cd sm64coopdx
After installing homebrew, open up the Terminal application, and run this command:
brew install make mingw-w64 gcc sdl2 pkg-config glew glfw3 libusb audiofile coreutils
While the ROM is no longer needed for extracting any copyrighted assets, it is still needed for the audio part of the compilation.
Get your vanilla US Super Mario 64 8 MB Z64 format ROM file and rename it to baserom.us.z64
before putting it in the root of the project (the same folder as the Makefile.)
If you have a ROM that matches the criteria above minus the file extension (if it's .v64 or .n64) then you can use this online ROM byteswapper to convert it into the .z64 file format.
Finally, it's time to compile. in the terminal, navigate to the folder in which you cloned or downloaded sm64coopdx if you haven't already. Once you're there, run the following command:
gmake OSX_BUILD=1
OSX_BUILD must be specified to be 1.
You can append build flags to your make invocation for any needed changes.
Once it's done compiling, you will now have a .app file. If you would like to move it to the applications folder, you can run this terminal command:
cp build/us_pc/sm64coopdx.app /Applications/
If you want to move it elsewhere, I would recommend running:
cp build/us_pc/sm64coopdx.app ~/Downloads/
Then navigate to the Downloads
folder, and move sm64ex-coop.app to where you want it to be.