[vtkusers] compiling VTK on Mac OSX with Python
Martin Costabel
costabel at wanadoo.fr
Thu Dec 2 02:25:43 EST 2004
Dave Reed wrote:
> Hi,
>
> I'm trying to get VTK with Python support compiled on Mac OS X 10.3. I'm
> a long time Linux and Solaris user but just getting started with OS X so
> I'm not up on all the changes that need made.
You could try the Fink package vtk-py23. It is vtk 4.4 and works with
the python-2.3 installed by Fink.
[]
> /Users/dreed/VTK/Rendering/tkInternals/tk84OSX/tkIntXlibDecls.h:935:
> error: declaration
> of C function `void XQueryColor(Display*, long unsigned int, XColor*)'
> conflicts with
> /usr/include/X11/Xlib.h:3484: error: previous declaration `int
> XQueryColor(Display*, long unsigned int, XColor*)' here
> /Users/dreed/VTK/Rendering/tkInternals/tk84OSX/tkIntXlibDecls.h:939:
> error: declaration
> of C function `void XQueryColors(Display*, long unsigned int,
> XColor*, int)'
> conflicts with
> /usr/include/X11/Xlib.h:3493: error: previous declaration `int
> XQueryColors(Display*, long unsigned int, XColor*, int)' here
> In file included from /Users/dreed/VTK/Rendering/vtkTkRenderWidget.cxx:38,
> from
> /Users/dreed/VTK/Rendering/vtkTkRenderWidgetPython.cxx:17:
> /Users/dreed/VTK/Rendering/tkInternals/tk84OSX/tkMacOSXInt.h:20:22:
> tkMacOSX.h: No such file or directory
You need to switch VTK_USE_CARBON off when you build for X11.
--
Martin
More information about the vtkusers
mailing list