Steve Bankowitz
2005-Nov-21 08:50 UTC
[Fontconfig] Re: (2.2.0) compiling issues (on solaris)
* Keith Packard <keithp@keithp.com> [2003-08-29 10:28:47]:> > I ended up modifing the `./fontconfig/fcfreetype.h'' file. > > > > From: > > > > #include <freetype/freetype.h> > > > > To: > > > > #include <freetype2/freetype/freetype.h> > > The freetype folks recommend using -I/usr/include/freetype2 (or > whatever) so that additional header files that are needed will be > located correctly. > > The fontconfig configure script is supposed to locate those > automatically with freetype-config; is that not working for you?Well it worked... Sort of. :-) I compile everything with a `--prefix=/usr/apps'', and I have CPPFLAGS set to `-I/usr/apps/include''. So in /usr/apps/include I have: (/usr/apps/include) % ls -ld free* drwxr-xr-x 3 root other 512 Aug 26 15:54 freetype2/ drwxr-xr-x 2 root other 512 Aug 28 12:34 freetype/ So when I hit this: Making all in fc-lang make[2]: Entering directory `/usr/apps/src/fontconfig-2.2.0/fc-lang'' cc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I/usr/apps/include -I/usr/apps/include/freetype2 -I/usr/apps/include -fast -xprefetch -xipo -xtarget=ultra -c fc-lang.c Note the order. We get `-I/usr/apps/include'' before `-I/usr/apps/include/freetype2''. So the include line of: #include <freetype/freetype.h> matches /usr/apps/include/freetype/freetype.h first. -steve
Steve Bankowitz
2005-Nov-21 08:50 UTC
[Fontconfig] Re: (2.2.0) compiling issues (on solaris)
Okay, I found the solution: Since I have both freetype and freetype2 installed on my machine, it picked up the old freetype include file. I ended up modifing the `./fontconfig/fcfreetype.h'' file. From: #include <freetype/freetype.h> To: #include <freetype2/freetype/freetype.h> -Steve * Steve Bankowitz <Steven.Bankowitz@Sun.COM> [2003-08-28 15:53:00]:> Hi, > > I''m trying to compile fontconfig-2.2.0 (I also tried fontconfig-2.2.1 > and fontconfig-2.2.90) on my Solaris 9 machine with the latest Forte > compiler. > > % cc -V > cc: Sun C 5.5 2003/03/12 > > I''m using the following configure options: > > ./configure --prefix=/usr/apps --with-expat --with-confdir=/usr/apps/etc/fonts --disable-docs > > And I get the following error (using GNU''s make): > > Making all in fc-lang > make[2]: Entering directory `/usr/apps/src/fontconfig-2.2.0/fc-lang'' > cc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I/usr/apps/include -I/usr/apps/include/freetype2 -I/usr/apps/include -fast -xprefetch -xipo -xtarget=ultra -c fc-lang.c > "../fontconfig/fcfreetype.h", line 30: warning: old-style declaration or incorrect type for: FT_UInt > "../fontconfig/fcfreetype.h", line 30: syntax error before or at: FcFreeTypeCharIndex > "../fontconfig/fcfreetype.h", line 30: syntax error before or at: face > "../fontconfig/fcfreetype.h", line 30: warning: undefined or missing type for: face > "../fontconfig/fcfreetype.h", line 30: warning: undefined or missing type for: FcChar32 > "../fontconfig/fcfreetype.h", line 30: warning: old-style declaration or incorrect type for: FcFreeTypeCharIndex > "../fontconfig/fcfreetype.h", line 33: syntax error before or at: face > "../fontconfig/fcfreetype.h", line 33: warning: undefined or missing type for: face > "../fontconfig/fcfreetype.h", line 33: warning: undefined or missing type for: FcBlanks > "../fontconfig/fcfreetype.h", line 33: warning: undefined or missing type for: int > "../fontconfig/fcfreetype.h", line 36: syntax error before or at: face > "../fontconfig/fcfreetype.h", line 36: warning: undefined or missing type for: face > "../fontconfig/fcfreetype.h", line 36: warning: undefined or missing type for: FcBlanks > "../fontconfig/fcfreetype.h", line 39: syntax error before or at: FT_Face > "../fontconfig/fcfreetype.h", line 39: warning: undefined or missing type for: FT_Face > "../fontconfig/fcfreetype.h", line 42: warning: no explicit type given > "../fontconfig/fcfreetype.h", line 42: syntax error before or at: f > "../fontconfig/fcfreetype.h", line 42: warning: undefined or missing type for: f > "../src/fcint.h", line 497: syntax error before or at: encoding > "../src/fcint.h", line 497: warning: undefined or missing type for: encoding > "fc-lang.c", line 53: warning: return value type mismatch > cc: acomp failed for fc-lang.c > make[2]: *** [fc-lang.o] Error 2 > make[2]: Leaving directory `/usr/apps/src/fontconfig-2.2.0/fc-lang'' > > (I had no problems compiling and installing xft-2.1.2, xrender-0.8.3, and render-0.8) > > -Steve
Keith Packard
2005-Nov-21 08:50 UTC
[Fontconfig] Re: (2.2.0) compiling issues (on solaris)
Around 11 o''clock on Aug 29, Steve Bankowitz wrote:> I ended up modifing the `./fontconfig/fcfreetype.h'' file. > > From: > > #include <freetype/freetype.h> > > To: > > #include <freetype2/freetype/freetype.h>The freetype folks recommend using -I/usr/include/freetype2 (or whatever) so that additional header files that are needed will be located correctly. The fontconfig configure script is supposed to locate those automatically with freetype-config; is that not working for you? -keith
Hi, I''m trying to compile fontconfig-2.2.0 (I also tried fontconfig-2.2.1 and fontconfig-2.2.90) on my Solaris 9 machine with the latest Forte compiler. % cc -V cc: Sun C 5.5 2003/03/12 I''m using the following configure options: ./configure --prefix=/usr/apps --with-expat --with-confdir=/usr/apps/etc/fonts --disable-docs And I get the following error (using GNU''s make): Making all in fc-lang make[2]: Entering directory `/usr/apps/src/fontconfig-2.2.0/fc-lang'' cc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I/usr/apps/include -I/usr/apps/include/freetype2 -I/usr/apps/include -fast -xprefetch -xipo -xtarget=ultra -c fc-lang.c "../fontconfig/fcfreetype.h", line 30: warning: old-style declaration or incorrect type for: FT_UInt "../fontconfig/fcfreetype.h", line 30: syntax error before or at: FcFreeTypeCharIndex "../fontconfig/fcfreetype.h", line 30: syntax error before or at: face "../fontconfig/fcfreetype.h", line 30: warning: undefined or missing type for: face "../fontconfig/fcfreetype.h", line 30: warning: undefined or missing type for: FcChar32 "../fontconfig/fcfreetype.h", line 30: warning: old-style declaration or incorrect type for: FcFreeTypeCharIndex "../fontconfig/fcfreetype.h", line 33: syntax error before or at: face "../fontconfig/fcfreetype.h", line 33: warning: undefined or missing type for: face "../fontconfig/fcfreetype.h", line 33: warning: undefined or missing type for: FcBlanks "../fontconfig/fcfreetype.h", line 33: warning: undefined or missing type for: int "../fontconfig/fcfreetype.h", line 36: syntax error before or at: face "../fontconfig/fcfreetype.h", line 36: warning: undefined or missing type for: face "../fontconfig/fcfreetype.h", line 36: warning: undefined or missing type for: FcBlanks "../fontconfig/fcfreetype.h", line 39: syntax error before or at: FT_Face "../fontconfig/fcfreetype.h", line 39: warning: undefined or missing type for: FT_Face "../fontconfig/fcfreetype.h", line 42: warning: no explicit type given "../fontconfig/fcfreetype.h", line 42: syntax error before or at: f "../fontconfig/fcfreetype.h", line 42: warning: undefined or missing type for: f "../src/fcint.h", line 497: syntax error before or at: encoding "../src/fcint.h", line 497: warning: undefined or missing type for: encoding "fc-lang.c", line 53: warning: return value type mismatch cc: acomp failed for fc-lang.c make[2]: *** [fc-lang.o] Error 2 make[2]: Leaving directory `/usr/apps/src/fontconfig-2.2.0/fc-lang'' (I had no problems compiling and installing xft-2.1.2, xrender-0.8.3, and render-0.8) -Steve