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.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to