Hiho,
ich habe gerade versucht meine Demo-App in XCode zu kompilieren, habe alles eingestellt, wie beim letzten Projekt.
Ich kriege jetzt jedes Mal in XCode den folgenden Fehler:
Quote
Build iPhone of project iPhone with configuration Release
Check dependencies
[WARN]Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'iPhone-Info.plist'.
Ld build/Release-iphoneos/Quantum.app/Quantum normal armv6
cd "/Users/oleseelandt/Desktop/iPhone Projects/iQantum/XCode 0.2/GLBasic"
setenv IPHONEOS_DEPLOYMENT_TARGET 3.2
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk "-L/Users/oleseelandt/Desktop/iPhone Projects/iQantum/XCode 0.2/GLBasic/build/Release-iphoneos" "-L/Users/oleseelandt/Desktop/iPhone Projects/iQantum/XCode 0.2/GLBasic/Lib" "-F/Users/oleseelandt/Desktop/iPhone Projects/iQantum/XCode 0.2/GLBasic/build/Release-iphoneos" -filelist "/Users/oleseelandt/Desktop/iPhone Projects/iQantum/XCode 0.2/GLBasic/build/iPhone.build/Release-iphoneos/iPhone.build/Objects-normal/armv6/Quantum.LinkFileList" -dead_strip -lstdc++ -miphoneos-version-min=3.2 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework CoreLocation -framework OpenAL -lGLBasiciPhone-egl -lpng-gf -lPROGRAM -framework MediaPlayer -framework AudioToolbox -o "/Users/oleseelandt/Desktop/iPhone Projects/iQantum/XCode 0.2/GLBasic/build/Release-iphoneos/Quantum.app/Quantum"
Undefined symbols:
"__GLBASIC__::__GLB_Defaults()", referenced from:
_iPhoneMain in libGLBasiciPhone-egl.a(glb-full.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
Und kann mir nicht erklären, wie ich das lösen soll?! :(
Vielleicht weiß einer Rat?
LG
Lösche die Datei libGLBasiciPhone-egl.a aus dem XCode Projekt und compiliere neu für iPhone?
Das half leider nichts...
Ich habe das Problem jetzt durch Neuinstallation von GLB gelöst.
Allerdings lädt er jetzt die Grafiken nicht. Muss mal schauen, woran das liegt.
SETCURRENTDIRECTORY("Media")
LOADSPRITE "test.png", // <-- in XY.app/Media - bitte auch den Media INHALT in XCode kopieren.
Das habe ich natürlich gemacht.
Mein Pfad ist "Media/gfx/blub.png" und mein Code ist
setcurrentdir("Media")
loadsprite "gfx/blub.png",0
Das Spiel an sich läuft auch, daher muss ich nochmal gucken, ob ich was falsch verschoben habe.
Danke trotzdem erstmal! :)