Wed 13 May 2015 01:50:42 PM UTC, original submission:
I currently have a problem compiling projects with FTGL on Mac OS X, which uses freetype.
FTGL has a header FTGlyph.h, and freetype has a header ftglyph.h. Mac OS X is by default (as is Windows always) not case sensitive in header includes, so these files now clash.
There used to be no problem, because the freetype headers were one level deeper, and the config/ftheader.h file (at least in 2.5.0) had lines like:
#define FT_GLYPH_H <freetype/ftglyph.h>
the current 2.5.5 freetype (just a minor update), removed the freetype dir, and now:
#define FT_GLYPH_H <ftglyph.h>
This requires a compile flag that includes the freetype header directory (e.g. -I/usr/include/freetype2). That effectively amounts to dumping the freetype headers in the total pool of headers, which I personally think is bad form.
It would be (much) better to include the directory prefix in the defines, to reduce the possibility of header name clashes, so:
#define FT_GLYPH_H <freetype2/ftglyph.h>
etc.
|