Missing file from gtkglext package

Asked by John Winterton

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

English Edit question
Ubuntu gcc-defaults Edit question
No assignee Edit question
Solved by:
John Winterton
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :

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:

The package with this file is libgtkglext1-dev

Then you need to dress your include path...

Revision history for this message
John Winterton (jwinterton) said :

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.

Revision history for this message
sandos (sandoskrish) said :

the information is precise but its really useful for me,best regards from <a href="https://hyfytvapk.com/"> HYFY TV</a>