[vtkusers] vtkFreeTypeUtilities.h includes FTGL.h?
Sean McBride
sean at rogue-research.com
Fri Nov 4 15:59:32 EDT 2011
On Fri, 4 Nov 2011 15:22:04 -0400, Benoit Scherrer said:
>I just pulled the new version of VTK today and compiled it: no problem.
>However my program using VTK was not compiling anymore.
>
>The problem comes from i'm using vtkFreeTypeUtilities.h .
>This file now includes FTGL.h, which is not in the 'Install' output of VTK
>(but in Utilities/ftgl of the source of VTK).
>
>I just commented the line '#include <FTGL.h>' in vtkFreeTypeUtilities.h
>and it seems it was not necessary, everything works fine.
My guess is vtkFreeTypeUtilities.h includes FTGL.h because it's FTGL.h that #defines FTGL_USE_NAMESPACE, and vtkFreeTypeUtilities.h tests if it is defined. So it may still compile after you removed it, but it's probably compiling something different.
Maybe FTGL.h should be installed, I dunno.
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the vtkusers
mailing list