GLBasic forum

Main forum => Bug Reports => Topic started by: backslider on 2011-Jan-10

Title: iPhone Compilerfehler?
Post by: backslider on 2011-Jan-10
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
Title: Re: iPhone Compilerfehler?
Post by: Kitty Hello on 2011-Jan-10
Lösche die Datei  libGLBasiciPhone-egl.a aus dem XCode Projekt und compiliere neu für iPhone?
Title: Re: iPhone Compilerfehler?
Post by: backslider on 2011-Jan-10
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.
Title: Re: iPhone Compilerfehler?
Post by: Kitty Hello on 2011-Jan-11
SETCURRENTDIRECTORY("Media")
LOADSPRITE "test.png", // <-- in XY.app/Media - bitte auch den Media INHALT in XCode kopieren.
Title: Re: iPhone Compilerfehler?
Post by: backslider on 2011-Jan-11
Das habe ich natürlich gemacht.

Mein Pfad ist "Media/gfx/blub.png" und mein Code ist
Code (glbasic) Select

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! :)