Eclipse, (using nds plugin)

Using Eclipse as an IDE. (For now on MACOS.)

Download Eclips, version C/C++

you can configure Eclipse to make nds files.

http://tekninjadiaries.blogspot.com/2008/01/setting-up-eclipse-for-nintendo-ds.html

(but this link does not give all information)

Issue: Eclipse does not see the header files ???

Solution: carefully configuring the project properties

(a little bit different for MACOS and XP)

Here for MACOS:

Create a makefile project, using MACOSX GCC

Then project properties — right click on project in Project Explorer —: (follow the pictures)

uncheck Generate makefile automatically

add DEVKITPRO and DEVKITARM manually finding the location in /opt/devkitpro/…

make sure MACOSX GCC is selected

in path and symbols we have a range of tabs to take care of…

these includes are shown in the Project Explorer in the Includes folder, which is not the folder with your header files, this is an extra folder

The source file is made and you have to copy your source files in this folder, which has a green dot on it.

output location for the .nds file

the makefile must be added by hand, and the content copied in it. (I used the makefile from a Programmers NotePad project

make sure this is shown in the Project Explorer, sometimes there is a Default ARM& folder, which is blocking path’s…so shift around until you have this configuration. The include folder has the header files. This folder is also added using Eclipse new folder, than the header files added.

To refresh do clean… under tab project of Eclipse. There will be automatic rebuilding.

My console said:

**** Build of configuration Default for project testingWhileItRains ****

make
main.c
arm-eabi-gcc -MMD -MP -MF /Users/contrechoc/Documents/workspace/testingWhileItRains/build/main.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/Users/contrechoc/Documents/workspace/testingWhileItRains/include -I/Users/contrechoc/Documents/workspace/testingWhileItRains/build -I/opt/devkitpro/libnds/include -I/opt/devkitpro/libnds/include -I/Users/contrechoc/Documents/workspace/testingWhileItRains/build -DARM9 -c /Users/contrechoc/Documents/workspace/testingWhileItRains/source/main.c -o main.o
/Users/contrechoc/Documents/workspace/testingWhileItRains/source/main.c: In function ‘main’:
/Users/contrechoc/Documents/workspace/testingWhileItRains/source/main.c:88: warning: ‘touchReadXY’ is deprecated (declared at /opt/devkitpro/libnds/include/nds/arm9/input.h:94)
/Users/contrechoc/Documents/workspace/testingWhileItRains/source/main.c:21: warning: unused variable ‘test’
linking testingWhileItRains.elf
built … testingWhileItRains.arm9

Nintendo DS rom tool 1.41 – May  1 2009
by Rafael Vuijk, Dave Murphy, Alexei Karpenko
built … testingWhileItRains.nds

(after a few houres of trying to get running with Eclipse….)

—-

Eclipse with C/C++ is called CDT for Windows.

http://snipah.com/

apparently you can also use a prepared nds configuration: (Eclipse->Help->Install New Software-> add website)

This is for Windows (?) I’ll try this on the XP…

The problem with WIndows is the C compiler MINGW or CYGWIN. These have to cooperate with ECLIPSE and that is somehow not easy(?).

help installing the nds plugin for Eclipse:

http://marketplace.eclipse.org/updatesite/help?url=http://dev.snipah.com/nds/updater

well, tried everything for the moment with Eclipse on XP…..:-(((

Programmer’s Notepad works without a flaw, and without any complaining: we’ll stick to Programmers NotePad!

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: