Building the Editor¶
Below are instructions to build the editor on either Linux, Windows, or MacOS.
Note that due to a small dependency on libdragon, GCC is required for now. On Windows, that means building via MSYS2.
Prerequisites¶
Before building the project, make sure you have the following tools installed:
CMake 3.28+
Ninja
GCC and G++ with at least C++23 support
Git and Git-LFS
Python 3+
Linux¶
Linux users should follow the conventions of their distribution and package manager for all prerequisites listed above.
Additionally, Linux users may require installing extra development packages to be able to build SDL3 (which is a dependency of Pyrite64). Please read the SDL documentation for more information.
Windows¶
UCRT64 environment, and install the UCRT-specific packages for the dependencies:pacman -S mingw-w64-ucrt-x86_64-gcc
pacman -S mingw-w64-ucrt-x86_64-cmake
pacman -S mingw-w64-ucrt-x86_64-ninja
pacman -S mingw-w64-ucrt-x86_64-python
MacOS¶
TODO: to be added
Git LFS¶
Installation¶
On some Linux distributions, Git LFS may require adding an external repository to your package manager per these instructions.
Windows users should already have Git LFS installed as part of Git for Windows. You can verify this by running:
git lfs version
If no version is shown, install Git LFS from their website (https://git-lfs.com/).
Setup¶
After installing Git LFS, initialize it by running:
git lfs install
If you already cloned the pyrite64 repository before initalizing Git LFS, navigate to the repository root folder and run:
git lfs update
Build Instructions¶
After cloning the pyrite64 repository, make sure to fetch all the submodules:
git submodule update --init --recursive
To configure the project, run:
cmake --preset <preset>
After that, and for every subsequent build, run:
cmake --build --preset <preset>
Where <preset> is replaced with the CMake preset name corresponding to your system:
linux-releasefor Linux systems, release versionlinux-debugfor Linux systems, debug versionwindows-gcc-releasefor Windows systems with MSYS2, release versionwindows-gcc-debugfor Windows systems with MSYS2, debug versionmacos-releasefor MacOS systems, release version
pyrite64 (or pyrite64.exe) should be placed in the root directory of the repo../data and ./n64 directories must stay next to it.To open the editor, simply execute ./pyrite64 (or .\pyrite64.exe).