Error Compiling With Sdl_mixer


JyCet

Member
Joined
Feb 23, 2004
Messages
469
Age
116
Location
France
Website
Visit site
Hi all,
I test to convert from gp32 SDK to gp2x SDL but i've this error when i want to test mod player:
Code:
C:/devkitPro/devkitGP2X/bin/arm-linux-gcc `C:/devkitPro/devkitGP2X/bin/arm-linux-sdl-config --cflags` -O2 -Wextra -Werror   -c -o crazy_jack.o crazy_jack.c
C:/devkitPro/devkitGP2X/bin/arm-linux-g++ -static -o crazy_jack.gpe crazy_jack.o `C:/devkitPro/devkitGP2X/bin/arm-linux-sdl-config --libs` -lSDL_mixer -lvorbisidec -lmikmod -lsmpeg -lSDL
C:/devkitPro/devkitGP2X/lib\libmikmod.a(mdriver.o): In function `MD_DropPrivileges':
../playercode/mdriver.c:919: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
C:/devkitPro/devkitGP2X/bin/arm-linux-strip crazy_jack.gpe
rm -f  *.o *~
>Exit code: 0

this is my makefile:
Code:
PROG_NAME = crazy_jack
OBJS = crazy_jack.o
CROSS_COMPILE = C:/devkitPro/devkitGP2X/bin/arm-linux-
SDL_BASE = C:/devkitPro/devkitGP2X/bin/arm-linux-
LDFLAGS = -static

CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
STRIP = $(CROSS_COMPILE)strip
CLEANUP = rm -f $(ALL_TARGETS) *.o *~

CFLAGS = `$(SDL_BASE)sdl-config --cflags` -O2 -Wextra -Werror
CXXFLAGS = `$(SDL_BASE)sdl-config --cflags` -O2 -Wall -Werror
LIBS = `$(SDL_BASE)sdl-config --libs` -lSDL_mixer -lvorbisidec -lmikmod -lsmpeg -lSDL

TARGET = $(PROG_NAME).gpe
SDLTEST_OBJS = $(OBJS)

all : $(TARGET)

$(TARGET) : $(SDLTEST_OBJS)
	$(CXX) $(LDFLAGS) -o $(TARGET) $(SDLTEST_OBJS) $(LIBS)
	$(STRIP) $(TARGET)
	$(CLEANUP)

any idea or solution ?

Does someone have an example to use directly mikmod lib ?

Thank ;)
 

JyCet

Member
Joined
Feb 23, 2004
Messages
469
Age
116
Location
France
Website
Visit site
Well done, I'm very surprise !

The original game on GP32 with Gamepark SDK work very well at 67MHz !
BUT converted to SDL on GP2X it's incredible slow at 200MHz !!!

:'(

I dont understand why ?!
How is it possible.
 

JyCet

Member
Joined
Feb 23, 2004
Messages
469
Age
116
Location
France
Website
Visit site
Blah, crazy jack is my simplier game that's why I test with it.

No I didnt use use profiled code

Yes I'm used paeryn Hardware SDL

The big difference beetween GP2X and GP32 is, GP2X version work in 16bit mode and the GP32 in 8bit.
But with some test of me on gp2x there no speed difference to work in 16bit, and no speed difference to work with transparency or not ...

:-/
 

yaustar

UK GP32 & GP2X Owner
Joined
Oct 18, 2003
Messages
2,714
Location
UK
Website
Visit site
I can't remember who it was but some got makeupon's (author who did Smashgp) mod player working nicely on the GP2X. If you hunt around on the dev forums you might be able to find the thread.
 
Top