Skip to content

Matplotlib fails to build with Freetype 2.5.1 on OS X #2622

Closed

Description

@dodumosu

I updated Freetype from 2.5.0 to 2.5.1 via Homebrew, and uninstalled and reinstalled Matplotlib 1.3.1, but it failed to build because it includes /usr/X11/include/ft2build.h, which includes freetype/config/ftheader.h, but the Freetype changelog (and ft2build.h itself) mentions including freetype2/config/ftheader.h instead.

I don't know how ReportLab and Pillow skipped including this header and built successfully with Freetype support in the same environment.

Activity

  1. efiring commented on Nov 28, 2013

    @efiring
    Member

    It looks like the problem is that when setupext.FreeType.add_flags is putting together the list of include directories, it is putting the output of freetype-config or pkg-config at the end, after the defaults, instead of at the beginning. Since there is a copy of ft2build.h in /usr/X11/include, which is already in the include list, that is what is being found. This seems like a basic bug in setupext.py, but I suspect there are subtleties I don't see yet. I will try a quick fix, and if it looks promising I will make a PR.

  2. tacaswell commented on Jan 24, 2014

    @tacaswell
    Member

    Looks like this was taken care of in #2623 . Please re-open if I am wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions