Ver la versión completa : [SDL_mixer] undefined reference to `GpRand'
Estoy intentando compilar algunos ejemplos que reporduzcan musica, pero todos me da el miso fallo , pongo este ejemplo que es sencillito:
#include <gpstdio.h>
#include <gpstdlib.h>
#include <gpgraphic.h>
#include <gpfont.h>
#include <stdio.h>
#include <stdlib.h>
#include <SDL.h>
#include <SDL_mixer.h>
void GpMain(void *argv)
{
SDL_Surface *screen;
SDL_Event event;
Mix_Chunk *sonido;
int done = 0;
int canal;
atexit(SDL_Quit);
// Iniciar SDL
if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO) < 0) {
printf("No se pudo iniciar SDL: %s\n",SDL_GetError());
exit(1);
}
// Activamos modo de video
screen = SDL_SetVideoMode(320,240,16,SDL_HWSURFACE);
if (screen == NULL) {
printf("No se puede inicializar el modo gráfico: %s \n",SDL_GetError());
exit(1);
}
// Inicializamos SDL_mixer
if(Mix_OpenAudio(22050, AUDIO_S16, 2, 4096)) {
printf("No se puede inicializar SDL_mixer %s\n",Mix_GetError());
exit(1);
}
atexit(Mix_CloseAudio);
// Cargamos sonido
sonido = Mix_LoadWAV("gp:\\explosion.wav");
if ( sonido == NULL ) {
printf("No pude cargar sonido: %s\n", Mix_GetError());
exit(1);
}
// Reproducción del sonido.
// Esta función devuelve el canal por el que se reproduce el sonido
canal = Mix_PlayChannel(-1, sonido, 0);
// Esperamos la pulsación de una tecla para salir
while(done == 0) {
while ( SDL_PollEvent(&event) ) {
if ( event.type == SDL_KEYDOWN )
done = 1;
}
}
// liberamos recursos
Mix_FreeChunk(sonido);
return 0;
}
Pero al compilar me da este fallo
C:/Dev-Cpp/GP32/MiniGp32/arm-agb-elf/lib\libSDL_mixer.a(mplayer.o): In function `getrandom':
mplayer.o(.text+0x10): undefined reference to `GpRand'
collect2: ld returned 1 exit status
Estas son las opciones del Linker -Tlnkscript user_init.o -nostartfiles -lm -lgpos -lgpstdio -lgpstdlib -lgpsound -lgpmem -lgpgraphic -lgpfont -lSDL_image -lSDL_mixer -ljpeg -lpng -lz -lm -lSDL -lgpstdio
----------------[E D I T A D O]---------------------------------------
Con estas opciones en el Linker si que compila (Muchas gracias DistWave :brindis: )
-Tlnkscript user_init.o -nostartfiles -lSDL_image -lSDL_mixer -lSDL -lgpos -lgpstdio -lgpstdlib -lgpsound -lgpmem -lgpgraphic -lgpfont -ljpeg -lpng -lz -lm -lc -lgcc
DistWave
21/12/2004, 19:56
Tienes las librerias con un orden un poco caótico... prueba así mejor:
-lSDL_image -lSDL_mixer -lSDL -lgpos -lgpstdio -lgpstdlib -lgpsound -lgpmem -lgpgraphic -lgpfont -ljpeg -lpng -lz -lm -lc -lgcc
Un saludo
El orden era el propio del ejemplo del DcFree, voy a probar, gracias por tu respuesta.
Me da mas errores aun. una cosa, faltan algunas de las que yo tengo respecto de las que tu me has puesto, me recomiendas quitarlas?
Tienes compilador para la gp32 en Gentoo?
DistWave
23/12/2004, 01:50
En gentoo uso el devkitARM con makefiles "caseros". Si te sigue fallando el linker prueba a cambiar el orden de las librerías. A mi me compiló bien ese código con el orden que te puse.
Saludoss.
Podrias pasarme el enlace para bajarme el devkitARM? actualmente uso DCfree y tengo la particion windows solo para el el dcfree. Y si no te es mole4stia me podrias postear el makefile que has usado para este ejemplo. Muchas gracias y un saludo
Muchas gracias DistWave, ya he conseguido compilar correctamente, pero no me suena en la gp32, tengo otro ejemplo que si que compila y suena, voy a ver que falla. Un saludo :brindis:
bulbastre
23/12/2004, 14:59
Ánimo :arriba:
DistWave
23/12/2004, 19:59
Tienes el devkitARM en http://www.devkit.tk/
El makefile te lo adjunto, por si te sirve de algo.l
Saludoss
Muchissimas gracias, al ataqueeee :ametra:
Bueno vamos mejorando (poco a poco)
Me da este error al compilar
/opt/devkitARM/bin/arm-elf-ld: cannot find -lSDL_image
Puesto que no encuntra SDL_image.h (creo que se llama asi)
Me podrias decir donde descargarlo y donde ponerlo ponerlo dentro de /opt/devkitARM/ para que me funcione?
Muchas gracias por tus respuestas y tu paciencia, siento ser tan coñazo.
DistWave
24/12/2004, 11:11
Ese error indica que te falta el fichero libSDL_image.a que va en el directorio /lib de tus librerías.
Si antes no te daba ese error al linkar es porque ya tienes la libreria de SDL_Image pero en otro sitio. Así que ya sabes :)
Saludoss.
Es por que aun no instale las librerias SDL (no sabia si el compilador las llevaba), debo bajar las "precompiled SDL Library" (de http://sdl-gp32.sourceforge.net)? y donde las pongo?
DistWave
24/12/2004, 15:22
Las librerías e includes del SDL debes ponerlas junto a las del SDK que uses, bien el de Mirko o el de Gamepark. Lo normal es crear un directorio dentro del compilador (devkitARM en este caso) llamado gp32libs o como quieras, y ahí meter todas las librerías e includes que utilices respetando la estructura de directorios (todos includes en /include, todas librerías en /lib, etc). Luego incluyes su ruta en el makefile a la hora de especificar el path de los includes y las librerías y listo.
Saludoss.
Genial muchas gracias de nuevo por aclarame todas estas dudas, me voy poner el de Mirko que ya tenia gans de pillarlo jejeje.
Me da este error, te suena?
/opt/devkitARM/bin/arm-elf-gcc -I/opt/devkitARM/gp32libs/include -DGP32 -c /opt/devkitARM/gp32libs/basefiles/crt0.s -o crt0.o
/opt/devkitARM/bin/arm-elf-gcc -I/opt/devkitARM/gp32libs/include -DGP32 -c /opt/devkitARM/gp32libs/basefiles/gpstart.c -o gpstart.o
In file included from /opt/devkitARM/gp32libs/basefiles/gpstart.c:6:
/opt/devkitARM/gp32libs/include/gpfontres.dat:650:1: warning: no newline at end of file
/opt/devkitARM/bin/arm-elf-gcc -I/opt/devkitARM/gp32libs/include -c -march=armv4t -marm -ffast-math -nostdlib -fno-common -ffreestanding -fno-builtin -fno-exceptions -mstructure-size-boundary=8 -O3 -fomit-frame-pointer -Wall -DGP32 -c gpmain.c -o gpmain.o
gpmain.c: In function `GpMain':
gpmain.c:36: warning: left-hand operand of comma expression has no effect
gpmain.c:36: warning: left-hand operand of comma expression has no effect
gpmain.c:36: warning: left-hand operand of comma expression has no effect
gpmain.c:66: warning: `return' with a value, in function returning void
/opt/devkitARM/bin/arm-elf-ld crt0.o gpstart.o gpmain.o --script /opt/devkitARM/gp32libs/basefiles/lnkscript -nostartfiles -Map ltk666.map -L /opt/devkitARM/arm-elf/lib -L /opt/devkitARM/lib/gcc/arm-elf/3.4.1 -L /opt/devkitARM/gp32libs/lib -lSDL_image -lSDL_mixer -lSDL -lgpos -lgpstdio -lgpstdlib -lgpsound -lgpmem -lgpgraphic -lgpfont -ljpeg -lpng -lz -lm -lc -lgcc -o ltk666.elf
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/gp32libs/lib/libgpos.a(gpkernel.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/gp32libs/lib/libgpos.a(gpkernel.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/gp32libs/lib/libgpos.a(gpos_core.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/gp32libs/lib/libgpos.a(gpos_core.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/gp32libs/lib/libgpos.a(gpos_user.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/gp32libs/lib/libgpos.a(gpos_user.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/gp32libs/lib/libgpstdlib.a(gpstdlib.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/gp32libs/lib/libgpstdlib.a(gpstdlib.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/gp32libs/lib/libgpstdlib.a(asm_gpstdlib.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/gp32libs/lib/libgpstdlib.a(asm_gpstdlib.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/gp32libs/lib/libgpsound.a(gpmm_reload.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/gp32libs/lib/libgpsound.a(gpmm_reload.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/gp32libs/lib/libgpsound.a(gpsound.o) uses hardwareFP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/gp32libs/lib/libgpsound.a(gpsound.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/gp32libs/lib/libgpmem.a(gpmem.o) uses hardware FP,whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/gp32libs/lib/libgpmem.a(gpmem.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/gp32libs/lib/libgpmem.a(gpmem_asm.o) uses hardwareFP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/gp32libs/lib/libgpmem.a(gpmem_asm.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/gp32libs/lib/libgpgraphic.a(gpgraphic.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/gp32libs/lib/libgpgraphic.a(gpgraphic.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/gp32libs/lib/libgpgraphic.a(gpg_basic.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/gp32libs/lib/libgpgraphic.a(gpg_basic.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/gp32libs/lib/libgpfont.a(gpfont.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/gp32libs/lib/libgpfont.a(gpfont.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/gp32libs/lib/libgpfont.a(gpfont_asm.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/gp32libs/lib/libgpfont.a(gpfont_asm.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(atexit.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(atexit.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(exit.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(exit.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(impure.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(impure.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(malloc.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(malloc.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(mallocr.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(mallocr.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(memcpy.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(memcpy.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(memmove.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(memmove.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(mlock.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(mlock.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(printf.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(printf.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(sbrkr.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(sbrkr.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(syscalls.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(syscalls.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(vfprintf.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(vfprintf.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(vsprintf.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(vsprintf.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(wcrtomb.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(wcrtomb.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(wcsrtombs.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(wcsrtombs.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(wctomb_r.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(wctomb_r.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(wsetup.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(wsetup.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(dtoa.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(dtoa.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(errno.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(errno.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(fflush.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(fflush.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(findfp.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(findfp.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(freer.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(freer.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(fvwrite.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(fvwrite.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(fwalk.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(fwalk.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(locale.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(locale.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(makebuf.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(makebuf.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(malloc_vars.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(malloc_vars.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(memchr.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(memchr.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(memset.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(memset.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(mprec.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(mprec.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(reallocr.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(reallocr.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(reent.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(reent.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(s_isinf.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(s_isinf.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(s_isnan.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(s_isnan.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(stdio.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(stdio.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(strcmp.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(strcmp.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(strlen.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(strlen.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(writer.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(writer.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(callocr.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(callocr.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(closer.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(closer.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(fstatr.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(fstatr.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(lseekr.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(lseekr.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/arm-elf/lib/libc.a(readr.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/arm-elf/lib/libc.a(readr.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_udivsi3.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_udivsi3.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_divsi3.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_divsi3.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_modsi3.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_modsi3.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_dvmd_tls.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_dvmd_tls.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_addsubdf3.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_addsubdf3.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_muldivdf3.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_muldivdf3.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_cmpdf2.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_cmpdf2.o)
/opt/devkitARM/bin/arm-elf-ld: ERROR: /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_fixdfsi.o) uses hardware FP, whereas ltk666.elf uses software FP
/opt/devkitARM/bin/arm-elf-ld: failed to merge target specific data of file /opt/devkitARM/lib/gcc/arm-elf/3.4.1/libgcc.a(_fixdfsi.o)
make: *** [ltk666.elf] Error 1
DistWave
25/12/2004, 18:48
Esos errores te salen porque usas las librerias de GamePark compiladas para utilizar Hardware FP, mientras que el devkitARM está compilado para usar Software FP.
Utiliza las librerías que hay en http://www.devkit.tk/
Saludoss
Las SDL se las pongo las precompilded de la pagina oficial ( http://sdl-gp32.sourceforge.net/ )?
DistWave
25/12/2004, 21:03
Seguramente te daran el mismo error, lo mejor sería bajar las fuentes de las SDL y compilarlas con el propio devkitARM. Si tienes algun problema en hacerlo te las puedo pasar yo.
Saludoss.
Te agradeceria que me las pasases, si no es mucha molestia, por queyo laverdad, que me lio un poco :) te doy mi correo ltk666[NoSPAM]@gmail.com
PD: si quieres y si puedes pasame el directorio "gp32libs" pasa assi no darte mas la plasta, y los archivos crt0.*, gpstart.* y lnkscript por si estos tambien me pudieran dar algun problema.
Muchas gracias
Un saludo
DistWave
25/12/2004, 21:53
Ya los tienes ;)
Saludoss
Muchas gracias por todo voy a probarlo haber que tal me va, y te cuento com ome va el invento. Siento darte la paliza tanto ;-)
Un Saludo. :brindis:
GUAYYY ya compilo muuuchiiisimass gracias :brindis: ahora a por el Mirko SDK que hay un par de funciones interesantes
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.