Building the Editor¶
Prerequisites¶
Before building the project, make sure you have the following tools installed:
CMake
Ninja
GCC with at least C++23 support
Git LFS
Linux users should follow the conventions of their distribution and package manager for all packages.
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
Git LFS¶
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/).
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 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).