PDA

View Full Version : Unknown OpenGL symbols when compiling freetype.gl



Lucan1d
08-25-2011, 05:38 PM
I have just checked-out the SVN source for freetype-gl and am having some compile errors.

The following symbols cannot be found:

* vertex-buffer.h
GLchar

* demo-subpixel.c
GL_COMPILE_STATUS
G[B]L_LINK_STATUS
GL_VERTEX_SHADER
GL_FRAGMENT_SHADER

* vertex-buffer.c
GL_ARRAY_BUFFER
GL_DYNAMIC_DRAW
GL_ELEMENT_ARRAY_BUFFER

I am building using Eclipse 3.7 and MinGW on Windows 7. I am guessing that these symbols belong to an OpenGL version that is more recent than the one supported by the <GL/gl.h> header file included with MinGW. Would that be right? What version of OpenGL support do I need?

Thanks,

-Lucan1d

ZbuffeR
08-25-2011, 11:22 PM
include glext.h from here :
http://www.opengl.org/registry/api/glext.h

Lucan1d
08-26-2011, 12:16 AM
None of the symbols I mentioned are defined in the version of glext.h that is included in the MinGW I have. Does that mean that I need to upgrade MinGW or that I can just use the file you referred to?

aqnuep
08-26-2011, 12:39 AM
Up-to-date version of glext.h is usually not included with any compiler/IDE suite. Most probably upgrading MinGW won't help either. You should simply download the header mentioned by ZbuffeR and replace the old one with it.

Lucan1d
08-27-2011, 08:35 PM
OK, even when I include glext.h I still get undefined symbols for glBindBuffer, glBufferData, glGenBuffers and a few others which are not found at either compile time or link time.

Is there another header file and/or library that I need to include for these definitions?

Alfonse Reinheart
08-27-2011, 10:49 PM
Technically, if you're using glext.h, then it expects you to define them yourself. All glext.h will do is give you typedefs for the function pointer types; you must define variables of those types, and then use the appropriate function to load those function pointers (http://www.opengl.org/wiki/Load_OpenGL_Functions).

Or you can just use one of these extension loading libraries (http://www.opengl.org/wiki/Extension_Loading_Library) and save yourself a lot of trouble.