[Paraview] paraview compilation issue

Bishwajit Dutta bdutta at vt.edu
Wed Feb 15 07:26:18 EST 2017


Hi All,

I configured paraview to compile for CPU rendering with the below option on
ubuntu 14.04 and Python 2.7.6:

cmake ../ -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
-DPARAVIEW_ENABLE_CATALYST=ON -DPARAVIEW_ENABLE_PYTHON=ON
-DPYTHON_LIBRARY=$PYTHON_LIBRARY -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_DIR
-DPARAVIEW_USE_MPI=ON -DMPI_HEADER_PATH=$MPI_HEADER_PATH
-DCMAKE_INSTALL_PREFIX=$BD_INSTALL_PATH -DPARAVIEW_BUILD_QT_GUI=OFF
-DVTK_USE_X=OFF -DOPENGL_INCLUDE_DIR=$BD_INSTALL_PATH/include
-DOPENGL_gl_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so
-DOPENGL_glu_LIBRARY=$BD_INSTALL_PATH/lib/libGLU.so
-DVTK_OPENGL_HAS_OSMESA=ON -DOSMESA_INCLUDE_DIR=$BD_INSTALL_PATH/include
-DOSMESA_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so

Now I am getting the below compilation error:

----------------------------LOGs-------------------------------------
#make
................
...............
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_Keys(_object*, _object*)':
PyVTKTemplate.cxx:(.text+0x1511): undefined reference to `PyArg_ParseTuple'
PyVTKTemplate.cxx:(.text+0x1527): undefined reference to `PyModule_GetDict'
PyVTKTemplate.cxx:(.text+0x1534): undefined reference to `PyList_New'
PyVTKTemplate.cxx:(.text+0x156c): undefined reference to `PyDict_Next'
PyVTKTemplate.cxx:(.text+0x1597): undefined reference to `PyList_Append'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_Size(_object*)':
PyVTKTemplate.cxx:(.text+0x15c5): undefined reference to `PyModule_GetDict'
PyVTKTemplate.cxx:(.text+0x160c): undefined reference to `PyDict_Next'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_New':
PyVTKTemplate.cxx:(.text+0x1679): undefined reference to `PyType_Ready'
PyVTKTemplate.cxx:(.text+0x1691): undefined reference to `PyTuple_New'
PyVTKTemplate.cxx:(.text+0x169c): undefined reference to
`PyString_FromString'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_AddItem':
PyVTKTemplate.cxx:(.text+0x172c): undefined reference to `PyModule_GetDict'
PyVTKTemplate.cxx:(.text+0x173a): undefined reference to
`PyDict_SetItemString'
PyVTKTemplate.cxx:(.text+0x174a): undefined reference to `PyExc_TypeError'
PyVTKTemplate.cxx:(.text+0x1759): undefined reference to `PyErr_SetString'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_Repr(_object*)':
PyVTKTemplate.cxx:(.text+0x4a): undefined reference to `PyString_FromFormat'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x8):
undefined reference to `PyType_Type'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x90):
undefined reference to `PyObject_GenericGetAttr'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x100):
undefined reference to `PyModule_Type'
CMakeFiles/vtkWrappingPythonCore.dir/vtkSmartPyObject.cxx.o: In function
`vtkSmartPyObject::~vtkSmartPyObject()':
vtkSmartPyObject.cxx:(.text+0x35): undefined reference to `Py_IsInitialized'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libvtkWrappingPython27Core-pv5.0.so.1] Error 1
make[1]: ***
[VTK/Wrapping/PythonCore/CMakeFiles/vtkWrappingPythonCore.dir/all] Error 2
make: *** [all] Error 2

--------------------------------------------------------------------------

I have set the python lib and include paths. And also took care to do
"apt-get install python-dev".

Thank you in advance for help as I am new and running out of ideas.

Also do the configuration options look ok for CPU based rendering?

BR,
Bishwajit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170215/78535516/attachment.html>


More information about the ParaView mailing list