[GRASS-dev] TOGL issue - was Re: nviz link broken
Markus Neteler
neteler at itc.it
Tue Jun 13 07:29:24 EDT 2006
Markus Neteler wrote on 06/13/2006 10:03 AM:
>Glynn Clements wrote on 06/13/2006 01:55 AM:
>
>
>
>>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.
>>
>>
>>
>>
>
>Thanks, now it reports:
>
>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=0 -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
>In file included from nvizAppInit.c:8:
>togl.h:51:27: OpenGL/gl.h: No such file or directory
>...
>
>-> -DUSE_X11=0
>which is at least easier to test.
>
>
>
>>>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.
>>
>>
>>
>>
>>
>checking whether setpgrp takes no argument... yes
>checking for W11... no
>checking for X... no
>checking whether to use Curses... yes
>checking for curses.h... yes
>
>HA! I'll check if X is installed, apparently only partially on the new
>server...
>
>rpm -qa | grep xorg
>xorg-x11-Mesa-libGLU-6.8.2-1.EL.13.25
>xorg-x11-deprecated-libs-devel-6.8.2-1.EL.13.25
>xorg-x11-libs-6.8.2-1.EL.13.25
>xorg-x11-devel-6.8.2-1.EL.13.25
>xorg-x11-Mesa-libGL-6.8.2-1.EL.13.25
>xorg-x11-deprecated-libs-6.8.2-1.EL.13.25
>xorg-x11-xauth-6.8.2-1.EL.13.25.1
>
>I'll check.
>
>
Problem solved:
The PATH definition in the cronjob was lacking /usr/X11R6/bin
since xmkmf is needed for the test. Unfortunately configure isn't very
chatty to indicate that xmkmf wasn't found. Anyway, now it works:
Finally
http://grass.itc.it/grass61/manuals/html61_user/nviz.html
is back. Thanks, Hamish for pointing out and Glynn for fixing the
test (maybe unrelated) and indicating the problem.
Markus
More information about the grass-dev
mailing list