[GRASS-dev] Re: nviz broken on G5 iMac

William Kyngesburye woklist at kyngchaos.com
Mon Jul 17 15:27:17 EDT 2006


On Jul 17, 2006, at 1:17 PM, Michael Barton wrote:

> 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.
>
> I’m using a G5 iMac (not Intel) with OS X 10.4.7.
>
> I’m putting the compiler errors below. Problems both with OGSF and  
> NVIZ.
>
> 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
>
>
> =======================
> Errors in:
> /Users/cmbarton/grass_dev/grass6/lib/ogsf
>
> 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

I haven't had this problem with a Tcltk aqua build.  Maybe something  
to do with the next one, since the OpenGL headers won't be included  
without any OPENGL_* defined.

> Errors in:
> /Users/cmbarton/grass_dev/grass6/visualization/nviz
>
> anthgradpc7:~/grass_dev/grass6/visualization/nviz cmbarton$ make
> cd src ; make
> 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 \
>         -o OBJ.powerpc-apple-darwin8.7.0/nvizAppInit.o -c  
> nvizAppInit.c
> In file included from togl.h:16,
>                  from nvizAppInit.c:8:
> togl_ws.h:14:3: error: #error None of OPENGL_X11, OPENGL_AQUA or  
> OPENGL_WINDOWS defined
>
How did you configure GRASS for the Aqua Tcl/Tk?  There is the new -- 
with-opengl=aqua option which you should use in place of manually  
setting include and lib dirs (--with-opengl-includes=, --with-opengl- 
libs=).  This will set the correct OPENGL_* define.  Though it's  
supposed to default to OPENGL_X11.

I started writing an email for the list to describe the new options,  
but got distracted.

Did you build your own Tcl/Tk Aqua, or use my package, or the old Tcl/ 
Tk Aqua, or Apple's from Tiger?

-----
William Kyngesburye <kyngchaos at kyngchaos.com>
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled  
with hyena offal?
Second Pogril: I don't know.  Why IS life like sticking your head in  
a bucket filled with hyena offal?
First Pogril: I don't know either.  Wretched, isn't it?

-HitchHiker's Guide to the Galaxy





More information about the grass-dev mailing list