[vtkusers] Rendering Text - vtkTextActor and AddActor2D - Crash

David Lonie david.lonie at kitware.com
Tue Jun 30 09:55:16 EDT 2015


Great, glad you got is working :)

Dave

On Tue, Jun 30, 2015 at 9:54 AM, Ram Sampath <ram at centroidpic.com> wrote:

>
> Thank you for the response.
>
> Sorry the problem was on my end . I was including the vtkRenderingFreeType
> library in the linkage but I missed to include the line
> VTK_MODULE_INIT(vtkRenderingFreeType).
>
> VTK_MODULE_INIT(vtkRenderingOpenGL);
> VTK_MODULE_INIT(vtkInteractionStyle);
> VTK_MODULE_INIT(vtkRenderingFreeType);
>
> are the modules  which were needed by my code to make it work.
>
> Thank you very much.
>
> Ram.
>
> ---
> On Jun 30, 2015, at 6:39 AM, David Lonie <david.lonie at kitware.com> wrote:
>
> It works for me here. That message means that the vtkRenderingFreeType
> library isn't being linked to the application. That library provides the
> default implementation of the vtkTextRenderer interface.
>
> Can you add the line:
>
> message("VTK_LIBRARIES: ${VTK_LIBRARIES}")
>
> to your CMakeLists.txt, rerun cmake, and send us the output? Also, what
> version of VTK is being used?
>
> On Mon, Jun 29, 2015 at 9:47 PM, Ram Sampath <ram at centroidpic.com> wrote:
> Hello :
>
>  I am trying to compile and run the vtk hello world with text example
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DrawText
>
>  and when I run it I get the following error with a crash.
> Rendering\Core\vtkTextActor.cxx, line 110
> vtkTextActor (0000000003B31F10): Failed getting the TextRenderer instance!
>
>
>  Has anyone had the same problem before and has a fix ?  It seems like the
> text renderer is failing on initialize .
>
> Thank you in advance
> Ram.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150630/e85ed14f/attachment.html>


More information about the vtkusers mailing list