Skip to content

Compiling on MacOS (Intel)

djoslin0 edited this page Feb 9, 2022 · 24 revisions

Set up Homebrew.

Follow the Homebrew installation instructions here, pasting the given line in Terminal.

Install dependencies.

After installing homebrew, enter this command in the terminal to install packages necessary to build sm64ex:

brew install make mingw-w64 gcc gcc@9 sdl2 pkg-config glew glfw3 libusb audiofile coreutils

Obtain the source code.

git clone https://github.com/djoslin0/sm64ex-coop.git
cd sm64ex-coop

Copy baserom(s) for asset extraction.

For each version (jp/us/eu) that you want to build an executable for, put an existing ROM at ./baserom.<version>.z64 for asset extraction.

For example, if you want to build the US version, there should be a ROM file called baserom.us.z64 in the sm64ex directory (meaning next to the Makefile).

NOTE: Only the us version is currently supported on coop.

If during the build process you get messages saying that the ROM has an incorrect hash, there is a possibility that it's a V64 ROM that needs to be byteswapped. To do that, use this web tool.

Compile the game

To turn certain features on and off, append any needed build flags to your gmake invocation:

gmake OSX_BUILD=1

OSX_BUILD must be specified to be 1.

Run the game

./build/us_pc/sm64.us.f3dex2e
Clone this wiki locally