[GRASS5] Solaris and r3.showdspf.openGL

Wallace, Beverly T beverly.t.wallace at lmco.com
Wed Sep 10 11:36:10 EDT 2003


Hi Grass Developers,

I built the CVS snapshot, grass50_exp_2003_09_06.  
There were errors in r3.showdspf.openGL.

I am using a Sun with Solaris 9 and gcc version 2.95.3
I used configure --with-motif --without-postgres --without-odbc --without-fftw.

The following changes are needed to compile r3.showdspf.openGL with Solaris 9.

(1)  In new_init_graphics.c and main_ogl.c, change the GLwMDrawA.h include
#ifdef __sun
#include <X11/GLw/GLwMDrawA.h> 
#else
#include <GL/GLwMDrawA.h>
#endif

(2)  In main_ogl.c, add
#ifndef WAIT_ANY
#define WAIT_ANY ((pid_t) -1)
#endif

(3)  In Gmakefile, add -lGLw to OGLLIB

Hopefully (1) and (2) will work for other systems.

I don't know how to fix (3) generically.
If I add --with-glw to configure , it looks for "GL/GLwMDrawA.h" and fails because 
GLwMDrawA.h is under "X11/GLw/", not "GL/".


Bev Wallace
Lockheed Martin, Sunnyvale, CA, USA
beverly.t.wallace at lmco.com





More information about the grass-dev mailing list