Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-28-2009, 02:37 PM   #1 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 6
Unhappy Link errors after adding OpenGL framework

Has anybody seen link errors after adding the OpenGL framework? I have an application that runs fine on both the device and the simulator, but after I add the OpenGL framework, it starts getting link errors when I compile for the simulator. At this point, even after I remove the OpenGL framework, my project can no longer run on the simulator.

My app also uses MediaPlayer, AVFoundation and AudioToolbox frameworks.

I also tried a different tactic. I started with XCode's starter OpenGL app. I confirm it runs fine on both device and simulator. I then start adding my domain classes (no view-related code) to the project. I also add the MediaPlayer, AVFoundation and AudioToolbox frameworks. When I build, I start getting errors. I remove everything I've added (my code and the add'l frameworks) and I still get the link errors.

Here's a sampling of the error messages I get:

Code:
  "_glGetRenderbufferParameterivOES", referenced from:
      -[EAGLView createFramebuffer] in EAGLView.o
      -[EAGLView createFramebuffer] in EAGLView.o
  "_glCheckFramebufferStatusOES", referenced from:
      -[EAGLView createFramebuffer] in EAGLView.o
      -[EAGLView createFramebuffer] in EAGLView.o
  "_glDeleteFramebuffersOES", referenced from:
      -[EAGLView destroyFramebuffer] in EAGLView.o
  ".objc_class_name_EAGLContext", referenced from:
      literal-pointer@__OBJC@__cls_refs@EAGLContext in EAGLView.o
  "_kEAGLDrawablePropertyColorFormat", referenced from:
      _kEAGLDrawablePropertyColorFormat$non_lazy_ptr in EAGLView.o
  "_glClearColor", referenced from:
      -[EAGLView drawView] in EAGLView.o
  "_kEAGLDrawablePropertyRetainedBacking", referenced from:
      _kEAGLDrawablePropertyRetainedBacking$non_lazy_ptr in EAGLView.o
  "_objc_msgSendSuper", referenced from:
      -[EAGLView initWithCoder:] in EAGLView.o
      -[EAGLView dealloc] in EAGLView.o
  "___CFConstantStringClassReference", referenced from:
      cfstring=failed to make complete framebuffer object %x in EAGLView.o
  "_glGenRenderbuffersOES", referenced from:
      -[EAGLView createFramebuffer] in EAGLView.o
  "_glBindRenderbufferOES", referenced from:
      -[EAGLView drawView] in EAGLView.o
      -[EAGLView createFramebuffer] in EAGLView.o
  "_glOrthof", referenced from:
      -[EAGLView drawView] in EAGLView.o
  "_glFramebufferRenderbufferOES", referenced from:
      -[EAGLView createFramebuffer] in EAGLView.o
  "_UIApplicationMain", referenced from:
      _main in main.o
The code still compiles when targetting a device, but I've seen video tutorials that show OpenGL works on the simulator. What am I doing wrong?
minute is offline   Reply With Quote
Old 06-28-2009, 02:40 PM   #2 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 6
Unhappy Oops, wrong forum

Apologies, I mistakenly posted this to the "Advanced" forum, I meant to post it to the iPhone SDK Development forum. Is there a way to move this there?

thanks,
minute
minute is offline   Reply With Quote
Old 08-26-2009, 01:47 PM   #3 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 15
Default OpenGL-ES link errors (sim only)

Did you ever get an answer to this? I'm having similar problems (different errors, but same thing: link errors in sim-only for GL-built-ins.) Examples:

Code:
  "_kEAGLDrawablePropertyRetainedBacking", referenced from:
      _kEAGLDrawablePropertyRetainedBacking$non_lazy_ptr in EAGLView.o
  "_kEAGLDrawablePropertyColorFormat", referenced from:
      _kEAGLDrawablePropertyColorFormat$non_lazy_ptr in EAGLView.o
  "_CGContextFillRect", referenced from:
      +[ScratchOffView imageOfSize:andColor:] in ScratchOffView.o
I'd sure love to be able to run my app on the simulator!
chum is offline   Reply With Quote
Reply

Bookmarks

Tags
mediaplayer, opengl, simulator

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 255
22 members and 233 guests
@sandris, ADY, ArtieFufkin10, bookesp, ckgni, dacapo, Dani77, DarkAn, Davey555, Desert Diva, HemiMG, iDifferent, jakerocheleau, JasonR, LEARN2MAKE, prchn4christ, Rudy, ryantcb, Speed, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,766
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:43 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0