Missing file from gtkglext package

Asked by John Winterton on 2012-08-22

I am attempting to open the gtkglext-1.0 package to make use of OpenGL. When I attempt to compile a small program to check the library, I get this:

john@John-1204LTS:~/dev/OpenGLTest$ make
cc -I /usr/include/glib-2.0 -I /usr/include/gtkglext-1.0 -c -o main.o main.c
In file included from main.c:24:0:
/usr/include/gtkglext-1.0/gdk/gdkgl.h:22:29: fatal error: gdkglext-config.h: No such file or directory
compilation terminated.
make: *** [main.o] Error 1

I've spent two days diligently searching for this file and it is nowhere to be found. Here is the header file segment that calls for it:

ifndef __GDK_GL_H__
#define __GDK_GL_H__

#include <gdkglext-config.h> <-----------------------------------------------------------------

#include <gdk/gdkgldefs.h>
#include <gdk/gdkglversion.h>

And a list of the relevant include directory.

john@John-1204LTS:/usr/include/gtkglext-1.0/gdk$ ls
gdkglconfig.h gdkgldefs.h gdkglfont.h gdkgl.h.gch gdkglquery.h gdkgltypes.h glext
gdkglcontext.h gdkgldrawable.h gdkglglext.h gdkglinit.h gdkglshapes.h gdkglversion.h x11
gdkgldebug.h gdkglenumtypes.h gdkgl.h gdkglpixmap.h gdkgltokens.h gdkglwindow.h

All of the files called for in the top-level include are present except the one flagged.

Is this file available? Was it omitted accidently from the distribution?

I am working the example in Devhelp for this, and it would be nice to know if the documentation is correct.

All I really want to do in this program is verify that the library can be opened.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gcc-defaults Edit question
Assignee:
No assignee Edit question
Solved by:
John Winterton
Solved:
2012-08-23
Last query:
2012-08-23
Last reply:
2012-08-23

Plase try to use "locate" command to search the header .h files you need: please type from terminal

sudo updatedb

locate gdkglext-config.h

My locate result as your reference is:
/usr/lib/gtkglext-1.0/include/gdkglext-config.h

The package with this file is libgtkglext1-dev

Then you need to dress your include path...

John Winterton (jwinterton) said : #2

Thanks. The fact that this file is in the wrong place is more than annoying. It is called out by the Devhelp documentation, and this is no help file the files are not properly installed.

Rather than fix my makefile variable, I am going to simply copy the file into the spot where the documentation says it is 'supposed' to be.