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

Discussion in 'NDS - Emulation and Homebrew' started by pistone, Jul 16, 2011.

Jul 16, 2011
  1. pistone
    OP

    Member pistone GBAtemp Advanced Fan

    Joined:
    Feb 18, 2010
    Messages:
    504
    Location:
    in your heart...coz secretly you love me !!!!
    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 [​IMG]
    thats all
    [​IMG]

    p.s a special thnx to raulpica for editing the main title [​IMG]
    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 ? [​IMG]
     
  2. lemmymet

    Banned lemmymet Banned

    Joined:
    Mar 9, 2011
    Messages:
    57
    Location:
    Netherlands
    Country:
    Netherlands
    Wrong section, do you have netbeans with c++ or only java?
     
  3. AlanJohn

    Member AlanJohn くたばれ

    Joined:
    Jan 6, 2011
    Messages:
    3,425
    Location:
    Canada,New Jersey
    Country:
    Ukraine
    Thank you for this great tutorial.
     
  4. pistone
    OP

    Member pistone GBAtemp Advanced Fan

    Joined:
    Feb 18, 2010
    Messages:
    504
    Location:
    in your heart...coz secretly you love me !!!!
    Country:
    Albania
    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
     
  5. chaosdarkneo

    Member chaosdarkneo GBAtemp Advanced Fan

    Joined:
    Sep 13, 2009
    Messages:
    530
    Country:
    United States
    "The mods never help" is not a reason to purposely post it in the wrong forums.
     
  6. FAST6191

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    21,736
    Country:
    United Kingdom
  7. pistone
    OP

    Member pistone GBAtemp Advanced Fan

    Joined:
    Feb 18, 2010
    Messages:
    504
    Location:
    in your heart...coz secretly you love me !!!!
    Country:
    Albania
    hope this will work if i made any error please tell me so i can edit the topic.........im human you know [​IMG]
     
  8. pistone
    OP

    Member pistone GBAtemp Advanced Fan

    Joined:
    Feb 18, 2010
    Messages:
    504
    Location:
    in your heart...coz secretly you love me !!!!
    Country:
    Albania
    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 [​IMG] them
    or at last some [​IMG]
     

Share This Page