<div dir="ltr"><div>Try to delete you CMakeCache.txt and set VTK_USE_SYSTEM_FREETYPE=OFF. That should use the FreeType library from ThirdParty.</div><div><br></div><div>Dan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 7, 2017 at 2:50 AM, Shi <span dir="ltr"><<a href="mailto:sjbnust@163.com" target="_blank">sjbnust@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">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=<wbr>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=<wbr>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_<wbr>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><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>