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

this bug's URL: http://intevation.de/rt/webrt?serial_num=1033
-------------------------------------------------------------------------

Hi,

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. Therefore
r3.showdspf.opengl
does not compile.

Markus

--- Headers Follow ---

From neteler@itc.it Mon Apr 29 19:00:57 2002

Return-Path: <neteler@itc.it>
Delivered-To: grass-bugs@lists.intevation.de
Received: from mail.intevation.de (aktaia [212.95.126.10])
  by lists.intevation.de (Postfix) with ESMTP id 5DF57139C5
  for <grass-bugs@lists.intevation.de>; Mon, 29 Apr 2002 19:00:57 +0200 (CEST)
Received: from camelot.itc.it (camelot.itc.it [195.223.171.5])
  by mail.intevation.de (Postfix) with ESMTP id 0E1A41B6D6
  for <grass-bugs@intevation.de>; Mon, 29 Apr 2002 19:00:55 +0200 (CEST)
Received: from orchestra.itc.it (orchestra [10.0.10.11])
  by camelot.itc.it (8.11.3/8.11.3) with ESMTP id g3TH0rn05064
  for <grass-bugs@intevation.de>; Mon, 29 Apr 2002 19:00:53 +0200 (MET DST)
Received: from thuille.itc.it. (thuille [10.40.0.110])
  by orchestra.itc.it (8.11.6/8.11.6) with ESMTP id g3TH0rK13703
  for <grass-bugs@intevation.de>; Mon, 29 Apr 2002 19:00:53 +0200
Received: (from neteler@localhost)
  by thuille.itc.it. (8.11.6/8.11.2) id g3TH0rr06147
  for grass-bugs@intevation.de; Mon, 29 Apr 2002 19:00:53 +0200
Date: Mon, 29 Apr 2002 19:00:53 +0200
From: Markus Neteler <neteler@itc.it>
To: grass-bugs@intevation.de
Subject: motif and configure
Message-ID: <20020429190053.A6139@itc.it>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
X-Spam-Status: No, hits=0 required=5 tests=

-------------------------------------------- Managed by Request Tracker

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?

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.

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

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

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

Markus Neteler wrote:

> 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

[snip]

/usr/lib/libMesaGLw.a

I'll check for that as well, but does that library include the Motif
widget (use "nm /usr/lib/libMesaGLw.a")? If not, you will need
libMesaGLwM.a.

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

On Tue, Apr 30, 2002 at 06:59:34PM +0100, Glynn Clements wrote:

Markus Neteler wrote:

> > 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

[snip]

> /usr/lib/libMesaGLw.a

I'll check for that as well, but does that library include the Motif
widget (use "nm /usr/lib/libMesaGLw.a")? If not, you will need
libMesaGLwM.a.

No, it is not included in this Redhat 7.1:

  nm /usr/lib/lib*GL*.a |grep GLwCreateM
  -> nothing

So I have to compile libMesaGLwM.a (aarg).

Markus