Segfault in glDrawArrays without CMake (How to link openGL without CMAKE?)

I believe that you only include the vtkObjectFactory.h in the .cxx file