freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] Problem


From: Torsten Mueller
Subject: [Devel] Problem
Date: Wed, 15 Dec 2004 23:52:49 -0600 (GMT-06:00)

Hi there,

I installed freetype-2.1.9 from the tarball source, and it worked like a charm. 

However, after I compiled freetype2, I wanted to compile fontconfig and 
gtk+-2.4.14, which both use freetype. During the compilation process, I got the 
error message from the freetype.h file:

In file included from ../fontconfig/fcfreetype.h:27,
                 from ../src/fcint.h:39,
                 from fc-lang.c:25:
/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"


I am not a very good programmer, but looked into the freetype.h file and 
noticed that there is a check for the inclusion of "ft2build.h" before it is 
included later in the file. I put the #include line before the check in 
"freetype.h", and now gtk compiles. Was that a stupid maneuver on my part, or 
is that a minor oversight in the freetype.h file?

Thanks,

Torsten



reply via email to

[Prev in Thread] Current Thread [Next in Thread]