[GRASS-dev] error compiling nviz for Mac

Glynn Clements glynn at gclements.plus.com
Thu May 10 15:22:21 EDT 2007


Michael Barton wrote:

> Today¹s update from the cvs has a problem compiling nviz. It probably has to
> do with issues recently discussed on the developer list.
> 
> Configure can no longer automatically find Open GL includes, even though
> Open GL is set to x11 and Open GL libs are specified. If I add a configure
> option for gl includes (/usr/X11R6/include) it configures fine.
> 
> When we run make, there is an error compiling nviz. Going to the nviz
> directory and running make there produces the following error.
> 
> Medland-G5:~/grass6/visualization/nviz amiller1$ make
> cd src ; make
> gcc -I/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include  -g -O2
> -I/usr/local/tcltk/include -I/usr/local/tcltk/include
> -I/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include
> -I/Library/Frameworks/UnixImageIO.framework/unix/include
> -I/Library/Frameworks/GDAL.framework/unix/include
> -DPACKAGE=\""grassmods"\"
> -I/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include \
>         -o OBJ.powerpc-apple-darwin8.9.0/nvizAppInit.o -c nvizAppInit.c
> In file included from nvizAppInit.c:8:
> togl.h:53:23: error: GL/gl.h: No such file or directory

I don't see /usr/X11R6/include in there.

Check Platform.make, specifically OPENGL_X11 and XCFLAGS.

OPENGLINC doesn't actually get used in nviz/src/Makefile, although it
is used int the configure header checks; I'll fix that.

Ordinarily, XCFLAGS would add -I/usr/X11R6/include; however, that
might not happen if you have a symlink:

	/usr/include/X11 -> /usr/X11R6/include/X11

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list