NDS beginner

Wherever you set the DEVKITPRO and DEVKITARM environment variables, you
should also set the PATH environment variable as follows:

export PATH=$PATH:$DEVKITARM/bin

Then it should be able to find “arm-eabi-gcc” etc.

-DarrenOn Sun, 29 Mar 2009 03:14:00 -0400 Alokin Nollahwe <alokin.nollahwe at gmail.com> wrote:

And finally, trying to make the SDL-1.2.9 thing results in this -

mushroom-kingdom:SDL-1.2.9 alokin$ make
arm-eabi-gcc -mthumb -mthumb-interwork -march=armv5te -mtune=arm946e-s
-O2 -Wall -Wwrite-strings -Wpointer-arith -Wconversion -DARM9
-D__NDS__ -I/devkitPro/libnds/include -DENABLE_NDS -DNO_SIGNAL_H
-DDISABLE_THREADS -DPACKAGE=“SDL” -DVERSION=“1.2.9”
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -Iinclude -Isrc -Isrc/audio
-Isrc/cdrom -Isrc/endian -Isrc/events -Isrc/joystick -Isrc/thread/nds
-Isrc/thread -Isrc/timer -Isrc/video -c -o
src/audio/nds/SDL_ndsaudio.o src/audio/nds/SDL_ndsaudio.c
make: arm-eabi-gcc: Command not found
make: *** [src/audio/nds/SDL_ndsaudio.o] Error 127

So I am one step closer, by having devkitpro/arm and libnds installed
correctly, and now I need to install the SDL part correctly, and make
sure that i can make these examples…

On Sun, Mar 29, 2009 at 3:08 AM, Alokin Nollahwe <alokin.nollahwe at gmail.com> wrote:

Also, trying to compile a similar example thing, I get a similar/the
same error -

mushroom-kingdom:parallax2SDL alokin$ make
/Users/alokin/Desktop/NDSSDLexamples.rar:1: *** missing separator. ?Stop.
make: *** [build] Error 2

On Sat, Mar 28, 2009 at 9:52 PM, Alokin Nollahwe <alokin.nollahwe at gmail.com> wrote:

I have successfully set up my environment with devkitARM/Pro, and
libnds compiled in the devkitPro directory. However, trying to make
the template gives me this -

mushroom-kingdom:template alokin$ make
make -C arm7
/Users/alokin/Desktop/libSDLDS061507.rar:1: *** missing separator. ?Stop.
make[1]: *** [build] Error 2
make: *** [arm7/SDLtemplate.elf] Error 2

Any ideas?

On Fri, Mar 27, 2009 at 10:01 PM, Darren <@Darren_Alton> wrote:

Yeah, that’s correct. ?For example, I have them placed on my Linux
machine like so:
?~/hack/devkitPro/devkitARM
?~/hack/devkitPro/libnds
and the following environment variables are exported in my ~/.bashrc:
?DEVKITPRO=~/hack/devkitPro
?DEVKITARM=$DEVKITPRO/devkitARM
I imagine it’s done similarly in OSX since OSX is BSD at heart.

-Darren

On Thu, 2009-03-26 at 14:34 -0400, Alokin Nollahwe wrote:

As it looks here -
http://wiki.devkitpro.org/index.php/Getting_Started/devkitARM -
devkitpro isn’t actually something I download, its just the directory
into which I put devkitarm and libnds. Is this correct?

I will let you know if this works in a bit…

2009/3/26 ?:

Actually, DevKitARM is like a “module” of DevKitPRO. You must set devkitpro
environment pointing to the parent folder (the one with libnds and devkitarm
children) and devkitarm variable to the devkitarm subdir.

Atenciosamente,

Eduardo Costa
Especialista em Desenvolvimento
Gest?o de Integra??o e Arquitetura
TransitTelecom

-----sdl-bounces at lists.libsdl.org escreveu: -----

Para: odubtaig at yahoo.co.uk, “A list for developers using the SDL library.
(includes SDL-announce)”
De: Alokin Nollahwe <alokin.nollahwe at gmail.com>
Enviado por: sdl-bounces at lists.libsdl.org
Data: 26/03/2009 13:19
Assunto: Re: [SDL] NDS beginner

Almost there.

Doing “make” tells me to put devkitarm and devkitpro in my
environment. I successfully put devkitarm in my environment, but I
haven’t found “devkitpro” by itself on the internet. I always get
redirected to download devkitarm…

On Thu, Mar 26, 2009 at 5:40 AM, Paul Duffy wrote:

— On Thu, 3/26/09, Darren <@Darren_Alton> wrote:

From: Darren <@Darren_Alton>
Subject: Re: [SDL] NDS beginner
To: sdl at lists.libsdl.org
Date: Thursday, March 26, 2009, 4:17 AM
Run “make” from the terminal, while you’re in
the directory that contains the Makefile. ?make will find it
and use it to build the project.

-Darren

Is the right answer!

They’ll also need the GNU Compiler Collection for ARM chips if not already
installed. This looks appropriate…

http://www.coderjoe.net/archive/2007/07/23/nintendo-ds-homebrew-tools-of-the-trade/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Esta mensagem foi verificada pelo sistema de antiv?rus e
?acredita-se estar livre de perigo.


Esta mensagem foi verificada pelo sistema de antiv?rus e
?acredita-se estar livre de perigo.

Esta mensagem ? confidencial. Caso a tenha recebido por engano, por favor,
elimine-a imediatamente e notifique seu remetente. Qualquer dissemina??o ou
reprodu??o do seu conte?do ? expressamente proibida e, portanto, ilegal.
This document is intended for the named addressed only and is confidential.
If for any reason you have received this document in error, please destroy
it and advise the sender immediately. The reproduction of this content is
prohibited and illegal.


Esta mensagem foi verificada pelo sistema de antiv?rus e
acredita-se estar livre de perigo.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Darren <@Darren_Alton>

That seemed to work, and I did find the arm-eabi stuff all in the
devkitARM directories. Doing “make” in the SDL-1.2.9 folder with that
path included resulted in several thousands of warnings like this -

src/video/SDL_yuv_sw.c:1029: warning: conversion to ‘Uint32’ from
’int’ may change the sign of the result
src/video/SDL_yuv_sw.c:1031: warning: conversion to ‘Uint32’ from
’int’ may change the sign of the result

Literally thousands of conversions from Uint32, and Uint16 to ints.
These are just warnings though… Anyways, what exactly did "making"
do… when I ran “make install” for libnds, it conveniently put it,
with all its headers and binaries, in the devkitPro directory. I have
no idea what “making” SDL did.

Also, when I try now making one of the sample programs, I get this -
http://pastebin.com/m15b6719

Sorry for all the n00by questions…On Tue, Mar 31, 2009 at 2:15 PM, Darren wrote:

Wherever you set the DEVKITPRO and DEVKITARM environment variables, you
should also set the PATH environment variable as follows:

export PATH=$PATH:$DEVKITARM/bin

Then it should be able to find “arm-eabi-gcc” etc.

-Darren

On Sun, 29 Mar 2009 03:14:00 -0400 Alokin Nollahwe <@Alokin_Nollahwe> wrote:

And finally, trying to make the SDL-1.2.9 thing results in this -

mushroom-kingdom:SDL-1.2.9 alokin$ make
arm-eabi-gcc -mthumb -mthumb-interwork -march=armv5te -mtune=arm946e-s
-O2 -Wall -Wwrite-strings -Wpointer-arith -Wconversion -DARM9
-D__NDS__ -I/devkitPro/libnds/include -DENABLE_NDS -DNO_SIGNAL_H
-DDISABLE_THREADS -DPACKAGE=“SDL” -DVERSION=“1.2.9”
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -Iinclude -Isrc -Isrc/audio
-Isrc/cdrom -Isrc/endian -Isrc/events -Isrc/joystick -Isrc/thread/nds
-Isrc/thread -Isrc/timer -Isrc/video ? -c -o
src/audio/nds/SDL_ndsaudio.o src/audio/nds/SDL_ndsaudio.c
make: arm-eabi-gcc: Command not found
make: *** [src/audio/nds/SDL_ndsaudio.o] Error 127

So I am one step closer, by having devkitpro/arm and libnds installed
correctly, and now I need to install the SDL part correctly, and make
sure that i can make these examples…

On Sun, Mar 29, 2009 at 3:08 AM, Alokin Nollahwe <@Alokin_Nollahwe> wrote:

Also, trying to compile a similar example thing, I get a similar/the
same error -

mushroom-kingdom:parallax2SDL alokin$ make
/Users/alokin/Desktop/NDSSDLexamples.rar:1: *** missing separator. ?Stop.
make: *** [build] Error 2

On Sat, Mar 28, 2009 at 9:52 PM, Alokin Nollahwe <@Alokin_Nollahwe> wrote:

I have successfully set up my environment with devkitARM/Pro, and
libnds compiled in the devkitPro directory. However, trying to make
the template gives me this -

mushroom-kingdom:template alokin$ make
make -C arm7
/Users/alokin/Desktop/libSDLDS061507.rar:1: *** missing separator. ?Stop.
make[1]: *** [build] Error 2
make: *** [arm7/SDLtemplate.elf] Error 2

Any ideas?

On Fri, Mar 27, 2009 at 10:01 PM, Darren wrote:

Yeah, that’s correct. ?For example, I have them placed on my Linux
machine like so:
?~/hack/devkitPro/devkitARM
?~/hack/devkitPro/libnds
and the following environment variables are exported in my ~/.bashrc:
?DEVKITPRO=~/hack/devkitPro
?DEVKITARM=$DEVKITPRO/devkitARM
I imagine it’s done similarly in OSX since OSX is BSD at heart.

-Darren

On Thu, 2009-03-26 at 14:34 -0400, Alokin Nollahwe wrote:

As it looks here -
http://wiki.devkitpro.org/index.php/Getting_Started/devkitARM -
devkitpro isn’t actually something I download, its just the directory
into which I put devkitarm and libnds. Is this correct?

I will let you know if this works in a bit…

2009/3/26 ?:

Actually, DevKitARM is like a “module” of DevKitPRO. You must set devkitpro
environment pointing to the parent folder (the one with libnds and devkitarm
children) and devkitarm variable to the devkitarm subdir.

Atenciosamente,

Eduardo Costa
Especialista em Desenvolvimento
Gest?o de Integra??o e Arquitetura
TransitTelecom

-----sdl-bounces at lists.libsdl.org escreveu: -----

Para: odubtaig at yahoo.co.uk, “A list for developers using the SDL library.
(includes SDL-announce)”
De: Alokin Nollahwe <@Alokin_Nollahwe>
Enviado por: sdl-bounces at lists.libsdl.org
Data: 26/03/2009 13:19
Assunto: Re: [SDL] NDS beginner

Almost there.

Doing “make” tells me to put devkitarm and devkitpro in my
environment. I successfully put devkitarm in my environment, but I
haven’t found “devkitpro” by itself on the internet. I always get
redirected to download devkitarm…

On Thu, Mar 26, 2009 at 5:40 AM, Paul Duffy wrote:

— On Thu, 3/26/09, Darren wrote:

From: Darren
Subject: Re: [SDL] NDS beginner
To: sdl at lists.libsdl.org
Date: Thursday, March 26, 2009, 4:17 AM
Run “make” from the terminal, while you’re in
the directory that contains the Makefile. ?make will find it
and use it to build the project.

-Darren

Is the right answer!

They’ll also need the GNU Compiler Collection for ARM chips if not already
installed. This looks appropriate…

http://www.coderjoe.net/archive/2007/07/23/nintendo-ds-homebrew-tools-of-the-trade/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Esta mensagem foi verificada pelo sistema de antiv?rus e
?acredita-se estar livre de perigo.


Esta mensagem foi verificada pelo sistema de antiv?rus e
?acredita-se estar livre de perigo.

Esta mensagem ? confidencial. Caso a tenha recebido por engano, por favor,
elimine-a imediatamente e notifique seu remetente. Qualquer dissemina??o ou
reprodu??o do seu conte?do ? expressamente proibida e, portanto, ilegal.
This document is intended for the named addressed only and is confidential.
If for any reason you have received this document in error, please destroy
it and advise the sender immediately. The reproduction of this content is
prohibited and illegal.


Esta mensagem foi verificada pelo sistema de antiv?rus e
acredita-se estar livre de perigo.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Darren


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org