Skip to content

Compiling on Linux

Llennpie edited this page Sep 9, 2022 · 5 revisions

Dependencies

This guide has been tested with Ubuntu 20.04 only. For dependencies of other platforms, go here. You will also need curl.

Ubuntu

sudo apt install build-essential git python3 libglew-dev libsdl2-dev curl libcurl4-gnutls-dev libjsoncpp-dev

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. Then run:

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/.


NOTE: If you get a missing #include <json/json.h> error, run this command:

sudo ln -s /usr/include/jsoncpp/json/ /usr/include/json

Then run make once again.

Clone this wiki locally