<HTML>
<HEAD>
<TITLE>nviz broken on G5 iMac</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I just compiled a cvs version I updated a few minutes ago, and nviz bombed. The rest of GRASS runs OK. I tried to start nviz just to see what is happening. It started the OSX tcltk aqua and then crashed.<BR>
<BR>
I’m using a G5 iMac (not Intel) with OS X 10.4.7.<BR>
<BR>
I’m putting the compiler errors below. Problems both with OGSF and NVIZ.<BR>
<BR>
Michael<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution & Social Change <BR>
Center for Social Dynamics and Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
<BR>
<BR>
=======================<BR>
Errors in:<BR>
/Users/cmbarton/grass_dev/grass6/lib/ogsf<BR>
<BR>
anthgradpc7:~/grass_dev/grass6/lib/ogsf cmbarton$ makegcc -I/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include -I/usr/local/grasslib/include -g -O2 -I/usr/local/grasslib/include -fno-common -DPACKAGE=\""grasslibs"\" -I/usr/local/grasslib/include -I/usr/X11R6/include -DPACKAGE=\""grasslibs"\" -I/usr/X11R6/include -I/usr/local/grasslib/include -I/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include \ -o OBJ.powerpc-apple-darwin8.7.0/GS2.o -c GS2.cIn file included from /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/gstypes.h:340, from GS2.c:30:/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:200: warning: parameter names (without types) in function declaration/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:201: error: parse error before 'GLuint'/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:458: error: parse error before 'gsd_set_font'/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:458: warning: data definition has no type or storage class<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:461: error: parse error before 'float'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:474: error: parse error before 'GLuint'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:494: error: parse error before 'GLuint'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:555: error: parse error before 'int'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:747: error: parse error before 'gsd_put_legend'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:747: error: parse error before 'GLuint'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:747: warning: data definition has no type or storage class<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:748: warning: parameter names (without types) in function declaration<BR>
GS2.c:47: error: parse error before '*' token<BR>
GS2.c: In function 'GS_set_Narrow':<BR>
GS2.c:436: error: 'GLdouble' undeclared (first use in this function)<BR>
GS2.c:436: error: (Each undeclared identifier is reported only once<BR>
GS2.c:436: error: for each function it appears in.)<BR>
GS2.c:436: error: parse error before 'modelMatrix'<BR>
GS2.c:437: error: 'GLint' undeclared (first use in this function)<BR>
GS2.c:458: error: 'GL_MODELVIEW_MATRIX' undeclared (first use in this function)<BR>
GS2.c:458: error: 'modelMatrix' undeclared (first use in this function)<BR>
GS2.c:459: error: 'GL_PROJECTION_MATRIX' undeclared (first use in this function)<BR>
GS2.c:459: error: 'projMatrix' undeclared (first use in this function)<BR>
GS2.c:460: error: 'GL_VIEWPORT' undeclared (first use in this function)<BR>
GS2.c:460: error: 'viewport' undeclared (first use in this function)<BR>
GS2.c:463: error: parse error before 'out_near'<BR>
GS2.c:469: error: parse error before 'pt'<BR>
GS2.c:472: error: parse error before 'pt'<BR>
GS2.c:478: error: 'factor' undeclared (first use in this function)<BR>
GS2.c:478: error: 'out_near' undeclared (first use in this function)<BR>
GS2.c:478: error: 'out_far' undeclared (first use in this function)<BR>
GS2.c:480: error: 'out' undeclared (first use in this function)<BR>
GS2.c: At top level:<BR>
GS2.c:673: error: parse error before 'GLuint'<BR>
GS2.c: In function 'GS_draw_legend':<BR>
GS2.c:680: error: 'name' undeclared (first use in this function)<BR>
GS2.c:680: error: 'fontbase' undeclared (first use in this function)<BR>
GS2.c:680: error: 'size' undeclared (first use in this function)<BR>
GS2.c:680: error: 'flags' undeclared (first use in this function)<BR>
GS2.c:680: error: 'range' undeclared (first use in this function)<BR>
GS2.c:680: error: 'pt' undeclared (first use in this function)<BR>
GS2.c: At top level:<BR>
GS2.c:686: error: parse error before 'list_id'<BR>
GS2.c: In function 'GS_draw_list':<BR>
GS2.c:692: error: 'list_id' undeclared (first use in this function)<BR>
GS2.c: At top level:<BR>
GS2.c:710: error: parse error before 'list_id'<BR>
GS2.c: In function 'GS_delete_list':<BR>
GS2.c:713: error: 'list_id' undeclared (first use in this function)<BR>
GS2.c: In function 'GS_zoom_setup':<BR>
GS2.c:2400: error: 'GLint' undeclared (first use in this function)<BR>
GS2.c:2400: error: parse error before 'tmp'<BR>
GS2.c:2402: error: 'tmp' undeclared (first use in this function)<BR>
GS2.c:2402: error: 'num' undeclared (first use in this function)<BR>
GS2.c: In function 'GS_init_view':<BR>
GS2.c:2806: error: 'GL_MODELVIEW' undeclared (first use in this function)<BR>
GS2.c:2826: error: 'GL_DEPTH_TEST' undeclared (first use in this function)<BR>
GS2.c:2827: error: 'GL_LEQUAL' undeclared (first use in this function)<BR>
GS2.c: In function 'GS_clear':<BR>
GS2.c:2887: error: 'GL_DEPTH_BUFFER_BIT' undeclared (first use in this function)<BR>
GS2.c:2887: error: 'GL_COLOR_BUFFER_BIT' undeclared (first use in this function)<BR>
GS2.c: In function 'GS_get_aspect':<BR>
GS2.c:2900: error: 'GLint' undeclared (first use in this function)<BR>
GS2.c:2900: error: parse error before 'tmp'<BR>
GS2.c:2912: error: 'GL_VIEWPORT' undeclared (first use in this function)<BR>
GS2.c:2912: error: 'tmp' undeclared (first use in this function)<BR>
make: *** [OBJ.powerpc-apple-darwin8.7.0/GS2.o] Error 1<BR>
====================<BR>
<BR>
Errors in:<BR>
/Users/cmbarton/grass_dev/grass6/visualization/nviz<BR>
<BR>
anthgradpc7:~/grass_dev/grass6/visualization/nviz cmbarton$ make<BR>
cd src ; make<BR>
gcc -I/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include -I/usr/local/grasslib/include -g -O2 -I/usr/local/grasslib/include -I/usr/local/grasslib/include -I/usr/local/grasslib/include -I/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include -I/usr/local/grasslib/include -I/usr/local/grasslib/include -DPACKAGE=\""grassmods"\" -I/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include \<BR>
-o OBJ.powerpc-apple-darwin8.7.0/nvizAppInit.o -c nvizAppInit.c<BR>
In file included from togl.h:16,<BR>
from nvizAppInit.c:8:<BR>
togl_ws.h:14:3: error: #error None of OPENGL_X11, OPENGL_AQUA or OPENGL_WINDOWS defined<BR>
In file included from nvizAppInit.c:8:<BR>
togl.h:53:23: error: GL/gl.h: No such file or directory<BR>
In file included from nvizAppInit.c:8:<BR>
togl.h:165: error: parse error before 'Togl_LoadBitmapFont'<BR>
togl.h:165: warning: data definition has no type or storage class<BR>
togl.h:166: error: parse error before 'GLuint'<BR>
togl.h:215: error: parse error before 'left'<BR>
In file included from /Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/gstypes.h:340,<BR>
from interface.h:23,<BR>
from nvizAppInit.c:9:<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:200: warning: parameter names (without types) in function declaration<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:201: error: parse error before 'GLuint'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:458: error: parse error before 'gsd_set_font'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:458: warning: data definition has no type or storage class<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:461: error: parse error before 'float'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:474: error: parse error before 'GLuint'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:494: error: parse error before 'GLuint'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:555: error: parse error before 'int'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:747: error: parse error before 'gsd_put_legend'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:747: error: parse error before 'GLuint'<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:747: warning: data definition has no type or storage class<BR>
/Users/cmbarton/grass_dev/grass6/dist.powerpc-apple-darwin8.7.0/include/grass/ogsf_proto.h:748: warning: parameter names (without types) in function declaration<BR>
In file included from nvizAppInit.c:9:<BR>
interface.h:67: error: parse error before 'FontBase'<BR>
interface.h:67: warning: data definition has no type or storage class<BR>
interface.h:280: error: parse error before 'load_font'<BR>
interface.h:280: warning: data definition has no type or storage class<BR>
make[1]: *** [OBJ.powerpc-apple-darwin8.7.0/nvizAppInit.o] Error 1<BR>
make: *** [nvwish] Error 2<BR>
====================<BR>
<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>