[vtkusers] vtk convert Text to ImageData, and build VTK with FreeType

David Lonie david.lonie at kitware.com
Tue Feb 7 10:36:30 EST 2017


Also as an FYI, you may find it easier to use the newer
vtkTextRenderer interface instead of
vtkFreeTypeUtilities/vtkFreeTypeTools.

On Tue, Feb 7, 2017 at 9:17 AM, Dan Lipsa <dan.lipsa at kitware.com> wrote:
> Try to delete you CMakeCache.txt and set VTK_USE_SYSTEM_FREETYPE=OFF. That
> should use the FreeType library from ThirdParty.
>
> Dan
>
>
> On Tue, Feb 7, 2017 at 2:50 AM, Shi <sjbnust at 163.com> wrote:
>>
>> Hi everyone,
>> In my VTK project, I want to convert Text to ImageData, I found the
>> example in the Wiki, ImageText,
>> but before using the class vtkFreeTypeUtilities, rebuilding the VTK with
>> VTK_USE_SYSTEM_FREETYPE=ON is nessecery.
>> I tried to build VTK with VTK with VTK_USE_SYSTEM_FREETYPE=ON, after
>> configure, the CMake shows a warning that the following 4 variables should
>> be defined,
>> FREETYPE_INCLUDE_DIR_freetype2, FREETYPE_INCLUDE_DIR_ft2build,
>> FREETYPE_LIBRARY_DEBUG, FREETYPE_LIBRARY_RELEASE,
>> because in the VTK sources files, the ThirdParty tree contains the
>> freetype library, I defined the the path of freetype in the ThirdParty tree
>> as the first two variables. As for the last two variables, I could not find
>> the lib file in the VTK source file, So I used the source from official site
>> of freetype to build a freetype.lib, which is defined as the last two
>> variables.
>> With these procedures, passed the configure and generate, but failed in
>> compiling the freetype module.
>> Does any one know how to build VTK with Freetype? please help.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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
>>
>
>
> _______________________________________________
> 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
>


More information about the vtkusers mailing list