Windows is supported through two approaches: the Windows Subsystem for Linux (WSL) and MSYS2. WSL2 is the recommended path because it provides a full Linux kernel and the widest compatibility with the build toolchain.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/n64decomp/sm64/llms.txt
Use this file to discover all available pages before exploring further.
Once your Linux environment is set up, the actual build steps are identical to the Linux build guide. This page covers only the Windows-specific setup.
Option 1: WSL (recommended)
WSL lets you run a Linux distribution directly on Windows without a virtual machine. WSL2 is strongly preferred over WSL1.Enable WSL and install a distribution
Follow the official Microsoft guide to install WSL2 and a Linux distribution of your choice:Windows Subsystem for Linux Installation Guide for Windows 10The recommended distributions are Debian or Ubuntu 18.04. Both are available in the Microsoft Store after WSL is enabled.For Windows 11 and recent Windows 10 builds, you can install WSL2 with a single command in an elevated PowerShell:Then install your preferred distribution:
Confirm you are running WSL2
In PowerShell, verify the WSL version assigned to your distribution:The
VERSION column should show 2. If it shows 1, upgrade with:Open your Linux shell
Launch your installed distribution from the Start menu or by running
wsl in PowerShell. All subsequent steps run inside this Linux shell.Follow the Linux build instructions
Inside your WSL shell, follow the Linux build guide for your chosen distribution to install dependencies, clone the repository, place the baserom, and run
make.Your Windows drives are mounted under
/mnt/ inside WSL (e.g., C:\ is /mnt/c/). Use these paths to copy the baserom from your Windows filesystem into the WSL environment.Option 2: MSYS2
MSYS2 provides a Unix-like shell and package manager (pacman) on native Windows. It is a supported alternative if you prefer not to use WSL.Install MSYS2
Download and run the MSYS2 installer from msys2.org. Follow the on-screen instructions to complete the installation.
Update the package database
Open the MSYS2 MinGW 64-bit shell and update all packages:Close and reopen the shell if prompted, then run:
Install build dependencies
Install the required tools through pacman. You will need a MIPS cross-compiler toolchain appropriate for your MSYS2 environment, along with Python and the base development tools:Install the MIPS binutils cross-compiler package matching your MSYS2 environment. Refer to the MSYS2 package repository for the current package name.
Troubleshooting
WSL1 build fails or stalls
WSL1 build fails or stalls
WSL1 has known incompatibilities with the build toolchain, especially on newer Ubuntu releases. Upgrade to WSL2 (see step 2 above) or switch to Debian, which tends to be more stable under WSL1.
Cannot find the baserom from inside WSL
Cannot find the baserom from inside WSL
Windows drives are accessible inside WSL at
/mnt/<drive-letter>/. For example, a file at C:\Users\Name\Downloads\sm64.z64 can be copied with:Build errors about path length
Build errors about path length
Ensure the full path to your cloned repository (as seen inside the Linux shell) does not exceed 255 characters. Clone closer to the filesystem root if needed.