[ncl-talk] NCL build from source - cannot find ft2build.h

Stephen Kirby thinjogger at gmail.com
Sat Jun 30 18:09:07 MDT 2018


Hi,

I am trying to build NCL from source and have hit the issue I show in the
subject line.

Specific error is:
  In file included from cro.h:147:0,
                 from cro_device.c:26:
/usr/local/include/cairo/cairo-ft.h:46:22: fatal error: ft2build.h: No such
file or directory
 #include <ft2build.h>

The file is located for me in /usr/local/include/freetype2 so in the
environment variable for CFLAGS I added -I/usr/local/include/freetype2 but
it didn't help.  So then I tried editing yMakefile as follows for CFLAGS:

echo "CFLAGS="$(CFLAGS)" -I/usr/local/include/freetype2";\

With that change, "make Info" shows all things look good, BUT, I still get
the error listed above.  Do I need to add this path for ft2build.h header
somewhere besides CFLAGS?

TIA,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180630/c4b4c990/attachment.html>


More information about the ncl-talk mailing list