I get the following error when compiling clanlib-0.6.5-r2: In file included from Sources/TTF/font_ttf.cpp:24: /usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!" /usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files." /usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:" /usr/include/freetype2/freetype/freetype.h:23:2: #error " #include <ft2build.h>" /usr/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H" This looks to be an issue with ClanLib itself, and I'm not sure which freetype2 version would be the first to cause this error, but 2.1.9-r1 does for sure.
Created attachment 47499 [details, diff] Workaround patch Here is a patch that makes it compile by changing how <freetype/freetype.h> is included in the appropriate file. There are still some compiler warnings in that file, but they don't seem to interfere with compilation. Haven't tried running it yet.
Works fine here. The fix should be in the tree, this bug breaks games-puzzle/pingus !!!!! ;)
i can confirm - the patch seems to work OK, clanlib compiled w/o any problems. Emerging pingus right now.
Same for me. Patch work perfectly.
added patch to cvs, thanks !