- 5
- Posts
- 9
- Years
- Seen Mar 14, 2021
Introduction
Installing devkitARM
Setting up the environment
You have successfully set up a working environment.
Spoiler:
I will be making two folders in the ~/Desktop (hope you know relative and absolute path in Linux):
- pokemon_ruby
- agbcc
Code:
cd Desktop
mkdir pokemon_ruby
mkdir agbcc
Installing devkitARM
Spoiler:
There is a perl script available that will automatically install it in Linux:(can't post link, google it)
Save it in a file with 'pl' extension (say ~/Desktop/script.pl) and run following commands:
This will start the installation process.
After devkitARM is installed, you need to set two environment variables: DEVKITPRO and DEVKITARM. Run the following commands in your terminal:
Save it in a file with 'pl' extension (say ~/Desktop/script.pl) and run following commands:
Code:
chmod +777 script.pl
perl script.pl
After devkitARM is installed, you need to set two environment variables: DEVKITPRO and DEVKITARM. Run the following commands in your terminal:
Code:
echo "export DEVKITPRO=/opt/devkitpro" >> ~/.bashrc
echo "export DEVKITARM=/opt/devkitpro/devkitARM" >> ~/.bashrc
source ~/.bashrc
Setting up the environment
Spoiler:
Go to pokemon_ruby folder and get the disassembly code:
Get the agbcc compiler:
Then, in the pokemon_ruby directory, build the tools and then the rom:
You should see the following message as the last line after building the ROM:
pokeruby.gba: OK
Code:
cd pokemon_ruby/
git init
git remote add origin https://github.com/pret/pokeruby.git
git pull origin master
cd ..
Code:
cd agbcc/
git init
git remote add origin https://github.com/pret/agbcc.git
git pull origin master
./build.sh
./install.sh ~/Desktop/pokemon_ruby
cd ..
Code:
cd pokemon_ruby/
./build_tools.sh
make
You should see the following message as the last line after building the ROM:
pokeruby.gba: OK
You have successfully set up a working environment.