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

Re: freetype 1/2 header problems

From: Tony Cook (
13591@xyz.molar.is)
Date: Sat 11 Dec 2004 - 14:03:04 GMT

  • Next message: Slaven Rezic: "Re: freetype 1/2 header problems"

    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

    Again, thanks for your help with this.

    Tony



  •