[Paraview-developers] paraview build problem

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Nov 7 11:47:07 EST 2012


Pandu,

PYTHON_LIBRARY variable should point to the "python*.lib" or "python*.so"
or "python*.dylib" file and not simply the directory containing that file.

Utkarsh


On Wed, Nov 7, 2012 at 11:44 AM, Pandu tech <pandu4tech at gmail.com> wrote:

> Hi,
>
> I am trying to build latest version of ParaView. I added the following
> CMAKE flags
>                 -DPYTHON_EXECUTABLE=${TEMP_DIR}/Python-2.6.2/python \
>                 -DPYTHON_INCLUDE_DIR=${TEMP_DIR}/Python-2.6.2/Include \
>                 -DPYTHON_INCLUDE=${TEMP_DIR}/Python-2.6.2/Include \
>                 -DPYTHON_LIBRARY=${TEMP_DIR}/Python-2.6.2/Lib \
>
> and now paraview takes python lib from
> -- Found PythonLibs: /home/user/customParaView/build/Python-2.6.2/Lib
>
> Paraview build failed with following error:
>
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/vtkPythonArgs.cxx:773:
> undefined reference to `PySequence_Check'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/vtkPythonArgs.cxx:776:
> undefined reference to `PySequence_Size'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/vtkPythonArgs.cxx:788:
> undefined reference to `PySequence_GetItem'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/vtkPythonArgs.cxx:805:
> undefined reference to `PySequence_SetItem'
>
> home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:450:
> undefined reference to `PyString_AsString'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:458:
> undefined reference to `PyExc_TypeError'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:458:
> undefined reference to `PyErr_SetString'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:468:
> undefined reference to `PyExc_TypeError'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:468:
> undefined reference to `PyErr_SetString'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:475:
> undefined reference to `PyExc_TypeError'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:475:
> undefined reference to `PyErr_SetString'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:487:
> undefined reference to `PyExc_TypeError'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:487:
> undefined reference to `PyErr_SetString'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:491:
> undefined reference to `PyInt_FromLong'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:556:
> undefined reference to `PyExc_TypeError'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:556:
> undefined reference to `PyErr_SetString'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:579:
> undefined reference to `PyExc_TypeError'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:579:
> undefined reference to `PyErr_SetString'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:582:
> undefined reference to `PyString_FromStringAndSize'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:593:
> undefined reference to `PyTuple_New'
> /home/rruser/ss02/source/src/RollsRoyceParaView/VTK/Wrapping/Python/PyVTKTemplate.cxx:600:
> undefined reference to `PyDict_SetItem'
>
> These macros or strings are used in many files in Python dir.
>
> Please share any inputs regarding this.
>
> --
> Thanks,
> Pandu.
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20121107/9a38bbf2/attachment.htm>


More information about the Paraview-developers mailing list