This is the mail archive of the
mailing list for the Cygwin project.
Re: libglut-devel package conflicts with opengl package [Attn: Volker]
- From: André Bleau <andre_bleau at hotmail dot com>
- To: <cygwin-apps at cygwin dot com>
- Date: Tue, 4 Nov 2008 13:04:09 -0500
- Subject: Re: libglut-devel package conflicts with opengl package [Attn: Volker]
- Reply-to: <cygwin at cygwin dot com>
"Yaakov (Cygwin Ports)" wrote:
> André Bleau wrote:
>> The applications using freeglut can be compiled and linked without problems,
>> but I now realize that native GLUT applications cannot be compiled
>> correctly if the libglut-devel package is also installed because the glut.h
>> that it puts in /usr/include/GL takes precedance over the one that is
>> required in /usr/include/w32api/GL.
> FYI, this won't just be limited to GLUT; with the modular X11
> transition, the Mesa OpenGL includes will be in /usr/include/GL as well.
Then we are heading into a bigger mess.
>> So, how do we solve this?
> Use -I/usr/include/w32api ?
> Yes, it's in the default search path, but this will force it before
This cannot work as the order of system directories cannot be changed by -I . From gcc ifo:
Add the directory DIR to the list of directories to be searched
for header files. Directories named by `-I' are searched before
the standard system include directories. If the directory DIR is
a standard system include directory, the option is ignored to
ensure that the default search order for system directories and
the special treatment of system headers are not defeated .
What could be done is that I update the opengl package with an additionnal directory:
/usr/include/opengl that will contain only a symbolic link: GL -> ../w32api/GL
Then all users of the opengl package will have to update their builld system to add
But I really don't like to push that sort of change down the throat of the developpers that
were using a package that was working well before some other package was added to the distribution.
- André Bleau, Cygwin's volunteer OpenGL package maintainer.
Please direct any question or comment about the OpenGL package to cygwin at cygwin dot com