Hola, gracias por las respuestas.
He descomprimido el toolchain de Misato en mi home (ahora tengo el directorio gp2xdev en mi home), he descargado el sdltest 1.21 que hay en la zona de descarga para probar y he modificado el Makefile dejandolo asi:
Código:
TOOLCHAIN = /home/sereno/gp2xdev
CROSS_COMPILE = $(TOOLCHAIN)/bin/arm-linux-
SDL_BASE = $(TOOLCHAIN)/bin/arm-linux-
LDFLAGS = -static
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
STRIP = $(CROSS_COMPILE)strip
CFLAGS = -I$(TOOLCHAIN)/include/SDL -O2 -Wall
CXXFLAGS = -I$(TOOLCHAIN)/include/SDL -DTARGET_GP2X -O2 -Wall
LIBS = -L $(TOOLCHAIN)/lib -lSDL -lz -lm -lpthread
TARGET = sdltest.gpe
OBJS = sdltest.o
ALL_TARGETS = $(TARGET)
all: $(ALL_TARGETS)
pues al hacer un make la salida es esta:
Código:
/home/sereno/gp2xdev/bin/arm-linux-gcc -static -o sdltest.gpe sdltest.o -L /home/sereno/gp2xdev/lib -lSDL -lz -lm -lpthread
sdltest.o: In function `Shutdown()':
sdltest.cpp:(.text+0x24): undefined reference to `Mix_FreeChunk'
sdltest.cpp:(.text+0x30): undefined reference to `Mix_FreeMusic'
sdltest.cpp:(.text+0x34): undefined reference to `Mix_CloseAudio'
sdltest.cpp:(.text+0x40): undefined reference to `TTF_CloseFont'
sdltest.cpp:(.text+0x44): undefined reference to `TTF_Quit'
sdltest.o: In function `LoadFont(unsigned char)':
sdltest.cpp:(.text+0x8c): undefined reference to `TTF_OpenFont'
sdltest.o: In function `drawText(SDL_Surface*, char*, int, int, int, int, int)':
sdltest.cpp:(.text+0xe8): undefined reference to `TTF_RenderText_Blended'
sdltest.o: In function `drawTextInt(SDL_Surface*, int, int, int, int, int, int)':
sdltest.cpp:(.text+0x190): undefined reference to `TTF_RenderText_Blended'
sdltest.o: In function `TestSDLImage()':
sdltest.cpp:(.text+0x400): undefined reference to `IMG_Load'
sdltest.cpp:(.text+0x4b4): undefined reference to `IMG_Load'
sdltest.cpp:(.text+0x554): undefined reference to `IMG_Load'
sdltest.o: In function `TestSDLMixerWAV()':
sdltest.cpp:(.text+0xb38): undefined reference to `Mix_LoadWAV_RW'
sdltest.cpp:(.text+0xb58): undefined reference to `Mix_PlayChannelTimed'
sdltest.cpp:(.text+0xb64): undefined reference to `Mix_Playing'
sdltest.o: In function `TestSDLMixerOGG()':
sdltest.cpp:(.text+0xc2c): undefined reference to `Mix_LoadMUS'
sdltest.cpp:(.text+0xc3c): undefined reference to `Mix_PlayMusic'
sdltest.cpp:(.text+0xe20): undefined reference to `Mix_ResumeMusic'
sdltest.cpp:(.text+0xe6c): undefined reference to `Mix_HaltMusic'
sdltest.cpp:(.text+0xe98): undefined reference to `Mix_RewindMusic'
sdltest.cpp:(.text+0xea0): undefined reference to `Mix_RewindMusic'
sdltest.cpp:(.text+0xeb4): undefined reference to `Mix_VolumeMusic'
sdltest.cpp:(.text+0xee8): undefined reference to `Mix_ResumeMusic'
sdltest.cpp:(.text+0xf00): undefined reference to `Mix_VolumeMusic'
sdltest.cpp:(.text+0xf14): undefined reference to `Mix_PauseMusic'
sdltest.cpp:(.text+0xf20): undefined reference to `Mix_PauseMusic'
sdltest.o: In function `TestSDLMixerMOD()':
sdltest.cpp:(.text+0xfe8): undefined reference to `Mix_LoadMUS'
sdltest.cpp:(.text+0xff8): undefined reference to `Mix_PlayMusic'
sdltest.cpp:(.text+0x1008): undefined reference to `Mix_HaltMusic'
sdltest.o: In function `main':
sdltest.cpp:(.text+0x119c): undefined reference to `TTF_Init'
sdltest.cpp:(.text+0x11b0): undefined reference to `Mix_OpenAudio'
collect2: ld returned 1 exit status
make: *** [sdltest.gpe] Error 1
y seguimos en las mismas que no quiere funcionar
Marcadores