How did this happen?
It looks like this is an object factory class. You’ll need to link to VTK::RenderingFreeType
and add it to the autoinit list to get a concrete implementation of a text renderer. What version of VTK is this?
VTK 8.2
- I copied this code in the example
https://lorensen.github.io/VTKExamples/site/Cxx/GeometricObjects/Axes/
How did you try to build the example? Does the VTK you compiled against have the vtkRenderingFreetype
module enabled? That is required to get text rendering to work.
Thanks Ben Boeckel
- I solved this problem by adding VTK_MODULE_INIT(vtkRenderingFreeType) to the code
2 Likes
I am experiencing the same issue. May I ask where to add it?