Setting up programming environment

If you successfully installed Linux you can start setting up programming environment. Download these files:

1.devkitARM_r26-i686-linux.tar.bz2
2.gba-examples-20090222.tar.bz2
3.libgba-20090222.tar.bz2

If you are using Firefox, the default download folder is in /home/<user>/Desktop e.g. /home/special/Desktop. Now unpack them to folder /devkitpro. And becouse that folder don’t exist, create it with:

$ cd /
$ sudo mkdir devkitpro

Every time you use sudo command you have to also type your user password, the same used for login into the system. Command sudo gives you administrative privileges. Now go into /devkitpro and create folders libgba and examples. In terminal go to libgba folder and execute

$ tar -jxvf <filename>

eg. tar – jxvf ~/Desktop/libgba-20090222.tar.bz2

This will unpack all files into current folder. ~/ means home directory. Next do the same with gba-examples-20090222.tar.bz2 and devkitARM_r26-i686-linux.tar.bz2. Last one can be unpack direct to devkitpro folder.

Setting up system variables

$ vi ~/.bashrc
go to end of file
press key “a”
type this:

export DEVKITPRO=/devkitpro
export DEVKITARM=$DEVKITPRO/devkitARM

press Esc
type “ZZ” to save  and press Enter

Compiling template

Go to /devkitpro/examples/template and type $ make
You will see these lines:

built … template_mb.gba
ROM fixed!

Now you have template_mb.gba file that can be run in emulator or GBA console.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.