-
Notifications
You must be signed in to change notification settings - Fork 114
Building on Windows
higan is only compatible with the GCC and Clang compilers, not with Visual Studio. The easiest and most reliable way to get a compatible toolchain is using the MSYS2 environment.
-
Go to https://www.msys2.org/ and download the installer
- There's an "Installation" heading on the front page
with a link to
msys2-x86_64-whatever.exe
which is the thing you want
- There's an "Installation" heading on the front page
with a link to
-
When the download is complete, run the installer
-
Hit "Next" all the way through, the defaults are fine
-
At the end, you'll be given the option to "Run MSYS2 64bit now" — do it
-
When the MSYS2 terminal appears, update all the installed packages to the latest versions:
pacman -Syu
-
Close the MSYS2 MSYS window, run it again from the Start menu, and run the update command again
- Repeat until there's no updates left to install
-
Install the GCC toolchain compatible with Windows:
pacman -S mingw-w64-x86_64-toolchain
-
(Optional) If you want to keep up-to-date with development, or even contribute, you'll want to install the Git version control system too:
pacman -S git
-
From the Start menu, open the "MSYS2 MinGW 64-bit" terminal (not the "MSYS2 MSYS" terminal used for installing/updating packages)
-
Change to the directory where you've put the higan source code
- Hint: You can type
cd
in the terminal, then hit space, then drag and drop the folder containing the higan source code onto the terminal (which types in the correct path), then hit Enter in the terminal to change to that directory
- Hint: You can type
-
Build the executables:
mingw32-make -C icarus mingw32-make -C higan-ui
-
Package everything ready to be used:
# Delete previous build results rm -rf build # A fresh directory for a fresh build mkdir -p build # Stage everything into the build directory mkdir -p build/Systems cp -ar higan-ui/out/* build/ cp -ar icarus/out/* build/ cp -a higan/System build/Templates cp -a icarus/Database build/ cp -a icarus/Firmware build/ cp -ar extras/* build/
-
Run
build\higan-ui.exe
to try it out.