[GRASS5] 5.7: r3.showdspf: Xm/Xm.h problem
Markus Neteler
neteler at itc.it
Fri Jun 18 12:26:11 EDT 2004
On Fri, Jun 18, 2004 at 02:04:07PM +0100, Glynn Clements wrote:
>
> Markus Neteler wrote:
>
> > I just tried to compile 5.7 on another machine and got following
> > problem:
> >
> > [neteler at wfpovo238 r3.showdspf]$ make
> > gcc -I/home/neteler/soft/57grass_cvsexp/include -I/home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu/include -g -O2 -Wall -Wconversion -Wno-implicit-int -I../../lib/dspf -I -I/usr/X11R6/include -I/home/neteler/soft/57grass_cvsexp/include -I/home/neteler/soft/57grass_cvsexp/dist.i686-pc-linux-gnu/include \
> > -o OBJ.i686-pc-linux-gnu/main_ogl.o -c main_ogl.c
> > main_ogl.c:7:19: Xm/Xm.h: No such file or directory
> > main_ogl.c:8:21: Xm/Form.h: No such file or directory
> > In file included from vizual2.h:89,
> > from vizual.h:1,
> > from main_ogl.c:18:
> > [...]
> >
> > But:
> > [neteler at wfpovo238 r3.showdspf]$ locate Xm.h
> > /usr/X11R6/include/Xm/Xm.h
> > [neteler at wfpovo238 r3.showdspf]$ locate Xm/Form.h
> > /usr/X11R6/include/Xm/Form.h
>
> > Any ideas why the Xm.h is not found?
>
> Is it really there? "locate" tells you what was found the last time
> that updatedb was run, which may not correspond to the current state
> of the filesystem.
Yes, I checked it:
[neteler at wfpovo238 r3.showdspf]$ locate Xm/Xm.h
/usr/X11R6/include/Xm/Xm.h
[neteler at wfpovo238 r3.showdspf]$ head /usr/X11R6/include/Xm/Xm.h
/**
*
* $Header: /cvsroot/lesstif/lesstif/include/Motif-2.1/Xm/Xm.h.in,v 1.33 2002/09/10 22:09...
>
> I note that the gcc command has the -I/usr/X11R6/include switch; if
> that doesn't work, I don't know what will.
Ah, found it, it was confused by '-I'. So the Makefile is not
right. After fixing that
GLXContext
is not found. Maybe
/usr/X11R6/include/GL/glx.h
must be included. I have added that to now 5.3's kns_defines.h file.
Tested ok on redhat9 and Mandrake 10.
Markus
More information about the grass-dev
mailing list