Subject: | Compilation error in Debian/wheezy (freetype related) |
The module cannot be compiled on a Debian/wheezy system:
cc -c -I. -I/usr/include -I/usr/local/include -I/usr/local/include/freetype2 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/opt/perl-5.12.5/lib/5.12.5/x86_64-linux/CORE" FTGL.c
In file included from /usr/include/FTGL/ftgl.h:32:0,
from FTGL.xs:7:
/usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: No such file or directory
compilation terminated.
make: *** [FTGL.o] Error 1
(/usr/bin/make exited with 512)
libftgl-dev and libfreetype6-dev are installed. But it seems that the freetype headers are looked up in the wrong directory:
$ apt-file search freetype/config/ftheader.h
libfreetype6-dev: /usr/include/freetype2/freetype/config/ftheader.h
Regards,
Slaven