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

Dan Lipsa dan.lipsa at kitware.com
Tue Feb 7 09:17:04 EST 2017


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
> <http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170207/0f89a7a5/attachment.html>


More information about the vtkusers mailing list