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 > I would like to help in getting started with DSDev [Renamed]

#55766 - Linkiboy - Sat Oct 01, 2005 8:36 pm

I just decided to start to get into the homebrewing scene, and now that I've read the "Everything you need to know" sticky, now what? I know some C++ , but what tool should I use for DS development is something I can't figure out. Help is appreciated...

Also, what should I program first.(and don't say something simple, because I know that, be specific.)

#55767 - Spaceface - Sat Oct 01, 2005 8:38 pm

Try a search in this forum on tutorial and you'll find doublec's tutorials.. those are great

#55768 - Linkiboy - Sat Oct 01, 2005 9:05 pm

Oops, forgot about the search option, thank you though.

#55771 - Maverick - Sat Oct 01, 2005 11:08 pm

Ive got some tutorials online now. I need feedback to improve them though. You can find them at http://downtou.ne1.net/ in the ds section. Ill get on with them once i know what people want to see.

#55772 - Wizad - Sat Oct 01, 2005 11:46 pm

Maverick wrote:
Ive got some tutorials online now. I need feedback to improve them though. You can find them at http://downtou.ne1.net/ in the ds section. Ill get on with them once i know what people want to see.


hey Maverick your website is really great! I hope you'll keep working on it! If you need any help with the design of your website, I can help.

#55773 - Maverick - Sat Oct 01, 2005 11:51 pm

Thank you

And thank you very much for the offer, ive got many designs in my head, its just finding the time to implement them at the moment, well have to see where it goes.

#55774 - natrium42 - Sun Oct 02, 2005 1:28 am

Maverick, some of your pages use "\" instead of "/" when linking. This doesn't seem to work with Firefox. For example, I cannot go to the DS page without correcting the URL in the URL bar.
_________________
www.natrium42.com

#55792 - wintermute - Sun Oct 02, 2005 9:25 am

In tut1 it would be better if you pointed here -> http://www.devkitpro.org/setup.shtml and recommended the installer package for windows. The installer sets up an environment which will allow people to create projects that work on any host platform supported by the tools.

In Tut 3 it's probably better to start with the base arm9 template found in the DS example code and ignore the arm7 for now. Using bat files is an extremely bad way to build a project. The template includes a project file for pn2 and allows the user to simply press ALT 1 to build ( or Tools->Make ). Notepad is *not* a suitable editor for programming.

Using your own headers in a tutorial rather than the libnds headers isn't really a good idea. Most people using devkitARM are going for the installer package on windows and using the provided libraries which are improving daily.

#55796 - Maverick - Sun Oct 02, 2005 11:02 am

Sorry natrium, that was just me being lasy, the index and ds sections have now been changed.

Wintermute, I will check the installer out, i have yet to use it myself, the reason i am using bat for now is so that anyone can come along and pick up the basics, does the installer set up minsys too? If so, this would be simple enough for anyone to do and i would change methods, otherwise, i may include both options so that the visitors to the site can choose.

Thanks for the feedback and i will take the advice into account next time i update.

#55798 - wintermute - Sun Oct 02, 2005 11:12 am

Yes, the installer installs msys - it pretty much gives the user a stable working environment including a basic editor.

bat files are extremely problematic and not suitable for use with gnu tools. Amongst other things the only way to guarantee a working build with bat files is to rebuild completely from scratch every time you want to compile. .bat files are also not suitable for any system not running windows ( while the majority of users are indeed running windows a significant number are working on linux and os x)

#55799 - Maverick - Sun Oct 02, 2005 11:31 am

Thankyou

I completely agree, but wanted to keep it simple for all readers. Now that i know the installer includes msys, i will most likely include this method and remove bats.

Many thanks

#56713 - Linkiboy - Mon Oct 10, 2005 7:04 pm

I keep gettign errors, even though I do exactly what the directions said.

#56715 - tepples - Mon Oct 10, 2005 7:06 pm

Please paste the errors so that we know what you're talking about in order to be able to fix them.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#56737 - Linkiboy - Mon Oct 10, 2005 11:48 pm

The makefile is this:

# Makefile for demo1.nds
# chris.double@double.co.nz
NDSLIB_INCLUDE=$(DEVKITPRO)/libnds/include
NDSLIB_LIB=$(DEVKITPRO)/libnds/lib

all: demo1.nds.gba

arm7_main.o: arm7_main.cpp
arm-elf-g++ -g -Wall -O2 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -I$(NDSLIB_INCLUDE) -DARM7 -c arm7_main.cpp -oarm7_main.o

arm7.elf: arm7_main.o
arm-elf-g++ -g -mthumb-interwork -mno-fpu -specs=ds_arm7.specs arm7_main.o -L$(NDSLIB_LIB) -lnds7 -oarm7.elf

arm7.bin: arm7.elf
arm-elf-objcopy -O binary arm7.elf arm7.bin

arm9_main.o: arm9_main.cpp
arm-elf-g++ -g -Wall -O2 -mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -I$(NDSLIB_INCLUDE) -DARM9 -c arm9_main.cpp -oarm9_main.o

arm9.elf: arm9_main.o
arm-elf-g++ -g -mthumb-interwork -mno-fpu -specs=ds_arm9.specs arm9_main.o -L$(NDSLIB_LIB) -lnds9 -o arm9.elf

arm9.bin: arm9.elf
arm-elf-objcopy -O binary arm9.elf arm9.bin

demo1.nds: arm7.bin arm9.bin
ndstool -c demo1.nds -9 arm9.bin -7 arm7.bin

demo1.nds.gba: demo1.nds
dsbuild demo1.nds -o demo1.nds.gba

clean:
rm -f *.bin
rm -f *.elf
rm -f *.o
rm -f *~


Error is this:

> "make"
arm-elf-g++ -g -Wall -O2 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -I/c/devkitPro/libnds/include -DARM7 -c arm7_main.cpp -oarm7_main.o
"make": arm-elf-g++: Command not found
"make": *** [arm7_main.o] Error 127

> Process Exit Code: 2

#56738 - doublec - Mon Oct 10, 2005 11:57 pm

You don't appear to have your path set up correctly to include the devkitarm executable files. Something like:

PATH=c:\devkitpro\devkitarm\bin;%PATH%

#56739 - Linkiboy - Tue Oct 11, 2005 12:12 am

mind tweaking the code to make it work I *think* i get what youre saying, but its still not working

#56741 - Cidrick - Tue Oct 11, 2005 12:22 am

http://www.devkitpro.org/setup.shtml

You have to set an environmental variable in Windows to let it know where the devkit is.