Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

add pkgconfig to homebrew install instruction #1936

Merged
merged 1 commit into from

3 participants

@minrk

build will not find freetype headers without it.

Alternate fix would be to search for freetype in the homebrew location (/usr/local/Cellar/freetype/VERSION/), or add the right location to the include path (/usr/local/include/freetype2).

Min RK add pkgconfig to homebrew install instruction
build will not find freetype headers without it.

Alternate fix would be to search for freetype in the homebrew location (`/usr/local/Cellar/freetype/VERSION/`), or add the right location to the include path (`/usr/local/include/freetype2`).
ac26781
@mdboom
Owner

I'm wary of adding more hard-coded include paths to the system -- it can then be difficult for users to override that when they want to, say, use a locally built copy of freetype.

We could also display a more prominent message when pkg-config can't be found...

@minrk

You use freetype-config to discover the freetype version, but you don't use it to generate the compile flags, so that's another option. Following the current README.osx will result in a successful "you have freetype 2.4.11", but the compilation will actually fail. freetype-config --libs and freetype-config --cflags should give the relevant info.

@pelson
Collaborator

Alternate fix would be to search for freetype in the homebrew location

Do we need an alternative fix? It sounds to me like adding pgkconfig to the install list is a good idea...

:+1:

@mdboom
Owner

@minrk, @pelson: I agree that adding pkgconfig to the install list is a good idea in any event, though I also like the suggestion of trying to use freetype-config in addition to pkg-config (I hadn't thought of that, and I think that's a good suggestion). I'll work the latter up as a separate PR, and we can go ahead and merge this one.

@pelson pelson merged commit d431c2e into matplotlib:master
@minrk minrk deleted the minrk:macpkgconfig branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 23, 2013
  1. add pkgconfig to homebrew install instruction

    Min RK authored
    build will not find freetype headers without it.
    
    Alternate fix would be to search for freetype in the homebrew location (`/usr/local/Cellar/freetype/VERSION/`), or add the right location to the include path (`/usr/local/include/freetype2`).
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.osx
View
2  README.osx
@@ -9,7 +9,7 @@ homebrew.
Example usage::
- brew install libpng freetype
+ brew install libpng freetype pkgconfig
If you are using MacPorts, execute the following instead:
Something went wrong with that request. Please try again.