Homebrew How to make a simple "hello world" with devkitPro?

pistone

Well-Known Member
OP
Member
Joined
Feb 18, 2010
Messages
503
Trophies
0
Age
35
Location
in your heart...coz secretly you love me !!!!
XP
232
Country
Albania
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
Code:
cd devkitPro
4.extract the devkitARM archive into the devkitPro folder.
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
*** change master00d with your linux username***

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
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
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
smile.gif

thats all
biggrin.gif


p.s a special thnx to raulpica for editing the main title
wub.gif

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 ?
rolleyes.gif
 

pistone

Well-Known Member
OP
Member
Joined
Feb 18, 2010
Messages
503
Trophies
0
Age
35
Location
in your heart...coz secretly you love me !!!!
XP
232
Country
Albania
lemmymet said:
Wrong section, do you have netbeans with c++ or only java?
i have netbean with c++ ,also i know its on the wrong sections but the mod.........the never help so this is staying here :s
and after 2 days iv done the installation of devkitpro on linux i just have to make the tutorial now even thought it will take some time :s
 

chaosdarkneo

Well-Known Member
Member
Joined
Sep 13, 2009
Messages
530
Trophies
0
XP
215
Country
United States
master00d said:
lemmymet said:
Wrong section, do you have netbeans with c++ or only java?
i have netbean with c++ ,also i know its on the wrong sections but the mod.........the never help so this is staying here :s
and after 2 days iv done the installation of devkitpro on linux i just have to make the tutorial now even thought it will take some time :s

"The mods never help" is not a reason to purposely post it in the wrong forums.
 

pistone

Well-Known Member
OP
Member
Joined
Feb 18, 2010
Messages
503
Trophies
0
Age
35
Location
in your heart...coz secretly you love me !!!!
XP
232
Country
Albania
chaosdarkneo said:
master00d said:
lemmymet said:
Wrong section, do you have netbeans with c++ or only java?
i have netbean with c++ ,also i know its on the wrong sections but the mod.........the never help so this is staying here :s
and after 2 days iv done the installation of devkitpro on linux i just have to make the tutorial now even thought it will take some time :s

"The mods never help" is not a reason to purposely post it in the wrong forums.
i never said that i purposely post it in the wrong section
but that i made a mistake and that they forgot ....just like that
i
wub.gif
them
or at last some
tpi.gif
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @Psionic Roshambo, the second one isnt that bad