[Fontconfig] Re: (2.2.0) compiling issues (on solaris)
Steve Bankowitz
Steven.Bankowitz at Sun.COM
Sat Aug 30 03:36:40 EST 2003
* Keith Packard <keithp at 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
More information about the Fontconfig
mailing list