(none) imager-devel
/ help / lists / applications / search /
 

Re: freetype 1/2 header problems

From: Slaven Rezic (
13708@xyz.molar.is)
Date: Sun 12 Dec 2004 - 22:05:35 GMT


Tony Cook <13667@xyz.molar.is> writes:

> On Fri, Dec 10, 2004 at 11:00:55PM +0100, Slaven Rezic wrote:
> > --- ./Makefile.PL Wed Dec 8 00:00:04 2004
> > +++ ./Makefile.PL Fri Dec 10 22:55:28 2004
> > @@ -274,7 +274,10 @@ sub init {
> >
> > @definc{'/usr/include'}=();
> > @incs=(split(/\Q$Config{path_sep}/, $INCPATH),
> > - qw(/sw/include /usr/include/freetype2 /usr/local/include/freetype2
> > + qw(/sw/include
> > + /usr/local/include/freetype2/freetype
> > + /usr/local/include/freetype1/freetype
> > + /usr/include/freetype2 /usr/local/include/freetype2
> > /usr/include /usr/local/include /usr/include/freetype
> > /usr/local/include/freetype));
>
> Thanks for following up on this.
>
> It turned out the issue was having freetype1 directories in -I before
> the freetype2 directories.
>
> As long as the search path above includes freetype1 _after_ freetype2
> it all works nicely.
>
> Putting /usr/local/include/freetype2/freetype in the path also
> causes problems, since Makefile.PL find freetype.h there when looking
> for it for FT1, and hence the compiler does too when building font.o.
>
> The patch I'm actually planning on using is:
>
> --- Makefile.PL 7 Dec 2004 22:59:23 -0000 1.33
> +++ Makefile.PL 11 Dec 2004 13:44:37 -0000 1.34
> @@ -274,7 +274,10 @@
>
> @definc{'/usr/include'}=();
> @incs=(split(/\Q$Config{path_sep}/, $INCPATH),
> - qw(/sw/include /usr/include/freetype2 /usr/local/include/freetype2
> + qw(/sw/include
> + /usr/include/freetype2
> + /usr/local/include/freetype2
> + /usr/local/include/freetype1/freetype
> /usr/include /usr/local/include /usr/include/freetype
> /usr/local/include/freetype));
> @libs=(split(/\Q$Config{path_sep}/,$LIBPATH),
>
> Tested on FreeBSD 4.10
>

Works also on my 4.9 system.

Regards,
        Slaven

-- 
Slaven Rezic - slaven <at> rezic <dot> de

tknotes - A knotes clone, written in Perl/Tk. http://ptktools.sourceforge.net/#tknotes