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 > Precompiled SDL, zlib, libpng, etc,.. libraries?

#137728 - monito - Wed Aug 15, 2007 1:40 am

Hi, i want to start coding for the ds, I downloaded the latest devkitPRO (devkitARM r12), installed it with no problems, but I can't compile the libraries (SDL_image, SDL_gfx, SDL_ttf, etc) from the GPF`s Development Site. I have just managed to compile the zlib library so far... so could anyone share a precompiled version of those? Or maybe i'm doing something wrong...

For example, I extract the SDL-1.2.9 rar in the msys/home/Admin folder,
open the msys.bat, type 'cd SDL-1.2.9' and 'make -f makefile.ds' like the readme says, but it stops with some errors... maybe there is something wrong with the makefiles?

Well hope anyone can help, thanks in advance!!!

#137758 - tepples - Wed Aug 15, 2007 1:14 pm

monito wrote:
Hi, i want to start coding for the ds, I downloaded the latest devkitPRO (devkitARM r12)

You have an old version. Have you tried installing devkitARM r20 using the devkitPro Updater?

Quote:
For example, I extract the SDL-1.2.9 rar in the msys/home/Admin folder,
open the msys.bat, type 'cd SDL-1.2.9' and 'make -f makefile.ds' like the readme says, but it stops with some errors...

Do you know how to copy and paste the errors from the MSYS window into a post?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#137760 - Sektor - Wed Aug 15, 2007 1:43 pm

Some of those libs have old makefiles, you will have to search and replace arm-elf with arm-eabi. Heh and yes devkitARM r12 is far from the latest, it's ancient. DKA r20 is the current version.
_________________
GTAMP.com/DS

#137768 - monito - Wed Aug 15, 2007 3:01 pm

UPS, my mistake, it is version r20. And thanks I'll try playing with the makefiles!!

#137777 - GPFerror - Wed Aug 15, 2007 5:53 pm

yeah I need to update all the libs makefiles still,

Might try libsdl.org for version SDL 1.2.12 which now Unofficial support for Nintendo DS :)

for streaming sound you need the arm7 template code that comes with my SDL1.2.9 release from my site though.

Let me know which Makefile need to be updated and preferable send the fixed ones to me :)

Troy(GPF)
http://gpf.dcemu.co.uk

#137792 - Diddl - Wed Aug 15, 2007 7:46 pm

@GPFerror

Many thanks for your SDL port! I'm working on a ROTT port (rise of the triad) and it would by impossible (for me) without your SDL support.


One question: you have also ported this SDL-mixer for NDS. is it capable to play this midi files and/or this adlib music files?

I see music support for WinRott by using SDL-Mixer. But there are also some direct-x 8 calls and direct-music calls in it.

#137816 - monito - Thu Aug 16, 2007 3:21 am

Hello again, and thanks for your answers!!

I've downloaded the latest version of SDL (1.2.12), type exactly what the readme.nds says, but keep getting this:

Code:
$ cp include/SDL_config_nds.h include/SDL_config.h
$ make -f makefile.ds
arm-eabi-gcc -mthumb -mthumb-interwork -march=armv5te -mtune=arm946e-s -O2 -Wall -Wwrite-strings -Wpointer-arith -DARM9 -D__NDS__ -I/d/devkitPro/libnds/include -Iinclude   -c -o src/SDL.o src/SDL.c
make: arm-eabi-gcc: Command not found
make: *** [src/SDL.o] Error 127


maybe i'm missing something from the installation process? I've checked the DEVKITPRO and DEVKITARM environment variables and they are something like this:

DEVKITPRO /d/devkitPro
DEVKITARM /d/devkitPro/devkitARM

sorry for being such a novice here, I've been programming for the psp and never found a lot of trouble in the pspsdk setup process. Well hope anyone can helps : ). And thanks again for your fast answers!!

#137819 - GPFerror - Thu Aug 16, 2007 3:57 am

need to add /d/devkitPro/devkitARM/bin to your PATH

in msys
export PATH=/d/devkitPro/devkitARM/bin:$PATH
in dos
set PATH=/d/devkitPro/devkitARM/bin;%PATH%

or add it to your windows environment path settings.

Troy(GPF)

#137836 - monito - Thu Aug 16, 2007 2:12 pm

Thanks a lot, I have just compiled SDL-1.2.12 with no problems : ). Will try now with SDL_mixer, SDL_image and SDL_ttf!!

#138309 - Diddl - Wed Aug 22, 2007 8:33 pm

I have compiled succesfully all SDL libs of GPF with r20: sdl, sdl_flic, sdl_gfx, sdl_image, freetype, SFont, sdl_mixer, timidity, mikmod, SDL_ttf

thanks to GPF!! it works great!