[GRASSLIST:6135] problem compiling g3d

Nico Hardebol harj at geo.vu.nl
Fri Apr 25 06:37:16 EDT 2003


dear grasslist,

working on a geologic/geophysical project in my masters I want  combine
surface functionalities of a GIS with 3d modelling techniques
(interpolations, voxel-calculations and visualisations with isosurfaces...
I already had the intention to switch some of the data-handling to grass but
for a combined 2d and 3d voxel approach I recognize grass as the only
suitable solution.
I'm testing the possibilities of grass5 in combi. with PostgreSQL/
R-statistics / and 3dvoxel on a dell inspiron 8200 with suse linux 8.2 -
afterwards I want to realise the same on our solaris workstations.

So want to get the 3d voxel routines compiled - g3d / SG3d / sg4d - However
I get g3d not completely compiled..
is it true that
-g3d offer 3d raster /voxel grass modules r3.... fuly integrated with
grass - data shared in grass database
-SG3d offer an additional graphical interface apart from grass gis.
-sg4d - further modified SG3d graphical environment with additional
funcitonality??
- I found on //skagit.meas.ncsu.edy/~helena/gmslab/gssoils/vizrep2.html more
info which I think offer enough answers..
so..

to start with g3d in order to have 3d raster modules in grass I did:

gmake -i src.contrib/GMSL/g3d 2>&1 | tee compileOutput.log

some functions are compiled properly lik r3.info... but
#################################################################
/home/nico/grass5.0.2/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL
  make -f OBJ.i686-pc-linux-gnu/make.rules

make[3]: Entering directory
`/home/nico/grass5.0.2/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL'
gcc -I/home/nico/grass5.0.2/src/include -g -O2   -I/home/nico/grass5.0.2/src
/libes/dspf -I/home/nico/grass5.0.2/src/libes/ogsf   -I/usr/X11R6/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
In file included from /usr/X11R6/include/GL/GLwMDrawA.h:26,
                 from new_init_graphics.c:19:
/usr/X11R6/include/GL/GLwDrawA.h:128: error: parse error before
"glwMDrawingAreaWidgetClass"
/usr/X11R6/include/GL/GLwDrawA.h:128: warning: data definition has no type
or storage class
/usr/X11R6/include/GL/GLwDrawA.h:160: error: parse error before "Dimension"
/usr/X11R6/include/GL/GLwDrawA.h:160: warning: no semicolon at end of struct
or union
/usr/X11R6/include/GL/GLwDrawA.h:162: warning: data definition has no type
or storage class
/usr/X11R6/include/GL/GLwDrawA.h:179: error: parse error before "w"
/usr/X11R6/include/GL/GLwDrawA.h:180: error: parse error before "w"
/usr/X11R6/include/GL/GLwDrawA.h:187: error: parse error before
"GLwCreateMDrawingArea"
/usr/X11R6/include/GL/GLwDrawA.h:187: error: parse error before "parent"
/usr/X11R6/include/GL/GLwDrawA.h:187: warning: data definition has no type
or storage class
etc... many more errors...
make[3]: *** [OBJ.i686-pc-linux-gnu/new_init_graphics.o] Error 1
make[3]: Leaving directory
`/home/nico/grass5.0.2/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/nico/grass5.0.2/src.contrib/GMSL/g3d/src3d/raster'
make[1]: *** [all] Error 1
make[1]: Leaving directory
`/home/nico/grass5.0.2/src.contrib/GMSL/g3d/src3d'
make: *** [all] Error 2

somewhere I read that grass configured with GLw is required to compile these
additional modules (g3d etc..) properly - since I recognize problems with
GLw in the error message - is this true?
So
./configure --with-postgres-includes=/usr/local/pgsql/include --with-postgre
s-libs=/usr/local/pgsql/lib --with-dbm --with-gdal=/home/nico/gdal-1.1.8 --w
ith-glw --with-glw-includes=/usr/X11R6/include/ --with-freetype --with-freet
ype-includes=/usr/include/freetype2 --with-freetype-libs=/usr/lib

.....
checking for location of FFTW library...
checking for fftwnd_one in -lfftw... no
checking for fftwnd_one in -ldfftw... yes
checking whether to use BLAS... no
checking whether to use LAPACK... no
checking whether to use Motif... no
checking whether to use GLw... yes
checking for location of GLw includes...
checking for GL/GLwMDrawA.h... no
configure: error: *** Unable to locate GLwM includes.

why can't he find GLwMDrawA.h since it's located in /usr/X11R/include/GL/

earlier with other version of GLw I passed GLw includes but received error
at GLw libraries .. couldn't find GLwCreateMDrawing....

I've both tried the mesa-devel-5.0-62.i586.rpm as
XFree86-GLX-devel-4.3.0-15.i586.rpm including the Glw lib & incl
with GLwDraWA.h in /usr/X11R6/include/GL/GLwMDrawA.h
and GLwCreateMDrawingArea.... is this
/usr/X11R6/man/man3/GLwCreateMDrawingArea.3x.gz?? not an include..

I also recognized differences in the size of the files required between the
different packages - differnece in content - does this matter?
Any idea to solve this problem?

thanking in advance,

Nico




More information about the grass-user mailing list