IMPORTANT: THIS HOWTO IS OUT OF DATE. IT IS BEING KEPT FOR ARCHIVAL PURPOSES ONLY.
For the up-to-date howto and script, click here.
Special thanks to ndsgr, this HOWTO is adapted from his (http://blog.dev-scene.com/ndsgr/devk...in-ubuntu-edgy)
This HOWTO is for:
-Those who want to quickly install the build tools and libraries necessary to begin Nintendo DS homebrew development.
This HOWTO is not for:
-Those who want to quickly install the build tools and libraries necessary to begin Wii homebrew development.
-Those who want to learn how to set up a particular IDE for DS development (if you know of any such guide, please let me know about it!).
While there are a few decent guides for developing DS homebrew software with Linux out there, few make the installation process simple so you can just get to the fun stuff. I've written a script and this short HOWTO to get you started quickly.
The script will download and install the following into a directory called "devkitpro" in your home directory:
With the use of my script, the installation process should be relatively painless. Emphasis on should.
When it isn't, please report the errors/problems/annoyances to me via email (see the top of attached script for my email address).
The script generates a log file with the name "devkitpro-install.log" in the current directory; please send me this file if you encounter any problems.
Requirements
Some packages you may not already have will be required (let me know if you discover that I'm missing something):
Code:
$ sudo apt-get update
$ sudo apt-get install wine p7zip unzip unrar
--
If you are updating or reinstalling devkitpro, I would recommend uninstalling before following these steps.
1) Download the attached script and make sure you can execute it:
Code:
$ chmod a+x devkitpro.sh
2) Run the script:
If the script completes without any issues, you will see this text, followed by several other lines:
Code:
-> devkitPRO installed successfully!
Again, in the event that this fails, email me the file "devkitpro-install.log" and a description of what happened, if possible.
3) Back up your original ~/.bashrc file:
Code:
$ cp ~/.bashrc ~/.bashrc.backup
4) As the script will tell you once it has finished, add the lines to the end of your .bashrc file (be sure to back it up first):
(NOTE: if you modify the script because you want to install the files somewhere other than ~/devkitpro, you should copy the lines from the script's output. Otherwise, the following default lines will suffice.)
Code:
export DEVKITPRO=/home/louman/devkitpro # change this to reflect your home directory
export DEVKITARM=$DEVKITPRO/devkitARM
export PAPATH=$DEVKITPRO/PAlib/lib
export NOCASHGBA=$DEVKITPRO/nocashgba
alias nds="wine $NOCASHGBA/NO\\\$GBA.EXE"
5) Load these new settings like so:
6) Compile an example DS program and run it with the emulator to see if everything is set up properly:
Code:
$ cd $DEVKITPRO/uLibrary/Examples/Example06
$ make
$ nds Example06.nds
That's it! Now look through some of the libnds, uLibrary, and PAlib examples, and read some tutorials:
To Uninstall
1) Remove the devkitPRO directory:
2) Clean up downloaded files:
Code:
$ rm -r ~/.devkitpro_cache
3) (Optional) Recover your original ~/.bashrc file
Code:
$ cp ~/.bashrc.backup ~/.bashrc
Bookmarks