X11 Xft compile failure
Fritz Anderson
fritza at manoverboard.org
Wed Sep 5 10:04:41 PDT 2007
On Sep 5, 2007, at 8:51 AM, Lothar Scholz wrote:
...
> g++ -... -I. -I. -I../include -I../include -I
> /Users/llothar/work_generated/macosx_ix86/contrib/install/include
...
> In file included from /usr/include/X11/Xft/Xft.h:35,
> from ../include/xincs.h:211,
> from FX88592Codec.cpp:1:
> /usr/local/include/ft2build.h:56:38: error: freetype/config/
> ftheader.h: No such file or directory
> In file included from ../include/xincs.h:211,
> from FX88592Codec.cpp:1:
> /usr/include/X11/Xft/Xft.h:36:10: error: #include expects "FILENAME"
> or <FILENAME>
> In file included from /usr/include/X11/Xft/Xft.h:35,
> from ../include/xincs.h:211,
> from FX88591Codec.cpp:1:
> /usr/local/include/ft2build.h:56:38: error: freetype/config/
> ftheader.h: No such file or directory
...
> This line is indeed "#include FT_FREETYPE_H" and so i guess there is
> something wrong with my computer configuration.
>
> Anybody know how i can fix it (without porting to Cocoa or Carbon)?
>
> I manually installed freetype and fontconfig with the usual
> "configure/make/sudo make install" so the files should be there.
The obvious questions, assuming gcc is to be taken at its word that
the file can't be found:
Have you verified that there is a file freetype/config/ftheader.h
inside the working directory, a default header directory, or an -I
directory?
Doing a 'locate ftheader.h' (refreshing the locate DB with 'sudo /usr/
libexec/locate.updatedb', if necessary) is instructive. When I do
this, I find /usr/X11/include/freetype2/freetype/config/ftheader.h . I
bet /usr/X11/include/freetype2 is not in your header search path.
I find that libfreetype is already installed on my system. I installed
the developer tools including the X11 SDK.
— F
More information about the MacOSX-dev
mailing list