PDA

View Full Version : trying to compile NDS examples



slenkar
13-11-2010, 04:37 PM
when I run the make file in windows it tries to compile a windows binary,

how do I make the examples?

code_glitch
14-11-2010, 10:57 PM
Hmm, this is tricky: an nds ROM (the file you want in the end) is an archive. The things that are compiled are TWO binaries, one for each core of the NDS. An ARM7 core and the ARM9 core. For me that's what put me off development, but if anyone else out there could answer how to get this to work I might get back in the scene. JUst bear that in mind: two cpus and thats something I haven't worked out. Any FPC pros?>> XD

And slenkar, dont give up: where there's a will theres a way (excuse the pun, but both meanings are so true)

slenkar
14-11-2010, 11:11 PM
i got it to work here:
http://www.pascalgamedevelopment.com/showthread.php?5687-Is-it-possibe-to-use-Lazarus-fir-NDS-development


all of the examples from libnds work,

I havent tried doing any programming on it yet though, just trying to get used to freepascal first

Legolas
15-11-2010, 09:32 AM
Hmm, this is tricky: an nds ROM (the file you want in the end) is an archive. The things that are compiled are TWO binaries, one for each core of the NDS. An ARM7 core and the ARM9 core. For me that's what put me off development, but if anyone else out there could answer how to get this to work I might get back in the scene. JUst bear that in mind: two cpus and thats something I haven't worked out. Any FPC pros?>> XD

That is (partially) true: in most cases you don't need to touch the ARM7 core at all (as for the official SDK), because the library provides a default arm7 core. In fact, using the ARM7 core is even discouraged now.
By the way, the compiler itself takes care to call ndstool.exe (the tool that packages arm7 and arm9 binaries), so it spits out a working nds ROM in a single step. :)

slenkar
15-11-2010, 02:50 PM
I tried jedi-sdl for windows and it seemed nice, they say it works on DS, how would you use it?

Legolas
15-11-2010, 03:02 PM
Please, don't (http://devkitpro.org/viewtopic.php?f=6&t=1998&p=4781&hilit=#p4781)!
SDL on nds was only a proof of concept. It works, yeah, but it is darn slow and it has some limitations (touch screen, double screen, sound) making it the worst choice for nds programming.

slenkar
15-11-2010, 03:22 PM
oh ok thanks for the info