Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dodumosu opened this issue Nov 28, 2013 · 2 comments
Closed

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

dodumosu opened this issue Nov 28, 2013 · 2 comments

Comments

@dodumosu
Copy link

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.

@efiring
Copy link
Member

efiring commented 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
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants