[cmake-developers] FreeType headers almost there but not quite ...

Greg Jung gvjung at gmail.com
Tue Jul 1 03:41:22 EDT 2014


I've been debugging the plplot-5.10.0 build under MSYS and finally found,
it can all go well only when the "include/freetype2" cflags are manually
included in the
build.make files (containing the gcc commands) for plfreetype.c and for
wingcc.c.
This build uses freetype 15.0.9,  where include/ft2build.h points to
<freetype/config/ftheader.h>.
  Despite its presence in pkgconfig/freetype2.pc cflags line, the actual
compile command (in build.make) includes "-DUNSINGDLL -I" with nothing
attached to the -I.

 The funny thing, though, is that treatment of the include/freetype2 flag
is correct
for pango, cairo, etc., all those more complicated packages come in with
freetype2 as well where necessary.  I bellieve plfreetype and wingcc are
the only modules that access
freetype directly, without using libraries also dependent on freetype..

I've tried adding include/freetype2 directory to C_includes.rsp files and
to flags.make files,
that has no effect

  the CMAKECACHE shows the following:
FREETYPE_INCLUDEDIR:INTERNAL=D:/Mingw/msys/1.0/local/include
FREETYPE_INCLUDE_DIRS:INTERNAL=D:/Mingw/msys/1.0/local/include/freetype2;D:/Mingw/msys/1.0/local/include

FREETYPE_CFLAGS:INTERNAL=-ID:/Mingw/msys/1.0/local/include/freetype2;-ID:/Mingw/msys/1.0/local/include
de

_CAIRO_STATIC_CFLAGS:INTERNAL=-mms-bitfields;-ID:/Mingw/msys/1.0/local/include/freetype2;-ID:/Mingw/
msys/1.0/local/include;-ID:/Mingw/include/cairo;-ID:/Mingw/include/glib-2.0;-ID:/Mingw/lib/glib-2.0/
include;-ID:/Mingw/include/pixman-1;-ID:/Mingw/include;-ID:/Mingw/include/libpng15

_CAIRO_INCLUDE_DIRS:INTERNAL=D:/Mingw/msys/1.0/local/include/freetype2;D:/Mingw/msys/1.0/local/inclu
de;D:/Mingw/include/cairo;D:/Mingw/include/glib-2.0;D:/Mingw/lib/glib-2.0/include;D:/Mingw/include/p
ixman-1;D:/Mingw/include;D:/Mingw/include/libpng15

I have no clue about where to search to resolve this, as I am still on the
bunny slopes of the CMAKE learning curve.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140701/9fd22aee/attachment.html>


More information about the cmake-developers mailing list