Hi,
I am having problems migrating a simulation code’s Catalyst adapter from ParaView version 5.5.2 to 5.7.0. The CMakeLists.txt
is very simple:
cmake_minimum_required(VERSION 3.10)
project(heat_equation_solver)
find_package(ParaView 5.7 REQUIRED)
set (Adaptor_SRCS ${Adaptor_DIR}/adaptor.cxx)
add_library (HeatAdaptor ${Adaptor_SRCS})
target_link_libraries (HeatAdaptor INTERFACE VTK::PythonUsed PRIVATE ParaView::PythonCatalyst VTK::CommonDataModel)
add_definitions("-D USE_CATALYST")
add_executable (heat.exe heat.cpp)
target_include_directories(heat.exe PRIVATE ${Adaptor_DIR})
target_link_libraries (heat.exe PRIVATE HeatAdaptor VTK::mpi)
But I keep getting the error:
/sw/installed/impi/2018.1.163-iccifort-2018.1.163-GCC-6.4.0-2.28/bin64/mpicxx CMakeFiles/heat.exe.dir/heat.cpp.o -o heat.exe -Wl,-rpath,/scratch/ws/alves-rigel/v5.7.0/install/lib64 libHeatAdaptor.a /scratch/ws/alves-rigel/v5.7.0/install/lib64/libvtkPVPythonCatalyst-pv5.7.so.5.7 /scratch/ws/alves-rigel/v5.7.0/install/lib64/libvtkPVCatalyst-pv5.7.so.5.7 /scratch/ws/alves-rigel/v5.7.0/install/lib64/libvtkPythonInterpreter-pv5.7.so.5.7 /sw/installed/Python/3.6.4-intel-2018a/lib/libpython3.6m.so /scratch/ws/alves-rigel/v5.7.0/install/lib64/libvtkCommonDataModel-pv5.7.so.5.7 /scratch/ws/alves-rigel/v5.7.0/install/lib64/libvtkCommonTransforms-pv5.7.so.5.7 /scratch/ws/alves-rigel/v5.7.0/install/lib64/libvtkCommonMath-pv5.7.so.5.7 /scratch/ws/alves-rigel/v5.7.0/install/lib64/libvtkCommonCore-pv5.7.so.5.7 /scratch/ws/alves-rigel/v5.7.0/install/lib64/libvtksys-pv5.7.so.5.7 -ldl -Wl,-rpath-link,/scratch/ws/alves-rigel/v5.7.0/install/lib64
ld: libHeatAdaptor.a(adaptor.cxx.o): undefined reference to symbol '_ZN25vtkMultiProcessController19GetGlobalControllerEv'
/scratch/ws/alves-rigel/v5.7.0/install/lib64/libvtkParallelCore-pv5.7.so.1: error adding symbols: DSO missing from command line
make[2]: *** [heat.exe] Error 1
make[2]: Leaving directory `/home/h9/alves/phd/heat/build'
make[1]: *** [CMakeFiles/heat.exe.dir/all] Error 2
make[1]: Leaving directory `/home/h9/alves/phd/heat/build'
make: *** [all] Error 2
Am I missing something? Or is Cmake failing to add some necessary flag to the linking command?
Thank you very much,