[GRASS-dev] TOGL issue - was Re: nviz link broken

Glynn Clements glynn at gclements.plus.com
Mon Jun 12 19:55:54 EDT 2006


Markus Neteler wrote:

> > > http://grass.itc.it/grass61/manuals/html61_user/
> > > 
> > > nviz link is broken?
> > 
> > Yes. This means that the compilation of the Linux snapshot failed.
> > Verification:
> >  http://grass.itc.it/grass61/binary/linux/snapshot/error.log
> >  -> apparently there are/were compilation issues.
> > 
> > I can try to investigate.
> 
> Done:
> 
> make[3]: Entering directory `/hardmnt/krokus0/neteler/grass61binarybuild/grass6/grass6/visualization/nviz/src'
> gcc -I/hardmnt/krokus0/neteler/grass61binarybuild/grass6/grass6/dist.x86_64-unknown-linux-gnu/include  -O2       -I/hardmnt/krokus0/neteler/grass61binarybuild/grass6/grass6/dist.x86_64-unknown-linux-gnu/include    -I/usr/local/include  -DUSE_X11=    -DPACKAGE=\""grassmods"\"  -I/hardmnt/krokus0/neteler/grass61binarybuild/grass6/grass6/dist.x86_64-unknown-linux-gnu/include \
>         -o OBJ.x86_64-unknown-linux-gnu/nvizAppInit.o -c nvizAppInit.c

Note: -DUSE_X11=

This should be -DUSE_X11=1 if configure detected X.

> In file included from togl.h:16,
>                  from nvizAppInit.c:8:
> togl_ws.h:5:12: #if with no expression

Hmm. I'll need to change the Makefile for that. USE_X11 is either 1 or
empty, which isn't easy to test for in a #if directive.

> In file included from nvizAppInit.c:8:
> togl.h:51:27: OpenGL/gl.h: No such file or directory

Due to the USE_X11 test failing, Togl thinks it's being compiled for a
Mac.

> I guess I missed the related discussion recently.
> According to the ChangeLog it is related to Glynn's TOGL
> update.

It is. However, the fact that USE_X11 isn't getting set is the root of
the problem.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list