• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems compiling OpenGL app with FBO extensions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems compiling OpenGL app with FBO extensions


  • Subject: Re: Problems compiling OpenGL app with FBO extensions
  • From: Robert Purves <email@hidden>
  • Date: Sat, 8 Dec 2007 09:11:43 +1300


Richard Young wrote:

I'm using a G5 ppc with Mac OS X 10.4.7 and am compiling an OpenGL
application using some FBO extentions. I'm completely new to Mac
development, so I don't know what I'm doing. I've downloaded xCode 2.5 and
I've got all a project setup and my source code is including the appropriate
glext.h header file.


When I compile my application, I'm getting these errors:
'glGenFramebuffersEXT' undeclared (first use this function)
'GL_FRAMEBUFFER_EXT' undeclared (first use this function)
'glBindFramebufferEXT' undeclared (first use this function)
'glGenerateMipmapEXT' undeclared (first use this function)
'GL_COLOR_ATTACHMENT0_EXT' undeclared (first use this function)
'glFramebufferTexture2DEXT' undeclared (first use this function)
'glGenRenderbuffersEXT' undeclared (first use this function)
...
...
'glDeleteFramebuffersEXT' undeclared (first use this function)
'glDeleteRenderbuffersEXT' undeclared (first use this funciton)


Since OS X 10.4, glext.h defines GL_EXT_framebuffer_object, which in turn governs the definition of the symbols you list.
Perhaps you are #including some antique glext.h directly. In Mac programming, you should use framework-style includes as shown below:


#include <OpenGL/OpenGL.h>
int main( void )
{
	int x = GL_EXT_framebuffer_object; // error if symbol not defined
	return 0;
}


See also the excellent documentation:
<http://developer.apple.com/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/index.html >


Robert P.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Problems compiling OpenGL app with FBO extensions
      • From: Jeffrey Wilson <email@hidden>
  • Prev by Date: Re: String syntax coloring is a mess
  • Next by Date: Re: String syntax coloring is a mess
  • Previous by thread: Problems compiling OpenGL app with FBO extensions
  • Next by thread: Re: Problems compiling OpenGL app with FBO extensions
  • Index(es):
    • Date
    • Thread