[vtk-developers] Checking if FreeType was found properly

David Partyka david.partyka at kitware.com
Tue Aug 2 11:24:59 EDT 2011


CMake's Find modules create some automatic variables, in your case there
should be a FREETYPE_FOUND variable that you should be able to use to
determine if the system FreeType was found successfully.

On Tue, Aug 2, 2011 at 11:21 AM, David Doria <daviddoria at gmail.com> wrote:

> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110802/3211e383/attachment.html>


More information about the vtk-developers mailing list