gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Please help me set up on OS X

#109031 - mellyshum - Tue Nov 14, 2006 6:56 am

Most of the tutorials for setting up your system for DS development are geared toward developing on Windows, but for a short time the only OS I'll have access to is OS X. I've gone through a few tutorials, but I've run into some snags so I need to make sure I'm doing everything correctly.


=======================
Step 1: download devkitpro.
- I downloaded devkitARM_r19b-osx.zip. It's an installer and everything went smoothly.

Step 1a: download devkitpro examples
- I downloaded these because a tutorial insinuated that a good default make file was in these? Seemed like a good idea to look at some examples anyway.

Step 2: set paths?
- I'm not really sure how to do this... I went into the terminal and wrote:

DEVKITPRO=/opt/local/devkitpro
DEVKITARM=/opt/local/devkitpro/devkitARM
PATH=/opt/local/devkitpro/devkitARM/bin

Step 3: try compiling an example
- tried compiling /nds-examples-20060817/templates/combined
- got an error

make -C arm7
template.d:1: *** target pattern contains no `%'. Stop.
make[1]: *** [build] Error 2
make: *** [arm7/combined.elf] Error 2

========================

As you can see I feel like I'm way over my head. What should I do here?

#109054 - FlyingSquirrl - Tue Nov 14, 2006 4:40 pm

To set those paths, you may have to write "export" before the equalities.

Also, I would just try typing "make" rather than make -C arm.

(I'm using OS X with no problem.)

#109055 - FlyingSquirrl - Tue Nov 14, 2006 4:41 pm

Also, make sure that you

export PATH=$PATH:/new/path/to/add

so that the path grows. Include $PATH (the old path) in the new path.

#109066 - mellyshum - Tue Nov 14, 2006 8:14 pm

Ok I used

export PATH=$PATH:/opt/local/devkitpro/devkitARM/bin

and make and I got the same error. Honestly I don't even know what I'm doing :(

#109075 - ecurtz - Tue Nov 14, 2006 9:46 pm

It sounds like the "template" project you're trying to compile might actually just be a template and not contain any source files. Try finding something billed as a sprite demo, 3D sample, or the like.

#109076 - 0xtob - Tue Nov 14, 2006 9:47 pm

Open a terminal, type "vi ~/.bashrc<enter>" (No, don't type "<enter>", but press the enter key). Press "i", go to the last line (if there are any lines at all), and then paste
Code:

export DEVKITPRO=/opt/local/devkitpro
export DEVKITARM=$DEVKITPRO/devkitARM
export PATH=$DEVKITARM/bin:$PATH
into the editor. Now press "<esc>:wq<enter>"
Back in the terminal, type "source ~/.bashrc".
Then you should be set up.

#109326 - mellyshum - Fri Nov 17, 2006 7:43 am

that last tip worked thank you very much.