[GRASS-dev] error compiling nviz for Mac

Michael Barton michael.barton at asu.edu
Thu May 10 14:45:09 EDT 2007


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
In file included from nvizAppInit.c:8:
togl.h:165: error: parse error before "Togl_LoadBitmapFont"
togl.h:165: warning: data definition has no type or storage class
togl.h:166: error: parse error before "GLuint"
togl.h:215: error: parse error before "left"
In file included from nvizAppInit.c:9:
interface.h:15:20: error: GL/glu.h: No such file or directory
In file included from
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/gstypes.
h:340,
                 from interface.h:23,
                 from nvizAppInit.c:9:
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/ogsf_pro
to.h:200: warning: parameter names (without types) in function declaration
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/ogsf_pro
to.h:201: error: parse error before "GLuint"
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/ogsf_pro
to.h:458: error: parse error before "gsd_set_font"
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/ogsf_pro
to.h:458: warning: data definition has no type or storage class
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/ogsf_pro
to.h:461: error: parse error before "float"
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/ogsf_pro
to.h:474: error: parse error before "GLuint"
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/ogsf_pro
to.h:494: error: parse error before "GLuint"
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/ogsf_pro
to.h:498: error: parse error before "GLuint"
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/ogsf_pro
to.h:556: error: parse error before "int"
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/ogsf_pro
to.h:748: error: parse error before "gsd_put_legend"
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/ogsf_pro
to.h:748: error: parse error before "GLuint"
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/ogsf_pro
to.h:748: warning: data definition has no type or storage class
/Users/amiller1/grass6/dist.powerpc-apple-darwin8.9.0/include/grass/ogsf_pro
to.h:749: warning: parameter names (without types) in function declaration
In file included from nvizAppInit.c:9:
interface.h:67: error: parse error before "FontBase"
interface.h:67: warning: data definition has no type or storage class
interface.h:280: error: parse error before "load_font"
interface.h:280: warning: data definition has no type or storage class
make[1]: *** [OBJ.powerpc-apple-darwin8.9.0/nvizAppInit.o] Error 1
make: *** [nvwish] Error 2

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20070510/225dc491/attachment.html


More information about the grass-dev mailing list