[vtkusers] vtk convert Text to ImageData, and build VTK with FreeType
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.
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/
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers