new flag VTK_PYTHON_OPTIONAL_LINK must be off to compile ParaView + python + tests
Filing this on VTK, as @cory.quammen suggested, but it might be ParaView instead.
When compiling ParaView master as of today (10/1/2019),
- linux Ubuntu 16.04,
- gcc 5.4.0,
- ninja,
- debug build
I am unable to complete a build with
set(PARAVIEW_ENABLE_PYTHON ON CACHE BOOL "")
set(PARAVIEW_ENABLE_WEB ON CACHE BOOL "")
set(PARAVIEW_BUILD_TESTING ON CACHE BOOL "")
All the C++ test applications, like vtkPVAnimationCxxTests
, fail to link, complaining of missing symbols from the Python C API, like
lib/libvtkPythonInterpreter-pv5.7.so.5.7: undefined reference to `PyImport_AddModule'
libvtkWrappingPythonCore-pv5.7.so.1: undefined reference to `PyByteArray_Type'
The flag VTK_PYTHON_OPTIONAL_LINK
is on by default. If I turn it off, the entire build succeeds. Alternatively, if I don't enable testing, the entire build succeeds.
Should the default value of VTK_PYTHON_OPTIONAL_LINK
be off?