luteijn
Member
and before you went to 1.2.0, did you have the original sdl libs on your gp2x?
luteijn said:and before you went to 1.2.0, did you have the original sdl libs on your gp2x?
</s><i>
</i># Project: AirPong
# Makefile created by Dev-C++ 4.9.9.2
CPP = arm-linux-g++.exe
CC = arm-linux-gcc.exe
WINDRES = windres.exe
RES =
OBJ = main.o cgameobj.o cball.o cbat.o config.o display.o event.o font.o game.o global.o menu.o mouse.o objects.o timer.o keyboard.o $(RES)
LINKOBJ = main.o cgameobj.o cball.o cbat.o config.o display.o event.o font.o game.o global.o menu.o mouse.o objects.o timer.o keyboard.o $(RES)
LIBS = -L"C:/devkitGP2X/lib" -lSDLmain -lSDL_mixer -lvorbisidec -lmikmod -lSDL_ttf -lm -lfreetype -lz -lSDL -lpthread -static -fmessage-length=0
INCS = -I"C:/devkitGP2X/include"
CXXINCS = -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include"
BIN = AirPong.gpe
CXXFLAGS = $(CXXINCS) -fmessage-length=0
CFLAGS = $(INCS) -fmessage-length=0
RM = rm -f
.PHONY: all all-before all-after clean clean-custom
all: all-before AirPong.gpe all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o "AirPong.gpe" $(LIBS)
main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)
.
.
.
<e>
</s><i>
</i>Compiler: DevkitGP2X
Building Makefile: "C:\devkitGP2X\Proggies\airpong022\src\Makefile.win"
Führt make clean aus
rm -f main.o cgameobj.o cball.o cbat.o config.o display.o event.o font.o game.o global.o menu.o mouse.o objects.o timer.o keyboard.o AirPong.gpe
arm-linux-g++.exe -c main.cpp -o main.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe -c cgameobj.cpp -o cgameobj.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe -c cball.cpp -o cball.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe -c cbat.cpp -o cbat.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe -c config.cpp -o config.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe -c display.cpp -o display.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe -c event.cpp -o event.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe -c font.cpp -o font.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe -c game.cpp -o game.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe -c global.cpp -o global.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe -c menu.cpp -o menu.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe -c mouse.cpp -o mouse.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe -c objects.cpp -o objects.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
objects.cpp: In function 'void objects_update()':
objects.cpp:169: warning: passing 'double' for argument 1 to 'void CGameOBJ::setxv(int)'
objects.cpp:190: warning: passing 'double' for argument 1 to 'void CGameOBJ::setxv(int)'
arm-linux-g++.exe -c timer.cpp -o timer.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe -c keyboard.cpp -o keyboard.o -I"C:/devkitGP2X/lib/gcc/arm-linux/4.0.2/include" -I"C:/devkitGP2X/include/c++/4.0.2/backward" -I"C:/devkitGP2X/include/c++/4.0.2/arm-linux" -I"C:/devkitGP2X/include/c++/4.0.2" -I"C:/devkitGP2X/include" -fmessage-length=0
arm-linux-g++.exe main.o cgameobj.o cball.o cbat.o config.o display.o event.o font.o game.o global.o menu.o mouse.o objects.o timer.o keyboard.o -o "AirPong.gpe" -L"C:/devkitGP2X/lib" -lSDLmain -lSDL_mixer -lvorbisidec -lmikmod -lSDL_ttf -lm -lfreetype -lz -lSDL -lpthread -static -fmessage-length=0
C:/devkitGP2X/lib\libmikmod.a(mdriver.o): In function `MD_DropPrivileges':
mdriver.c:(.text+0x2cf4): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
Ausführung beendet
Kompilierung erfolgreich
<e>
</s><i>
</i>Init...
Init SDL...
SDL_SYS_JoystickInit
<e>
</s><i>
</i>Mix_LoadWAV: Mix_LoadWAV_RW with NULL src
<e>
</s><i>
</i>Warning: Couldn't set 22050 Hz 16-bit audio
Reason: Couldn't create mixer lock
<e>
</e></QUOTE>BestNrXYZ said:</s>Was soll ich sagen: Es funktioniert, ich habe Sound in der Konfiguration, wie ich sie oben beschrieben habe. Ich brauchte nur die kommentierten Zeilen wieder zu aktivieren und es lief...<br/>
<br/>
Und Pieter: DANKE!<br/>
<br/>
Greetz<br/>
BNrXYZ<br/>
<br/>
P.S. Falls Fragen da sind, bitte hier stellen. Ich stehe zur Verfügung.<br/>
<br/>
P.P.S. Was ich noch nicht getestet habe: Laufen andere SDL-Games ohne statisch gelinkte SDL-Libs (also solche, die die SDL-Libs des GP2X nutzen, denn die sind ja nicht drauf)? Aber das kommt noch.<e>
<i>
</i>-lSDLmain -lSDL_mixer -lvorbisidec -lmikmod -lSDL_ttf -lm -lfreetype -lz -lSDL -lpthread -static
Elektranox said:warum können die nicht den mixer teil mit in die SDL fürn GP2X machen? dann müsste man gar nicht mehr statisch linken
BestNrXYZ said:etwas wenig input, oder? :wink:
P.S. Und ich bedanke mich nochmals ausdrücklich bei luteijn. Ohne ihn hätte ich mich nie so tief in die Sache mit dem Sound reingekniet.
IceOnly said:...also die BG musik geht, die triebwerk auch aber beim schiessen klingts total schräg und das ruckelt total
Aber warum friesst sound soviel resourcen?
chunksize is the size of each mixed sample. The smaller this is the more your hooks will be called. If make this too small on a slow system, sound may skip.
BestNrXYZ said:Give it a try :wink: