I was building the 09-04-01 snapshot of Grass on RH7.1beta. When I tried to
build the g3d module I received the following error:
****************************************
make[3]: Entering directory
`/usr/temp/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL'
gcc -g -O2 -I/usr/temp/grass/src/include -I/usr/temp/grass/src/libes/dspf -
I/usr/temp/grass/src/libes/ogsf -I/usr/include/GL -I/usr/include/GL -I/usr/X
11R6/include -c new_init_graphics.c -o
OBJ.i686-pc-linux-gnu/new_init_graphics.o
new_init_graphics.c:16:19: Xm/Xm.h: No such file or directory
new_init_graphics.c:17:21: Xm/Form.h: No such file or directory
new_init_graphics.c:407:22: Xm/PushB.h: No such file or directory
new_init_graphics.c:408:26: Xm/RowColumn.h: No such file or directory
new_init_graphics.c:409:22: Xm/Label.h: No such file or directory
new_init_graphics.c:410:24: Xm/ToggleB.h: No such file or directory
new_init_graphics.c:411:22: Xm/Frame.h: No such file or directory
new_init_graphics.c:412:26: Xm/SeparatoG.h: No such file or directory
make[3]: *** [OBJ.i686-pc-linux-gnu/new_init_graphics.o] Error 1
make[3]: Leaving directory
`/usr/temp/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/usr/temp/grass/src.contrib/GMSL/g3d/src3d/raster'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/temp/grass/src.contrib/GMSL/g3d/src3d'
make: *** [all] Error 2
[root@charles grass]#
**********************************************
I receive this message while building other packages. Any help would be
appreciated.
Charles Beaudry
Rio de Janeiro
Charles Beaudry wrote:
I was building the 09-04-01 snapshot of Grass on RH7.1beta. When I tried to
build the g3d module I received the following error:
****************************************
make[3]: Entering directory
`/usr/temp/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL'
gcc -g -O2 -I/usr/temp/grass/src/include -I/usr/temp/grass/src/libes/dspf -
I/usr/temp/grass/src/libes/ogsf -I/usr/include/GL -I/usr/include/GL -I/usr/X
11R6/include -c new_init_graphics.c -o
OBJ.i686-pc-linux-gnu/new_init_graphics.o
new_init_graphics.c:16:19: Xm/Xm.h: No such file or directory
You don't have Motif headers installed (or, at least, not in any
standard place); g3d won't build without them.
--
Glynn Clements <glynn.clements@virgin.net>
I fixed the problem by downloading the sources for LESSTIF and building the
libraries for my system. I tried to build g3d again but got stuck in
r3.showdspf.openGL this time because of some problem with
GLwCreateMDrawingArea. Here follows the output of the g3d build process
along with the output from the part of the configure program that checks out
Mesa.
***************************************
gcc -s -o /usr/temp/grass/dist.i686-pc-linux-gnu/etc/bin/cmd/r3.showdspf
OBJ.i686-pc-linux-gnu/new_init_graphics.o OBJ.i686-pc-linux-gnu/cap_data.o
OBJ.i686-pc-linux-gnu/init_caps.o OBJ.i686-pc-linux-gnu/debugf.o
OBJ.i686-pc-linux-gnu/do_color_ogl.o OBJ.i686-pc-linux-gnu/get_color_ogl.o
OBJ.i686-pc-linux-gnu/draw_cap_ogl.o OBJ.i686-pc-linux-gnu/draw_polys_ogl.o
OBJ.i686-pc-linux-gnu/draw_cappolys_ogl.o
OBJ.i686-pc-linux-gnu/thresh_array.o OBJ.i686-pc-linux-gnu/make_header.o
OBJ.i686-pc-linux-gnu/r3_data.o OBJ.i686-pc-linux-gnu/r3_find.o
OBJ.i686-pc-linux-gnu/togif.o OBJ.i686-pc-linux-gnu/Ball.o
OBJ.i686-pc-linux-gnu/BallAux.o OBJ.i686-pc-linux-gnu/BallMath.o
OBJ.i686-pc-linux-gnu/main_ogl.o -I/usr/temp/grass/src/libes/dspf -I/usr/tem
p/grass/src/libes/ogsf -I/usr/include/GL -I/usr/include/GL -I/usr/X11R6/incl
ude /usr/temp/grass/src/libes/dspf/LIB.i686-pc-linux-gnu/libdsp3.a
/usr/temp/grass/src/libes/LIB.i686-pc-linux-gnu/libg3d.a
/usr/temp/grass/src/libes/LIB.i686-pc-linux-gnu/libdatetime.a
/usr/temp/grass/src/libes/LIB.i686-pc-linux-gnu/libgis.a -lGLU -lGL -lXm -l
X11 -lXt -lXext -L/usr/X11R6/lib -L/lib -lm -I/usr/include -L/usr/lib -lz
OBJ.i686-pc-linux-gnu/new_init_graphics.o: In function `init_graphics':
/usr/temp/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL/new_ini
t_graphics.c:569: undefined reference to `GLwCreateMDrawingArea'
/usr/temp/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL/new_ini
t_graphics.c:628: undefined reference to `GLwCreateMDrawingArea'
collect2: ld returned 1 exit status
make[3]: ***
[/usr/temp/grass/dist.i686-pc-linux-gnu/etc/bin/cmd/r3.showdspf] Error 1
make[3]: Leaving directory
`/usr/temp/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/usr/temp/grass/src.contrib/GMSL/g3d/src3d/raster'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/temp/grass/src.contrib/GMSL/g3d/src3d'
make: *** [all] Error 2
[root@charles g3d]#
***************************************
***************************************
checking GL/gl.h and GL/GLwMDrawA.h... -I/usr/include/GL
nd -I/usr/include/GL
checking for glBegin in -lGL... (cached) yes
checking for gluBeginCurve in -lGLU... (cached) yes
checking for GLwDrawingAreaMakeCurrent in -lGLw... (cached) no
checking for GLwCreateMDrawingArea in -lGLwM... (cached) no
***************************************
I suspect that the version of the widgets I have does not contain
GLwCreateMDrawingArea and I need it. Could it be that it cannot find the
widget? I have the headers GLwDrawA.h, GLwDrawAP.h, GLwMDrawA.h, and
GLwMDrawAM.h stored in /usr/include/GL. The function GLwCreateMDrawingArea
is present in GLwDrawA.h so I cannot figure what is happening. What does
(cached) mean?
Charles Beaudry
-----Original Message-----
From: Glynn Clements [mailto:glynn.clements@virgin.net]
Sent: Friday, April 13, 2001 7:23 PM
To: Charles Beaudry
Cc: GRASSLIST@baylor.edu
Subject: Re: [GRASSLIST:1734] r3.showdspf.openGL
Charles Beaudry wrote:
> I was building the 09-04-01 snapshot of Grass on RH7.1beta.
When I tried to
> build the g3d module I received the following error:
>
> ****************************************
> make[3]: Entering directory
> `/usr/temp/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL'
> gcc -g -O2 -I/usr/temp/grass/src/include
-I/usr/temp/grass/src/libes/dspf -
> I/usr/temp/grass/src/libes/ogsf -I/usr/include/GL
-I/usr/include/GL -I/usr/X
> 11R6/include -c new_init_graphics.c -o
> OBJ.i686-pc-linux-gnu/new_init_graphics.o
> new_init_graphics.c:16:19: Xm/Xm.h: No such file or directory
You don't have Motif headers installed (or, at least, not in any
standard place); g3d won't build without them.
--
Glynn Clements <glynn.clements@virgin.net>
On Sun, Apr 15, 2001 at 10:44:06AM -0300, Charles Beaudry wrote:
I fixed the problem by downloading the sources for LESSTIF and building the
libraries for my system. I tried to build g3d again but got stuck in
r3.showdspf.openGL this time because of some problem with
GLwCreateMDrawingArea. Here follows the output of the g3d build process
along with the output from the part of the configure program that checks out
Mesa.
***************************************
[snip]
/usr/temp/grass/src/libes/LIB.i686-pc-linux-gnu/libgis.a -lGLU -lGL -lXm -l
X11 -lXt -lXext -L/usr/X11R6/lib -L/lib -lm -I/usr/include -L/usr/lib -lz
OBJ.i686-pc-linux-gnu/new_init_graphics.o: In function `init_graphics':
/usr/temp/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL/new_ini
t_graphics.c:569: undefined reference to `GLwCreateMDrawingArea'
/usr/temp/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL/new_ini
t_graphics.c:628: undefined reference to `GLwCreateMDrawingArea'
[snip]
***************************************
checking GL/gl.h and GL/GLwMDrawA.h... -I/usr/include/GL
nd -I/usr/include/GL
checking for glBegin in -lGL... (cached) yes
checking for gluBeginCurve in -lGLU... (cached) yes
checking for GLwDrawingAreaMakeCurrent in -lGLw... (cached) no
checking for GLwCreateMDrawingArea in -lGLwM... (cached) no
***************************************
I suspect that the version of the widgets I have does not contain
GLwCreateMDrawingArea and I need it. Could it be that it cannot find the
widget? I have the headers GLwDrawA.h, GLwDrawAP.h, GLwMDrawA.h, and
GLwMDrawAM.h stored in /usr/include/GL. The function GLwCreateMDrawingArea
is present in GLwDrawA.h so I cannot figure what is happening. What does
(cached) mean?
The configure script caches its results. You might try removing the
file config.cache at the top level and then rerunning ./configure.
You need -lGLw at least, and depending on how Mesa Widgets are built,
you need -lGLwM as well. As you can see from above, those linker flags
aren't in the compile command hence the unresolved symbols.
Note that these g3d commands won't be in GRASS 5.0 stable as there are
some unresolved problems with them.
--
Eric G. Miller <egm2@jps.net>
Charles Beaudry wrote:
I fixed the problem by downloading the sources for LESSTIF and building the
libraries for my system. I tried to build g3d again but got stuck in
r3.showdspf.openGL this time because of some problem with
GLwCreateMDrawingArea. Here follows the output of the g3d build process
along with the output from the part of the configure program that checks out
Mesa.
checking for GLwDrawingAreaMakeCurrent in -lGLw... (cached) no
checking for GLwCreateMDrawingArea in -lGLwM... (cached) no
You don't have the OpenGL drawing area widgets, which is also required
to build g3d. Mesa includes the code for this, but doesn't build it by
default. (NB: this was the case for Mesa 3.0; I haven't looked at it
recently). XFree86 4.0.x also includes these widgets, but configure
won't detect the Motif version (due to GLwCreateMDrawingArea being a
macro).
Given that configure detected this, the suggestion to build g3d
shouldn't really have been made, IMHO (however, the suggestion to
build g3d was removed altogether shortly after the 09-04-01 snapshot,
which makes the issue somewhat irrelevant now).
--
Glynn Clements <glynn.clements@virgin.net>