[vtkusers] vtkContextView: No text renderer available
Allie Vacanti
allison.vacanti at kitware.com
Wed Aug 9 09:45:14 EDT 2017
On Tue, Aug 8, 2017 at 2:50 PM, vtkBeginner <j.mlr at gmx.de> wrote:
> Thanks Allie,
> Unfortunately I still do not understand the linking problem: my .pro file
> comprises
> LIBS += -L/usr/local/VTK/VTK-8.0.0/lib \ # folder to your VTK library
> -lvtkChartsCore-8.0 \
> -lvtkCommonCore-8.0 \
> -lvtkGUISupportQt-8.0 \
> -lvtkCommonDataModel-8.0 \
> -lvtkRenderingContext2D-8.0 \
> -lvtkRenderingContextOpenGL-8.0 \
> -lvtkRenderingOpenGL-8.0 \
> -lvtkRenderingCore-8.0 \
> -lvtkRenderingLabel-8.0 \
> -lvtkViewsContext2D-8.0 \
> -lvtkRenderingFreeType-8.0
>
> What else do I have to do in order to link to vtkRenderingFreeType?
I'm not terribly familiar with using VTK outside of CMake, but I think
what you have is correct for qmake.
The issue is that vtkRenderingFreeType provides an object-factory
override for the vtkTextRenderer class, but it's not getting
registered with the object factory at runtime. I believe this is what
the VTK_MODULE_INIT macros do (someone correct me if I'm wrong).
I think adding a VTK_MODULE_INIT(...) for each of the linked VTK
libraries should fix this.
HTH,
Allie
More information about the vtkusers
mailing list