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

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

  1. pistone
    OP

    pistone GBAtemp Advanced Fan

    Member
    506
    56
    Feb 18, 2010
    Albania
    in your heart...coz secretly you love me !!!!
    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

    lemmymet Banned

    Banned
    57
    0
    Mar 9, 2011
    Netherlands
    Netherlands
    Wrong section, do you have netbeans with c++ or only java?
     
  3. AlanJohn

    AlanJohn くたばれ

    Member
    3,456
    2,928
    Jan 6, 2011
    Canada,New Jersey
    Thank you for this great tutorial.
     
  4. pistone
    OP

    pistone GBAtemp Advanced Fan

    Member
    506
    56
    Feb 18, 2010
    Albania
    in your heart...coz secretly you love me !!!!
    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

    chaosdarkneo GBAtemp Advanced Fan

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

    FAST6191 Techromancer

    pip Reporter
    23,361
    9,153
    Nov 21, 2005
  7. pistone
    OP

    pistone GBAtemp Advanced Fan

    Member
    506
    56
    Feb 18, 2010
    Albania
    in your heart...coz secretly you love me !!!!
    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

    pistone GBAtemp Advanced Fan

    Member
    506
    56
    Feb 18, 2010
    Albania
    in your heart...coz secretly you love me !!!!
    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]