[Paraview] ParaView on the Mac

Brad King brad.king at kitware.com
Mon Dec 13 18:21:14 EST 2004


Jon H Kaspersen wrote:

> Hi
> 
> I have installed a new version of TclTk (8.4.9), and I wanted to test  
> this version with
> ParaView.  I am using the framework approach for building ParaView.  The
> build dies with the following error :
> 
> Building .o file from CXX:  vtkTkRenderWidget.o...
> In file included from  
> /Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/macosx/tkMacOSXPort.h: 81,
>                  from  
> /Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/generic/tkPort.h:32,
>                  from  
> /Users/jonk/cvs/VTK/Utilities/TclTk/internals/tk8.4/tkInt.h:27,
>                  from  
> /Users/jonk/cvs/VTK/Utilities/TclTk/internals/tk8.4/tkMacOSXInt.h:19,
>                  from  
> /Users/jonk/cvs/ParaViewbin/VTK/Rendering/vtkTkInternals.h:34,
>                  from  
> /Users/jonk/cvs/ParaView/VTK/Rendering/vtkTkRenderWidget.cxx:21:
> /Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/generic/ 
> tkIntXlibDecls.h:663: error: declaration
>    of C function `void XSetDashes(Display*, _XGC*, int, const char*,  int)'
>    conflicts with
> /usr/include/X11/Xlib.h:3792: error: previous declaration `int
>    XSetDashes(Display*, _XGC*, int, const char*, int)' here
> /Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/generic/ 
> tkIntXlibDecls.h:686: error: declaration
>    of C function `KeySym XKeycodeToKeysym(Display*, unsigned char, int)'
>    conflicts with
> /usr/include/X11/Xlib.h:1799: error: previous declaration `KeySym
> 
> -----snip----
> 
> 
> Any suggestions ?

ParaView always builds its own Tcl/Tk (8.4.5) that comes in the source 
tree, so the version of Tcl on your system does not matter.  As far as 
this error, I think you have to build ParaView with

VTK_USE_COCOA:BOOL=OFF
VTK_USE_CARBON:BOOL=OFF
VTK_USE_X:BOOL=ON

-Brad



More information about the ParaView mailing list