Ok so this is a simple tutorial to install devkitpro on linux and to edit/compile the files ,on this tutorial i will be on ubuntu linux distro
first of all i assume that you know some basic things on terminal for example copy/paste make directorys ect even thought i made this tutorial as simple as possible
you have already installed your favorite C/++ texteditor ,for example mine is the ubuntu default ext editor,
now lets install devkitPRO
1.first Go here !
2.enter on folders and download the files (not the source one! )
1.devkitARM (x86_64-linux for 64 bit systems or i686-linux for 32 bit systems)
i have x86 so the files by the time of this tutorial is (devkitARM_r34-x86_64-linux.tar.bz2)
2.dswifi (dswifi-0.3.13.tar.bz2)
3.libnds (libnds-1.5.2.tar.bz2)
4.libfat-nds (libfat-nds-1.0.10.tar.bz2)
5.maxmod-nds (maxmod-nds-1.0.6.tar.bz2)
6.default arm7 (default_arm7-0.5.21.tar.bz2)
also download the
7.examples for nds ( nds-examples-20110703.tar.bz2 )
and then
1.go to your home folder
2.make a new folder and rename it devkitPro
3.copy/paste your 7 files you just downloaded and put them on the devkitPro folder
5.open terminal and type
4.extract the devkitARM archive into the devkitPro folder.
so just type this comand into the terminal.
5.open the folder devkitPro and make a new folder called libnds
6.now extract the files on the libnds directory
7.After setting up the files you need to set some global paths
Set Paths: (This just needs to be once, as long you don't change the path of devkitPro you dont need to do this again )
Open a terminal and type:
A texteditor should pop up
8.copy and paste this into the texteditor
*** change master00d with your linux username***
9.Save and close the file, then run on terminal
10.To check if the path is set, enter this in a console:
This should print out the path to devkitPro
And then it hopefully works …
now lets compile/run the first "hello world"
1.extract the nds-examples-20110703.tar.bz2 into the devkitPro
with --right click --extract here
2.now open terminal and type
now on terminal type
and then go to
home folder
----devkitPro
------nds-examples-20110703
--------hello_world
and then double click
hello_world.nds
for editng the source file go
home folder
----devkitPro
------nds-examples-20110703
--------hello_world
----------source
and then open the file main.cpp with your favorite editor
thats all
p.s a special thnx to raulpica for editing the main title
p.s.s please raulpica can you edit the main title another time to make it:
How to make a simple "hello world" with devkitPro in linux
pleaseeeeeeeeee ?
first of all i assume that you know some basic things on terminal for example copy/paste make directorys ect even thought i made this tutorial as simple as possible
you have already installed your favorite C/++ texteditor ,for example mine is the ubuntu default ext editor,
now lets install devkitPRO
1.first Go here !
2.enter on folders and download the files (not the source one! )
1.devkitARM (x86_64-linux for 64 bit systems or i686-linux for 32 bit systems)
i have x86 so the files by the time of this tutorial is (devkitARM_r34-x86_64-linux.tar.bz2)
2.dswifi (dswifi-0.3.13.tar.bz2)
3.libnds (libnds-1.5.2.tar.bz2)
4.libfat-nds (libfat-nds-1.0.10.tar.bz2)
5.maxmod-nds (maxmod-nds-1.0.6.tar.bz2)
6.default arm7 (default_arm7-0.5.21.tar.bz2)
also download the
7.examples for nds ( nds-examples-20110703.tar.bz2 )
and then
1.go to your home folder
2.make a new folder and rename it devkitPro
3.copy/paste your 7 files you just downloaded and put them on the devkitPro folder
5.open terminal and type
Code:
cd devkitPro
so just type this comand into the terminal.
Code:
tar -xjf devkitARM_r34-x86_64-linux.tar.bz2
5.open the folder devkitPro and make a new folder called libnds
6.now extract the files on the libnds directory
Code:
tar -xjf libnds-1.5.2.tar.bz2 -C ./libnds
Code:
tar -xjf dswifi-0.3.13.tar.bz2 -C ./libnds
Code:
tar -xjf libfat-nds-1.0.10.tar.bz2 -C ./libnds
Code:
tar -xjf maxmod-nds-1.0.6.tar.bz2 -C ./libnds
Code:
tar -xjf default_arm7-0.5.21.tar.bz2 -C ./libnds
7.After setting up the files you need to set some global paths
Set Paths: (This just needs to be once, as long you don't change the path of devkitPro you dont need to do this again )
Open a terminal and type:
Code:
gedit ~/.bashrc
A texteditor should pop up
8.copy and paste this into the texteditor
Code:
export DEVKITPRO=~/home/master00d/devkitPro
export DEVKITARM=~/home/master00d/devkitPro/devkitARM
9.Save and close the file, then run on terminal
Code:
source ~/.bashrc
10.To check if the path is set, enter this in a console:
Code:
env | grep DEVKITPRO
And then it hopefully works …
now lets compile/run the first "hello world"
1.extract the nds-examples-20110703.tar.bz2 into the devkitPro
with --right click --extract here
2.now open terminal and type
Code:
cd devkitPro
cd nds-examples-20110703
cd hello_world
make
now on terminal type
Code:
sudo apt-get install desmume
and then go to
home folder
----devkitPro
------nds-examples-20110703
--------hello_world
and then double click
hello_world.nds
for editng the source file go
home folder
----devkitPro
------nds-examples-20110703
--------hello_world
----------source
and then open the file main.cpp with your favorite editor
thats all
p.s a special thnx to raulpica for editing the main title
p.s.s please raulpica can you edit the main title another time to make it:
How to make a simple "hello world" with devkitPro in linux
pleaseeeeeeeeee ?