On Tue, Dec 16, 2003 at 03:26:26PM -0500, Christopher Fonnesbeck wrote:
Has anyone tried using tk8.5 when building 5.7? I get the following
build error:
gcc -I/usr/local/src/grass57_exp_2003_11_22/include
-I/usr/local/src/grass57_exp_2003_11_22/dist.powerpc-apple-darwin7.0.0/
include -I/usr/X11R6/include -I/usr/local/include -I/sw/include
-faltivec -lcc_dynamic -framework vecLib -Wall -Wconversion
-Wno-implicit-int -I/usr/X11R6/include -I/usr/local/include
-I/sw/include -I/usr/local/src/grass57_exp_2003_11_22/include
-I/usr/local/src/grass57_exp_2003_11_22/dist.powerpc-apple-darwin7.0.0/
include -D_NO_PROTO -D__STDC__ -I/usr/local/include
-I/usr/local/include -DUSE_GDAL_H
-I/usr/local/src/grass57_exp_2003_11_22/include
-I/usr/local/src/grass57_exp_2003_11_22/dist.powerpc-apple-darwin7.0.0/
include \
-o OBJ.powerpc-apple-darwin7.0.0/nvizAppInit.o -c nvizAppInit.c
<command line>:9:1: warning: "__STDC__" redefined
In file included from nvizAppInit.c:9:
interface.h:266: error: conflicting types for `Tk_SetAppName'
/usr/local/include/tkDecls.h:573: error: previous declaration of
`Tk_SetAppName'
nvizAppInit.c:43: warning: `RunScripts' defined but not used
make[3]: *** [OBJ.powerpc-apple-darwin7.0.0/nvizAppInit.o] Error 1
make[2]: *** [nvwish] Error 2
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1
Should be easy to fix. In interface.h (visualization/nviz/src/):
#if TK_MAJOR_VERSION==8 && TK_MINOR_VERSION==4
try to change to #if TK_MAJOR_VERSION==8 && TK_MINOR_VERSION>=4
Please report if it works.
Markus
--
Markus Neteler <neteler@itc.it> http://mpa.itc.it
ITC-irst - Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18 - 38050 Povo (Trento), Italy
I was using the development version, but it should be released soon. I haven't had a chance to try the suggested fix; I had to drop back to 8.4 to get some work done. I will try it soon.
Thanks!
C.
--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia