Skip to content

Build Instructions 2022

M4 edited this page Jun 5, 2022 · 1 revision

Linux/WSL

Tested in Debian 11 WSL

Install packages
sudo apt-get install make gcc bison git python2

Install python2 pip and dependencies
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
python2 get-pip.py
python2 -m pip install pillow pypng

Clone repository
git clone --recursive https://github.com/TwitchPlaysPokemon/pokemonAnniversaryRed.git
cd pokemonAnniversaryRed

Have to change the makefile to use python 2 instead of python 3
nano Makefile
change PYTHON := python to PYTHON := python2
save and quit

Clone the specific version of rgbds we need (0.2.2)
git clone -b v0.2.2 https://github.com/gbdev/rgbds.git
cd rgbds
make
cd ..

Finally, build the ROM. We'll temporarily prepend the rgbds 0.2.2 we built to the path instead of installing it (so it doesn't overwrite newer versions). You will need to do this every time you start a new session.

export PATH=./rgbds:$PATH
make

This will build ROMs of Anniversary Red and Anniversary Blue.

Clone this wiki locally