Hola, por fin compilé algo y funciona en la gp2x
El programa en cuestion solo carga un bmp de 256 colores y lo muestra lo encontré en el wiki:
http://wiki.gp2x.org/wiki/Source_code_to_a_Demo_Program
Compila, bien utilizando el toolchain y el Makefile que decis (gracias )
El problema es cuando quiero utilizar alguna libreria como la SDL_image o la SDL_mixer que me dan este tipo de salida al hacer el make:
Código:
sereno@serport:~/demo$ make
/home/sereno/gp2xdev/bin/arm-linux-gcc -static -o demo.gpe demo.o -L /home/sereno/gp2xdev/lib -lSDL -lz -lm -lpthread -lSDL_mixer
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `music_internal_position':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:830: undefined reference to `Player_SetPosition'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `music_internal_volume':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:900: undefined reference to `Player_SetVolume'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `open_music':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:393: undefined reference to `MikMod_InfoDriver'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:397: undefined reference to `MikMod_InfoLoader'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:400: undefined reference to `MikMod_Init'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:401: undefined reference to `MikMod_strerror'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:399: undefined reference to `MikMod_RegisterAllLoaders'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:395: undefined reference to `MikMod_RegisterAllDrivers'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:395: undefined reference to `md_mode'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:395: undefined reference to `md_mixfreq'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:395: undefined reference to `md_volume'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:395: undefined reference to `md_pansep'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:395: undefined reference to `md_reverb'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:395: undefined reference to `md_device'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:395: undefined reference to `md_musicvolume'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:395: undefined reference to `md_sndfxvolume'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:395: undefined reference to `MikMod_errno'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `music_internal_halt':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:968: undefined reference to `Player_Stop'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `music_internal_play':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:724: undefined reference to `Player_Start'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `Mix_FreeMusic':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:639: undefined reference to `Player_Free'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `music_internal_playing':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:1085: undefined reference to `Player_Active'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `music_mixer':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:232: undefined reference to `VC_WriteBytes'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:277: undefined reference to `VC_WriteBytes'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `Mix_SetSynchroValue':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:1177: undefined reference to `Player_Active'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `Mix_GetSynchroValue':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:1199: undefined reference to `Player_Active'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `close_music':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:1223: undefined reference to `MikMod_Exit'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `MikMod_LoadSongRW':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:1297: undefined reference to `Player_LoadGeneric'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `Mix_LoadMUS_RW':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:1342: undefined reference to `MikMod_strerror'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:1322: undefined reference to `MikMod_errno'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music.o): In function `Mix_LoadMUS':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:580: undefined reference to `Player_Load'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:582: undefined reference to `MikMod_strerror'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music.c:582: undefined reference to `MikMod_errno'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music_ogg.o): In function `OGG_new':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music_ogg.c:74: undefined reference to `ov_open'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music_ogg.o): In function `OGG_new_RW':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music_ogg.c:126: undefined reference to `ov_open_callbacks'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music_ogg.o): In function `OGG_playAudio':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music_ogg.c:210: undefined reference to `SDL_MixAudio'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music_ogg.o): In function `OGG_getsome':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music_ogg.c:158: undefined reference to `ov_read'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music_ogg.c:169: undefined reference to `ov_info'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music_ogg.o): In function `OGG_delete':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music_ogg.c:233: undefined reference to `ov_clear'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(music_ogg.o): In function `OGG_jump_to_time':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/music_ogg.c:241: undefined reference to `ov_time_seek'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(wavestream.o): In function `WAVStream_PlaySome':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/wavestream.c:196: undefined reference to `SDL_MixAudio'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(instrum.o): In function `load_instrument':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/timidity/instrum.c:524: undefined reference to `pow'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(mix.o): In function `update_tremolo':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/timidity/mix.c:188: undefined reference to `sin'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(resample.o): In function `update_vibrato':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/timidity/resample.c:349: undefined reference to `sin'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(filter.o): In function `designfir':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/timidity/filter.c:88: undefined reference to `sin'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/timidity/filter.c:92: undefined reference to `log'
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/timidity/filter.c:92: undefined reference to `exp'
/home/sereno/gp2xdev/lib/libSDL_mixer.a(filter.o): In function `kaiser':
/home/uncanny/Descargas/newtoolchain/SDL_mixer-1.2.6/timidity/filter.c:70: undefined reference to `sqrt'
collect2: ld returned 1 exit status
make: *** [demo.gpe] Error 1
Creo que esta buscando las librerias en el home de uncanny
supongo que será modificar alguna ruta para que las busque en mi home, no?
Marcadores