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

It looks a lot like you have some 32/64-bit issues or perhaps binaries are incompatible. Deriving from vtkOpenGLPolyDataMapper is generally a bad idea. As far as I recall, the mappers are created using a factory and the platform / settings determine which mapper is returned.