[vtkusers] Error displaying text in vtk 7.0

Girish Lande girish.lande at agiliad.com
Mon Dec 12 22:28:36 EST 2016


I am using vtk 7.0

Including following lines fixed it.

#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkRenderingOpenGL);
VTK_MODULE_INIT(vtkRenderingFreeType);

On 13 December 2016 at 02:38, Bill Lorensen <bill.lorensen at gmail.com> wrote:

> And what version of VTK are you using?
>
>
> On Mon, Dec 12, 2016 at 12:22 PM, David Lonie <david.lonie at kitware.com>
> wrote:
>
>> You'll need to link to both vtkInteractorStyle (for some rendering
>> components) and vtkRenderingFreeType (for text rendering backend).
>>
>> On Mon, Dec 12, 2016 at 10:12 AM, Bill Lorensen <bill.lorensen at gmail.com>
>> wrote:
>>
>>> How are you building the example? Are you using CMake to configure?
>>>
>>>
>>> On Mon, Dec 12, 2016 at 8:13 AM, Girish Lande <girish.lande at agiliad.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am new to VTK libraries and trying to learn using examples.
>>>> I build vtk 7.0 on my windows 7 using visual studio 2013.
>>>> I am testing various example programs available on vtk.org
>>>> Most of the examples are running fine.
>>>>
>>>> I tried running following program and encounter error/ crash
>>>>
>>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DisplayText
>>>>
>>>> could you please help me fix this ?
>>>>
>>>>
>>>> [image: Inline images 1]
>>>>
>>>> --
>>>> thanks & regards,
>>>> Girish
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Unpaid intern in BillsBasement at noware dot com
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>



-- 
thanks & regards,
Girish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161213/cf799204/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 78446 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161213/cf799204/attachment.png>


More information about the vtkusers mailing list