This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libglut-devel package conflicts with opengl package [Attn: Volker]


"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
> /usr/include.

This cannot work as the order of system directories cannot be changed by -I . From gcc ifo:
`-I DIR'
     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 .

> 
> 
> Yaakov

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
-I/usr/include/opengl

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.

Regards,

- André Bleau, Cygwin's volunteer OpenGL package maintainer.

Please direct any question or comment about the OpenGL package to cygwin at cygwin dot com


_________________________________________________________________


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]