Iniciar sesión

Ver la versión completa : existe algun pack con las SDL(completas image y mixer) para GP2x?



the_goulin
29/12/2005, 15:54
Hola,

pos eso que cuando compilo me dice que no puede enlazar muchas funciones :P

sabeis si existe algun pack que esten todas listas para instalar?

Saludillos,
Goulin

Puck2099
29/12/2005, 16:03
Hola,

pos eso que cuando compilo me dice que no puede enlazar muchas funciones :P

sabeis si existe algun pack que esten todas listas para instalar?

Saludillos,
Goulin

Aquí tienes (ftp://public_ftp@gp32spain.com:publico@ftp.gp32spain.com/Programacion/GP2X/sdl/theoddbot-libs-open2x-soft-float-beta2.tar.gz) ;)

Saludos

the_goulin
29/12/2005, 16:23
sigo con los problemas :P

este es un pequeño pedazin de los errores q tengo:


$ make
C:/devkitGP2X/bin/arm-linux-g++ -static -o demo.gpe main.o KBFLite.o menu.o mazes.o sound.o primitives.o map.o `C:/devkitGP2X/bin/arm-linux-sdl-config --libs`
C:/devkitGP2X/lib\libSDL_image.a(IMG_bmp.o): In function `LoadBMP_RW':
IMG_bmp.c:(.text+0x65c): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x66c): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x6c8): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x75c): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x76c): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x7cc): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x7dc): undefined reference to `SDL_ReadLE32'
C:/devkitGP2X/lib\libSDL_image.a(IMG_bmp.o):IMG_bmp.c:(.text+0x7 ec): more undefined references to `SDL_ReadLE32' follow


no se si es normal q las sdl de la gp no tengan estas funciones.

alguna sugerencia? me lio a buscar en el codigo y cambiar cualquier referencia q vea a estas funciones por una mas adecuada?

Puck2099
29/12/2005, 16:30
sigo con los problemas :P

este es un pequeño pedazin de los errores q tengo:


$ make
C:/devkitGP2X/bin/arm-linux-g++ -static -o demo.gpe main.o KBFLite.o menu.o mazes.o sound.o primitives.o map.o `C:/devkitGP2X/bin/arm-linux-sdl-config --libs`
C:/devkitGP2X/lib\libSDL_image.a(IMG_bmp.o): In function `LoadBMP_RW':
IMG_bmp.c:(.text+0x65c): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x66c): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x6c8): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x75c): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x76c): undefined reference to `SDL_ReadLE16'
IMG_bmp.c:(.text+0x7cc): undefined reference to `SDL_ReadLE32'
IMG_bmp.c:(.text+0x7dc): undefined reference to `SDL_ReadLE32'
C:/devkitGP2X/lib\libSDL_image.a(IMG_bmp.o):IMG_bmp.c:(.text+0x7 ec): more undefined references to `SDL_ReadLE32' follow


no se si es normal q las sdl de la gp no tengan estas funciones.

alguna sugerencia? me lio a buscar en el codigo y cambiar cualquier referencia q vea a estas funciones por una mas adecuada?

Me parece que no le estás pasando como parámetros las librerías que usas.

Ponle esto a ver:


-lSDLmain -lSDL_image -lpng -ljpeg -lz -lc -lm -lgcc -lSDL_mixer -lvorbisidec -lmikmod -lSDL -lpthread

De todas formas te recomendaría mirarte este hilo. (http://www.gp32spain.com/foros/showthread.php?t=25450&page=1&pp=15)

Saludos

farelo
29/12/2005, 16:49
Tienes que enlazar las librerías que te han puesto anterior mente y ponerlas en:
"Herramientas -> Opciones del Compilador" ("Tools" -> "Compiler Options") y seleccionamos la opción:
"Añadir estos comandos a la línea de comandos del Linker"
(Add these commands to the linker...") y en ese mismo recuadro pega:
-lSDLmain -lSDL_image -lpng -ljpeg -lz -lc -lm -lgcc -lSDL_mixer -lvorbisidec -lmikmod -lSDL -lpthread

Aver si así se te arregla

the_goulin
29/12/2005, 17:14
bueno, arreglado ya esta ^_^ ahora me falta llegar a casa a ver si con la Gp chuta, el post igualmente me lo mirare

conoceis alguna funcion de SDL q permita escalar imagenes?

asias a los 2 por la ayuda :D

efegea
29/12/2005, 18:32
conoceis alguna funcion de SDL q permita escalar imagenes?

Las SDL no tienen ninguna, pero SDL_gfx si. Miralo en su pagina oficial