How to compile d2x source code - davebaol/d2x-cios GitHub Wiki

How to compile d2x source code

This is a quick guide which helps you to compile d2x-cios correctly.

Windows

REQUIREMENTS:

PREPARATION:

At first use the devkitpro installer to install devkitARM and devkitPPC. After installing devkitPro, you will need to install the older devkitARM r32, move the devkitARM_r32-win32.exe to "C:\devkitpro" delete the devkitARM folder, start the devkitARM_r32-win32.exe and extract. Then install the subversion client, after installing open a command prompt and type "svn checkout http://d2x-cios.googlecode.com/svn/trunk/ d2x-cios-read-only". After this you should have a "d2x-cios-read-only" in the directory where you started the command prompt. Then move the "stripios.exe" and the "awk.exe" from "gawk-3.1.6-1-bin.zip\bin" to the "d2x-cios-read-only" folder.

COMPILE:

Open a command prompt in "d2x-cios-read-only" and type "maked2x -h" to see the help. If the source version is for example v6 final type "maked2x 6 final". Then it should compile d2x v6 final. The compiled files can be found in the "build" folder.

Linux

REQUIREMENTS:

  • devkitARM r32 x86
  • Stripios from here
  • Gawk using "sudo apt-get install gawk".

PREPARATION:

Create a "devkitpro" folder on your linux drive root and extract the "devkitARM" folder from the devkitARM archive downloaded into it. Now you need to edit the file ".bashrc", it's in your home folder. Add these lines into it:

export DEVKITPRO=$home/devkitpro

export DEVKITARM=$DEVKITPRO/devkitARM

Save the file. Open a terminal and type in "source ~/.bashrc" then "svn checkout http://d2x-cios.googlecode.com/svn/trunk/ d2x-cios-read-only". Go into the "d2x-cios-read-only" folder, extract the "Makefile" and "stripios" file into it, and make the "stripios" executable using a terminal and the command "chmod +x stripios".

COMPILE:

Open a terminal in the "d2x-cios-read-only" folder and type "maked2x.sh -h" to see the help. If the source version is for example v6 final type "maked2x.sh 6 final". Then it should compile d2x v6 final. The compiled files can be found in the "build" folder.