[GRASSLIST:406] Re: 5.0.2 & snpsh20030614 Compilation errors

Glynn Clements glynn.clements at virgin.net
Mon Jun 16 23:16:55 EDT 2003


Soil & Water Lab. wrote:

> So, now I just have two compilation errors (still with 
> grass50_exp_2003_06_14):
> 
> *****
> g3d failed to compile with the "./configure:make:make install" dance. Another 
> try with gmake5 in src.contrib/GMSL/g3d gives me this:
> 
> make[3]: Entering directory 
> `/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL'

[snip]

>   Motif support:              no

>   GLw support:                no

You have to use both --with-motif and --with-glw to get
r3.showdspf.openGL to compile. Of course, you have to actually have
Motif and the Motif version of GLw[1], otherwise configure will fail.

[1] Furthermore, the GLw library has to be compatible with both your
Motif library and your OpenGL libraries (libGL and libGLU). There are
enough common permutations of Motif, OpenGL, GLU and GLw that it's
quite common to find that they aren't all compatible with each other.

> d.text.freetype also fails to compile. A gmake5 gives this :

> /opt/src/grass5/grass50_exp_2003_06_14/src/display/d.text.freetype
>   make -f OBJ.i686-pc-linux-gnu/make.rules
> 
> gcc -I/opt/src/grass5/grass50_exp_2003_06_14/src/include -g -O2   
> -I/usr/local/include/freetype2/freetype  -c main.c -o 
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is almost certainly incorrect; it should probably be just
/usr/local/include/freetype2 (without the last directory).

d.text.freetype looks for <freetype/freetype.h>; unless you actually
have /usr/local/include/freetype2/freetype/freetype/freetype.h (with
the extra "freetype" directory), it will probably end up using
/usr/include/freetype/freetype.h, which is probably FreeType version
1, which won't work.

Probable solution:

	./configure --with-freetype-includes=/usr/local/include/freetype2 ...

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




More information about the grass-user mailing list