BASIC

Author Topic: Linking error with new 7.242 version on iPhone  (Read 2393 times)

Offline kaotiklabs

  • Dr. Type
  • ****
  • Posts: 313
  • Spain is diferent
    • View Profile
I have tried to compile an app for iphone 3.1.2 with the last glbasic release v7.242 and always get 2 linking errors.

It seems related to the playmovie new feature but I´m not using nothing related.
Maybe the library was not included?

Code: GLBasic [Select]
Ld build/Release-iphoneos/xau01.app/xau01 normal armv6
cd /Users/xau/Desktop/XCode/GLBasic
setenv IPHONEOS_DEPLOYMENT_TARGET 3.1.2
setenv MACOSX_DEPLOYMENT_TARGET 10.5
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/iPhoneOS3.1.2.sdk -L/Users/xau/Desktop/XCode/GLBasic/build/Release-iphoneos -L/Users/xau/Desktop/XCode/GLBasic/Lib -F/Users/xau/Desktop/XCode/GLBasic/build/Release-iphoneos -filelist /Users/xau/Desktop/XCode/GLBasic/build/iPhone.build/Release-iphoneos/iPhone.build/Objects-normal/armv6/xau01.LinkFileList -mmacosx-version-min=10.5 -dead_strip -lstdc++ -miphoneos-version-min=3.1.2 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework AudioToolbox -framework CoreLocation -framework OpenAL -lGLBasiciPhone-egl -lpng-gf -lPROGRAM -o /Users/xau/Desktop/XCode/GLBasic/build/Release-iphoneos/xau01.app/xau01

Undefined symbols:
  "_MPMoviePlayerPlaybackDidFinishNotification", referenced from:
      _MPMoviePlayerPlaybackDidFinishNotification$non_lazy_ptr in libGLBasiciPhone-egl.a(iPhoneAppController.o)
  "_OBJC_CLASS_$_MPMoviePlayerController", referenced from:
      __objc_classrefs__DATA@0 in libGLBasiciPhone-egl.a(iPhoneAppController.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status

Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3357
  • Integrated Brain
    • View Profile
Hi, I think the trouble is the same than this.

http://www.glbasic.com/forum/index.php?topic=4072.0


It seems related to the playmovie new feature but I´m not using nothing related.
Maybe the library was not included?

If oyu don´t use the command playmovie, equal you have to add the framework, if not don´t compile well Xcode.

Offline kaotiklabs

  • Dr. Type
  • ****
  • Posts: 313
  • Spain is diferent
    • View Profile
Oh dear!
I used the search engine but didn´t return anything related. Maybe my search wasn´t good enough.
Forgive me for posting the same trouble.

And many thanks mentalthink for the info =)
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

MrTAToad

  • Guest
Sounds like Gernot hasn't added in the library :)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10689
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Yes. Manually add it. If you create a new xcode (delete the folder, rebuild), the patch should be applied. Or maybe not :S