[Paraview] Compiling error
David Lonie
david.lonie at kitware.com
Tue Dec 4 08:44:34 EST 2012
Hi Tom,
On Mon, Dec 3, 2012 at 11:43 AM, Tom T <tomt147 at yahoo.com> wrote:
> Hi everyone,
>
> I've been trying so far unsuccessfully to compile paraview and I'm not sure
> what the error message means.
>
> [snip]
>
> /scratch/fronk/software/ParaView/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx:
> In member function ‘virtual bool
> vtkMatplotlibMathTextUtilities::StringToPath(const char*, vtkPath*,
> vtkTextProperty*)’:
> /scratch/fronk/software/ParaView/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx:581:
> error: ‘Py_ssize_t’ was not declared in this scope
Py_ssize_t is a type defined by the python C API, but it looks like it
wasn't introduced until Python 2.5, so I'm guess that you have an
older version of python installed? What is the output of "python
--version"?
The matplotlib library requires python >= 2.6, so if your python is
older than this, you'll need to update your python installation, or
disable matplotlib in the ParaView build by editing
CMake/VTKModules.cmake and commenting out this section (around line
350):
# Enable vtkRenderingMatplotlib for math text rendering if python is available
if (PARAVIEW_ENABLE_PYTHON)
list (APPEND _vtk_modules vtkRenderingMatplotlib)
endif()
I'll push a patch to only enable the matplotlib module when python is
an appropriate version.
Thanks for the report!
Dave
More information about the ParaView
mailing list