[GRASSLIST:1739] RE: r3.showdspf.openGL

Charles Beaudry beaudryc at noranda.com.br
Sun Apr 15 09:44:06 EDT 2001


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 at 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 at virgin.net]
> Sent: Friday, April 13, 2001 7:23 PM
> To: Charles Beaudry
> Cc: GRASSLIST at 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 at virgin.net>
>




More information about the grass-user mailing list