[GRASS5] [bug #1033] (grass) motif and configure

Markus Neteler neteler at itc.it
Tue Apr 30 02:48:50 EDT 2002


On Mon, Apr 29, 2002 at 08:32:43PM +0100, Glynn Clements wrote:
> 
> Request Tracker wrote:
> 
> > it seems that there are problems to pick up the
> > MOTIF/lesstif libs/includes:
> > 
> > configure
> > [...]
> > checking whether to use Motif... yes
> > checking for location of Motif includes...
> > /usr/X11R6/LessTif/Motif1.2/include
> > checking for Xm/Xm.h... yes
> > checking for location of Motif library... /usr/X11R6/LessTif/Motif1.2/lib
> > checking for XmStringCreate in -lXm... yes
> > [...]
> > 
> > so far so nice. But
> > 
> > grep OPEN src/CMD/head/*
> > src/CMD/head/head.i686-pc-linux-gnu:OPENGLINC           =
> > src/CMD/head/head.i686-pc-linux-gnu:OPENGLwINC          =
> > src/CMD/head/head.i686-pc-linux-gnu:OPENGLLIB           =   -lGL
> > src/CMD/head/head.i686-pc-linux-gnu:OPENGLULIB          =   -lGLU
> > 
> > does not contain the directories.
> 
> 1. Are we discussing OpenGL or Motif here?

Aehm, sorry - I was obviously confused.
 
> 2. It probably doesn't need any directories. Any program using either
> OpenGL or Motif will have to include the appropriate X flags (neither
> library will work without X) so, if those libraries are in
> /usr/X11R6/lib, no additional switches need to be added by configure.
> 
> Given the configure output, I *would* expect to see directories for
> the Motif libraries, e.g. something like:
> 
> XMLIB               = -L/usr/X11R6/LessTif/Motif1.2/lib -lXm
> 
> > Therefore
> > r3.showdspf.opengl
> > does not compile.

The MOTIF issue is solved now (I have adjusted the Gmakefile).

> 3. Or are we discussing the OpenGL widget library (lib*GLw*)? Which is
> a separate problem to either OpenGL or Motif.

Yes, this problem remains (GLwCreateMDrawingArea is needed for compilation):

configure ... --with-glw
[...]
checking whether to use GLw... yes
checking for location of GLw includes... 
checking for GL/GLwMDrawA.h... yes
checking for location of GLw library... 
checking for GLwCreateMDrawingArea in -lGLw... no
checking for GLwCreateM1DrawingArea in -lGLw... no
checking for GLwCreateM2DrawingArea in -lGLw... no
checking for GLwCreateMDrawingArea in -lGLwM... no
checking for GLwCreateM1DrawingArea in -lGLwM... no
checking for GLwCreateM2DrawingArea in -lGLwM... no
configure: error: *** Unable to locate GLwM library.

On my Redhat box is
locate GLw 
/usr/share/man/man3/GLwCreateMDrawingArea.3x.gz
/usr/share/man/man3/GLwDrawingArea.3x.gz
/usr/share/man/man3/GLwDrawingAreaMakeCurrent.3x.gz
/usr/share/man/man3/GLwDrawingAreaSwapBuffers.3x.gz
/usr/lib/libMesaGLw.a
/usr/include/GL/GLwDrawA.h
/usr/include/GL/GLwDrawAP.h
/usr/include/GL/GLwMDrawA.h
/usr/include/GL/GLwMDrawAP.h

Hopefully this is of help for you.
Thanks,

 Markus



More information about the grass-dev mailing list