<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi everyone,</div><div>In my VTK project, I want to convert Text to ImageData, I found the example in the Wiki, <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageText">ImageText</a>, </div><div>but before using the class <span style="background-color: rgb(249, 249, 249); font-family: monospace, monospace; font-size: 1em; white-space: pre-wrap; color: rgb(0, 0, 0);">vtkFreeTypeUtilities</span>, rebuilding the VTK with <span style="background-color: rgb(249, 249, 249); font-family: monospace, monospace; font-size: 1em; white-space: pre-wrap; color: rgb(0, 0, 0);">VTK_USE_SYSTEM_FREETYPE=ON </span>is nessecery.</div><div>I tried to build VTK with VTK with <span style="font-size: 1em; background-color: rgb(249, 249, 249); font-family: monospace, monospace; white-space: pre-wrap;">VTK_USE_SYSTEM_FREETYPE=ON, after configure, the CMake shows a warning that the following 4 variables should be defined,</span></div><div><span style="font-size: 1em; background-color: rgb(249, 249, 249); font-family: monospace, monospace; white-space: pre-wrap;">FREETYPE_INCLUDE_DIR_freetype2, FREETYPE_INCLUDE_DIR_ft2build, FREETYPE_LIBRARY_DEBUG, FREETYPE_LIBRARY_RELEASE,</span></div><div><span style="font-size: 1em; background-color: rgb(249, 249, 249); font-family: monospace, monospace; white-space: pre-wrap;">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 </span><font face="monospace, monospace"><span style="white-space: pre-wrap;">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.</span></font></div><div><font face="monospace, monospace"><span style="white-space: pre-wrap;">With these procedures, passed the configure and generate, but failed in compiling the freetype module. </span></font></div><div><font face="monospace, monospace"><span style="white-space: pre-wrap;">Does any one know how to build VTK with Freetype? please help.</span></font></div><div><span style="font-size: 1em; background-color: rgb(249, 249, 249); font-family: monospace, monospace; white-space: pre-wrap;"><br></span></div></div><br><br><span title="neteasefooter"><p> </p></span>