Subject: | my_config does not find freetype.h |
Freetype changed their Directory layout with Version 2.5.1.
Therefore my_config does no longer find the header files.
http://sourceforge.net/projects/freetype/files/freetype2/2.5.1/
Show quoted text
> II. IMPORTANT CHANGES
Show quoted text> <snip> - The header file layout has been changed. After
> installation, all files are now located in `<prefix>/include/freetype2'.
> Applications that use (a) `freetype-config' or FreeType's `pkg-config' file
> to get the include directory for the compiler, and (b) the documented way for
> header inclusion like #include <ft2build.h> #include FT_FREETYPE_H ... don't
> need any change to the source code.
quick fix that worked on Ubuntu 14.04 attached
Christoph
Subject: | myConf.patch |
--- myConfig.ori 2013-12-07 13:46:35.000000000 +0100
+++ myConfig 2014-08-31 12:53:13.800308069 +0200
@@ -147,7 +147,8 @@
{
foreach (map { "$_/freetype2" } @_)
{
- if (-d $_ && -d "$_/freetype" && -r "$_/freetype/freetype.h")
+ if ((-d $_ && -d "$_/freetype" && -r "$_/freetype/freetype.h")
+ or (-d $_ && -r "$_/freetype.h"))
{
print "Using -I$_ to find $_/freetype/freetype.h\n";
return "-I$_";