[GRASSLIST:728] Re: Trouble compiling NVIZ
Glynn Clements
glynn.clements at virgin.net
Tue Jul 15 21:36:14 EDT 2003
David Mahoney wrote:
> I am trying to compile NVIZ on MacOSX 10.2.6, GRASS 5.0.2 and tcl/tk
> 8.4. I get this error.
>
> gcc -I/Users/dave/grass5.0.2/src/include -g -O2 -I/sw/include
> -I/usr/X11R6/include -I/Users/dave/grass5.0.2/src/libes/ogsf
> -D_NO_PROTO -D__STDC__ -I/sw/include/postgresql/libpq -c
> nvizAppInit.c -o OBJ.powerpc-apple-darwin6.6/nvizAppInit.o
> In file included from nvizAppInit.c:9:
> interface.h:257: conflicting types for `Tk_SetAppName'
> /sw/include/tkDecls.h:573: previous declaration of `Tk_SetAppName'
> make: *** [OBJ.powerpc-apple-darwin6.6/nvizAppInit.o] Error 1
>
> How can I resolve this?
5.0.2 only works with Tcl/Tk versions up to 8.3; for 8.4, you need the
attached patch.
--
Glynn Clements <glynn.clements at virgin.net>
-------------- next part --------------
--- grass/src.contrib/GMSL/NVIZ2.2/src/interface.h 2000/02/06 15:00:41 1.2
+++ grass/src.contrib/GMSL/NVIZ2.2/src/interface.h 2002/10/11 12:43:35 1.3
@@ -254,7 +254,11 @@
/* tkBind.c */
int TkCopyAndGlobalEval(Tcl_Interp *, char *);
/* tkSend.c */
-char *Tk_SetAppName(Tk_Window, char *);
+#if TK_MAJOR_VERSION==8 && TK_MINOR_VERSION==4
+ CONST char *Tk_SetAppName(Tk_Window, CONST char *);
+#else
+ char *Tk_SetAppName(Tk_Window, char *);
+#endif
int Tk_SendCmd(ClientData, Tcl_Interp *, int, char **);
int TkGetInterpNames(Tcl_Interp *, Tk_Window);
/* tkSend_old.c */
More information about the grass-user
mailing list