You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Matplotlib fails to build with Freetype 2.5.1 on OS X #2622
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.
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.
Activity
efiring commentedon Nov 28, 2013
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.
tacaswell commentedon Jan 24, 2014
Looks like this was taken care of in #2623 . Please re-open if I am wrong.