Skip to content

Compiling on Windows

Llennpie edited this page Mar 24, 2022 · 14 revisions

Set up MSYS2

Compiling on Windows requires MSYS2. Download it and launch the MINGW64 executable (MINGW32/32-bit is untested).

Do not launch standard MSYS2. Search "MINGW" in the start menu and choose 64-bit. It has a blue icon.

Enter pacman -Syuu in the prompt and hit Enter. Press Y when it asks if you want to update packages. This updates the packages to their latest versions.

Dependencies

Enter this command to install necessary packages:

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

Building

git clone https://github.com/Llennpie/Saturn
cd Saturn

Copy an unmodified, vanilla ROM into the repo's directory and rename it to baserom.us.z64.

Note that MSYS2's folders are different than Windows. You can run explorer . to open Saturn's directory on your computer.

make

You can optionally append -j4 where 4 is the number of cores your computer has. This may speed up the compiling process.

When finished, an executable will be created in /build/us_pc/.

Clone this wiki locally