tiff: GL/gl.h: No such file or directory (was: Re: Install Lablgtk 2.10 using MacPorts)

Ryan Schmidt ryandesign at macports.org
Sat Feb 16 18:03:44 PST 2008


On Feb 16, 2008, at 08:33, AngelaZhu wrote:

>> In file included from tiffgt.c:36:
>> /opt/local/include/GLUT/glut.h:58:19: error: GL/gl.h: No such file or
>> directory
>> /opt/local/include/GLUT/glut.h:59:20: error: GL/glu.h: No such  
>> file or
>> directory
>
> [snip]
>
> So tiff can't find the OpenGL headers. I do have /usr/X11R6/include/
> GL/gl.h on my system. Do you? That would have been provided by either
> X11User (part of Mac OS X) or X11SDK (part of Xcode). Do you have
> both installed?
>
>
> Yes, I do have /usr/X11R6/include/GL/gl.h on my system.
> And I fixed this error by change the
>  /opt/local/include/GLUT/glut.h:58:19 from
> #include <GL/gl.h> to
> #include </usr/X11R6/include/GL/gl.h>

You should not have to modify any files by hand like this.

What port provides /opt/local/include/GLUT/glut.h? I don't have this  
on my system. What do you get when you do this:

port provides /opt/local/include/GLUT/glut.h


> However, when I retried upgrade, I got:
> /usr/X11R6/include/GL/glu.h:35:19: error: GL/gl.h: No such file or  
> directory
> Now I cannot do the same thing to fix it because this folder
> gives no permission for modifying or adding files.
> What should I do?

The include flags in the port must be wrong... should include $ 
{x11prefix}... You may need to file a ticket for this problem.




More information about the macports-users mailing list