[GRASSLIST:3950] Re: Errors compiling GRASS 5.7 with openGL

Glynn Clements glynn.clements at virgin.net
Sun Jul 18 10:19:57 EDT 2004


Andy Bernat wrote:

> I've run into errors when I run make.  I ran configure, setting
> with-opengl=true, and got no errors.  When I run make I get the
> following errors: 
> 
> [... many lines of normal compile messages ...]
> 
> ogsf
> make[2]: Entering directory `/home/Andy/sources/grass-5.7.0/lib/ogsf'
> gcc -I/home/Andy/sources/grass-5.7.0/include
> -I/home/Andy/sources/grass-5.7.0/dist.i686-pc-linux-gnu/include -g -O2 
> -Wall -Wconversion -Wno-implicit-int   -fPIC -I/usr/local/include
> -DUSE_GDAL_H  -I/usr/X11R6/include   
> -I/home/Andy/sources/grass-5.7.0/include
> -I/home/Andy/sources/grass-5.7.0/dist.i686-pc-linux-gnu/include \
>         -o OBJ.i686-pc-linux-gnu/GK2.o -c GK2.c
> 
> In file included from /usr/X11R6/include/GL/gl.h:36,
>                  from gstypes.h:15,
>                  from GK2.c:6:
> /usr/X11R6/include/GL/Enumerations.H:178: error: parse error before
> "fl_define_FL_ROUND_UP_BOX"

Your OpenGL headers are broken.

> /usr/X11R6/include/GL/Enumerations.H:178: warning: data definition has
> no type or storage class
> /usr/X11R6/include/GL/Enumerations.H:181: error: parse error before
> "fl_define_FL_SHADOW_BOX"
> [.... Many more similar lines ...]
> 
> I'm running SuSE 9.0 with an NVIDIA graphics card.

Don't use nVidia's OpenGL headers for building software.

> OpenGL seems to be
> installed correctly because 3Ddiag reports no errors and other opengl
> applications work fine.  Any suggestions are greatly appreciated. 

That only reflects that the run-time components work; it doesn't tell
you anything about the headers.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list