Compilation fails with freetype2 2.5.1

Issue #800 duplicate
Nicholas De Souza
created an issue

The latest version of freetype2 has changed the path for ft2build.h. I believe that this change causes the build to fail.

In file included from modules/font/freetype/wrap_Font.cpp:23:0:
modules/font/freetype/Font.h:31:22: fatal error: ft2build.h: No such file or directory
 #include <ft2build.h>
                      ^
compilation terminated.
Makefile:2986: recipe for target 'modules/font/freetype/wrap_Font.lo' failed
make[3]: *** [modules/font/freetype/wrap_Font.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from modules/font/freetype/TrueTypeRasterizer.cpp:22:0:
modules/font/freetype/TrueTypeRasterizer.h:29:22: fatal error: ft2build.h: No such file or directory
 #include <ft2build.h>
                      ^
compilation terminated.
Makefile:2986: recipe for target 'modules/font/freetype/TrueTypeRasterizer.lo' failed
make[3]: *** [modules/font/freetype/TrueTypeRasterizer.lo] Error 1
In file included from modules/font/freetype/Font.cpp:21:0:
modules/font/freetype/Font.h:31:22: fatal error: ft2build.h: No such file or directory
 #include <ft2build.h>
                      ^
compilation terminated.
Makefile:2986: recipe for target 'modules/font/freetype/Font.lo' failed
make[3]: *** [modules/font/freetype/Font.lo] Error 1
make[3]: Leaving directory '/home/nicholas/builds/love-hg/src/love/src'
Makefile:3054: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/nicholas/builds/love-hg/src/love/src'
Makefile:410: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/nicholas/builds/love-hg/src/love'
Makefile:341: recipe for target 'all' failed
make: *** [all] Error 2

Comments (4)

  1. Anonymous

    I experienced this same issue. Rolling back to a previous version of the freetype2 package and compiling is successful. It's definitely a new version thing.

  2. Log in to comment