On Sun, 4 Jan 2004 18:39:51 -0800 (PST) Jean Hernandez <ean79@yahoo.com> wrote:> /usr/local/include/freetype2/freetype/freetype.h:40: ft2build.h: No > such file or directoryBy the looks of this, you''re missing freetype2, or fontconfig doesn''t know where to find the headers for it. I''m not familiar with the way FreeBSD does the compilation, normally I would suggest to pass some more info to "configure", something like this: CPPFLAGS="-I/path/to/freetype2/include" ./configure --your-options-here -- Ciprian Popovici
On Mon, 2004-01-05 at 14:46, Ciprian Popovici wrote:> On Sun, 4 Jan 2004 18:39:51 -0800 (PST) Jean Hernandez <ean79@yahoo.com> > wrote: > > /usr/local/include/freetype2/freetype/freetype.h:40: ft2build.h: No > > such file or directory > > By the looks of this, you''re missing freetype2, or fontconfig doesn''t > know where to find the headers for it. I''m not familiar with the way > FreeBSD does the compilation, normally I would suggest to pass some more > info to "configure", something like this: > > CPPFLAGS="-I/path/to/freetype2/include" ./configure --your-options-hereOn my system, I have /usr/include/ft2build.h and /usr/include/freetype2/freetype/freetype.h. Both files are part of the Redhat package freetype-devel-2.1.3-6. The OP seems to be missing /usr/include/ft2build.h for whatever reason, To compile code that uses freetype 2 I use -I/usr/include/freetype2 (or whatever is returned by the shell command `freetype-config --cflags`), and in the source files, #include <ft2build.h> #include FT_FREETYPE_H. where FT_FREETYPE_H is a macro defined (indirectly) in <ft2build.h>. I believe this is the canonical way of compiling with Freetype 2. I have no idea what should be the advantage of all this convolution. The use of these macros do not remove the need to add an element to the include path. Of course, each level of indirection added is an added opportunity for the administrators to relocate file trees, but that possibility already exists in freetype-config. I guess the advantage is that a future freetype3 needs not redefine all the headers, and so the macros in ft3build.h can point at some ft2 files and some ft3 files. Hooray. The file ft2build.h must also be in the include path. Regards, Enrique
i want install a php4 with the GD support, im running a FreeBSD4.9 box, in console mode. In the attachment you can view all console info. __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -------------- next part -------------- main# make install ===> Building for fontconfig-2.2.90_3 gmake all-recursive gmake[1]: Entering directory `/usr/ports/x11-fonts/fontconfig/work/fontconfig-2.2.90'' Making all in fontconfig gmake[2]: Entering directory `/usr/ports/x11-fonts/fontconfig/work/fontconfig-2.2.90/fontconfig'' gmake[2]: Nothing to be done for `all''. gmake[2]: Leaving directory `/usr/ports/x11-fonts/fontconfig/work/fontconfig-2.2.90/fontconfig'' Making all in fc-lang gmake[2]: Entering directory `/usr/ports/x11-fonts/fontconfig/work/fontconfig-2.2.90/fc-lang'' cc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I/usr/local/include/freetype2 -O -pipe -c fc-lang.c In file included from ../fontconfig/fcfreetype.h:27, from ../src/fcint.h:39, from fc-lang.c:25: /usr/local/include/freetype2/freetype/freetype.h:40: ft2build.h: No such file or directory /usr/local/include/freetype2/freetype/freetype.h:41: `#include'' expects "FILENAME" or <FILENAME> /usr/local/include/freetype2/freetype/freetype.h:42: `#include'' expects "FILENAME" or <FILENAME> /usr/local/include/freetype2/freetype/freetype.h:43: `#include'' expects "FILENAME" or <FILENAME> In file included from ../fontconfig/fcfreetype.h:27, from ../src/fcint.h:39, from fc-lang.c:25: /usr/local/include/freetype2/freetype/freetype.h:182: syntax error before `typedef'' /usr/local/include/freetype2/freetype/freetype.h:184: syntax error before `FT_Pos'' /usr/local/include/freetype2/freetype/freetype.h:216: syntax error before `FT_Short'' /usr/local/include/freetype2/freetype/freetype.h:442: syntax error before `FT_UShort'' /usr/local/include/freetype2/freetype/freetype.h:642: syntax error before `FT_Long'' /usr/local/include/freetype2/freetype/freetype.h:656: syntax error before `FT_Int'' /usr/local/include/freetype2/freetype/freetype.h:659: syntax error before `FT_Generic'' /usr/local/include/freetype2/freetype/freetype.h:682: syntax error before `FT_Memory'' /usr/local/include/freetype2/freetype/freetype.h:1074: syntax error before `FT_UShort'' /usr/local/include/freetype2/freetype/freetype.h:1112: syntax error before `FT_Generic'' /usr/local/include/freetype2/freetype/freetype.h:1280: syntax error before `FT_UInt'' /usr/local/include/freetype2/freetype/freetype.h:1284: syntax error before `FT_Fixed'' /usr/local/include/freetype2/freetype/freetype.h:1333: syntax error before `FT_Init_FreeType'' /usr/local/include/freetype2/freetype/freetype.h:1333: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:1351: syntax error before `FT_Done_FreeType'' /usr/local/include/freetype2/freetype/freetype.h:1351: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:1404: syntax error before `FT_ULong'' /usr/local/include/freetype2/freetype/freetype.h:1463: syntax error before `*'' /usr/local/include/freetype2/freetype/freetype.h:1468: syntax error before `FT_Int'' /usr/local/include/freetype2/freetype/freetype.h:1508: syntax error before `FT_New_Face'' /usr/local/include/freetype2/freetype/freetype.h:1510: syntax error before `FT_Long'' /usr/local/include/freetype2/freetype/freetype.h:1511: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:1555: syntax error before `FT_New_Memory_Face'' /usr/local/include/freetype2/freetype/freetype.h:1556: syntax error before `*'' /usr/local/include/freetype2/freetype/freetype.h:1559: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:1598: syntax error before `FT_Open_Face'' /usr/local/include/freetype2/freetype/freetype.h:1600: syntax error before `FT_Long'' /usr/local/include/freetype2/freetype/freetype.h:1601: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:1636: syntax error before `FT_Attach_File'' /usr/local/include/freetype2/freetype/freetype.h:1637: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:1667: syntax error before `FT_Attach_Stream'' /usr/local/include/freetype2/freetype/freetype.h:1668: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:1686: syntax error before `FT_Done_Face'' /usr/local/include/freetype2/freetype/freetype.h:1686: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:1723: syntax error before `FT_Set_Char_Size'' /usr/local/include/freetype2/freetype/freetype.h:1724: syntax error before `FT_F26Dot6'' /usr/local/include/freetype2/freetype/freetype.h:1727: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:1769: syntax error before `FT_Set_Pixel_Sizes'' /usr/local/include/freetype2/freetype/freetype.h:1770: syntax error before `FT_UInt'' /usr/local/include/freetype2/freetype/freetype.h:1771: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:1808: syntax error before `FT_Load_Glyph'' /usr/local/include/freetype2/freetype/freetype.h:1809: syntax error before `FT_UInt'' /usr/local/include/freetype2/freetype/freetype.h:1810: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:1852: syntax error before `FT_Load_Char'' /usr/local/include/freetype2/freetype/freetype.h:1853: syntax error before `FT_ULong'' /usr/local/include/freetype2/freetype/freetype.h:1854: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2090: syntax error before `FT_Set_Transform'' /usr/local/include/freetype2/freetype/freetype.h:2091: syntax error before `FT_Matrix'' /usr/local/include/freetype2/freetype/freetype.h:2092: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2152: syntax error before `FT_Render_Glyph'' /usr/local/include/freetype2/freetype/freetype.h:2153: syntax error before `FT_UInt'' /usr/local/include/freetype2/freetype/freetype.h:2153: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2217: syntax error before `FT_Get_Kerning'' /usr/local/include/freetype2/freetype/freetype.h:2218: syntax error before `FT_UInt'' /usr/local/include/freetype2/freetype/freetype.h:2221: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2260: syntax error before `FT_Get_Glyph_Name'' /usr/local/include/freetype2/freetype/freetype.h:2261: syntax error before `FT_UInt'' /usr/local/include/freetype2/freetype/freetype.h:2263: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2288: syntax error before `FT_Select_Charmap'' /usr/local/include/freetype2/freetype/freetype.h:2289: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2315: syntax error before `FT_Set_Charmap'' /usr/local/include/freetype2/freetype/freetype.h:2316: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2336: syntax error before `FT_Get_Char_Index'' /usr/local/include/freetype2/freetype/freetype.h:2337: syntax error before `FT_ULong'' /usr/local/include/freetype2/freetype/freetype.h:2337: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2392: syntax error before `FT_MulDiv'' /usr/local/include/freetype2/freetype/freetype.h:2392: syntax error before `a'' /usr/local/include/freetype2/freetype/freetype.h:2394: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2426: syntax error before `FT_MulFix'' /usr/local/include/freetype2/freetype/freetype.h:2426: syntax error before `a'' /usr/local/include/freetype2/freetype/freetype.h:2427: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2453: syntax error before `FT_DivFix'' /usr/local/include/freetype2/freetype/freetype.h:2453: syntax error before `a'' /usr/local/include/freetype2/freetype/freetype.h:2454: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2471: syntax error before `FT_RoundFix'' /usr/local/include/freetype2/freetype/freetype.h:2471: syntax error before `a'' /usr/local/include/freetype2/freetype/freetype.h:2471: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2489: syntax error before `FT_CeilFix'' /usr/local/include/freetype2/freetype/freetype.h:2489: syntax error before `a'' /usr/local/include/freetype2/freetype/freetype.h:2489: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2507: syntax error before `FT_FloorFix'' /usr/local/include/freetype2/freetype/freetype.h:2507: syntax error before `a'' /usr/local/include/freetype2/freetype/freetype.h:2507: warning: data definition has no type or storage class /usr/local/include/freetype2/freetype/freetype.h:2527: syntax error before `FT_Vector_Transform'' /usr/local/include/freetype2/freetype/freetype.h:2527: syntax error before `*'' /usr/local/include/freetype2/freetype/freetype.h:2528: warning: data definition has no type or storage class In file included from ../src/fcint.h:39, from fc-lang.c:25: ../fontconfig/fcfreetype.h:29: syntax error before `FT_UInt'' ../fontconfig/fcfreetype.h:30: warning: data definition has no type or storage class gmake[2]: *** [fc-lang.o] Error 1 gmake[2]: Leaving directory `/usr/ports/x11-fonts/fontconfig/work/fontconfig-2.2.90/fc-lang'' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/x11-fonts/fontconfig/work/fontconfig-2.2.90'' gmake: *** [all-recursive-am] Error 2 *** Error code 2 Stop in /usr/ports/x11-fonts/fontconfig.