[vtk-developers] Checking if FreeType was found properly

David Doria daviddoria at gmail.com
Tue Aug 2 11:21:38 EDT 2011


We recently added an example to the wiki that uses FreeType. When I
try to compile the examples repository now, I get this error:

In file included from /home/ddoria/src/VTK/Utilities/vtk_freetype.h:22:0,
                 from /home/ddoria/src/VTK/Rendering/vtkFreeTypeUtilities.h:35,
                 from /home/ddoria/src/WikiExamples/Cxx/Images/ImageText.cxx:6:
/usr/include/ft2build.h:56:38: fatal error:
freetype/config/ftheader.h: No such file or directory compilation
terminated.

I had fixed it when writing the ImageText example by playing with
VTK_USE_SYSTEM_FREETYPE and some PATH variables, but is there way to
check with CMake if FreeType was found correctly enough to continue,
else do not build that example?

Thanks,

David



More information about the vtk-developers mailing list