-
Notifications
You must be signed in to change notification settings - Fork 87
Compiling (Windows)
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
Download the newest version of the MSYS2 installer from here and install it.
Run MINGW64 (mingw64.exe
) if you wish to build a 64-bit version of the executable, or MINGW32 (mingw32.exe
) otherwise.
Enter pacman -Syuu
in the prompt and hit Enter. Press Y
when it asks if you want to update packages. If it asks you to close the prompt, do so, then restart it and run the same command again. This updates the packages to their latest versions.
pacman -S unzip make git mingw-w64-i686-gcc mingw-w64-x86_64-gcc mingw-w64-i686-glew mingw-w64-x86_64-glew mingw-w64-i686-SDL2 mingw-w64-i686-SDL mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL python3
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 MINGW, navigate to the folder in which you cloned or downloaded sm64coopdx if you haven't already. Once you're there, run the following command:
make -j
You can append build flags to your make invocation for any needed changes.
- To access folders on your Windows drive, append any paths with
/c/