Leaving out all of the VTK_MODULE_INIT
s leads to run time errors like
ImportError: /home/langer/lib/liboof3dcommon.so: undefined symbol: _ZN15vtkExtractCells8GetMTimeEv
The program compiles and links without errors, but maybe I need to link with different libraries? The link line looks like
x86_64-linux-gnu-g++ -pthread -shared ... -fPIC -std=c++11 ... -L/home/langer/lib \
[... many .o files ...]
-lvtkCommonCore-9.0 -lvtkCommonDataModel-9.0 ... --lvtkFiltersExtraction-9.0 ...
I used nm to search for the library containing vtkExtractCells
and it is included in the link arguments.