andresv / homebrew-gnuradio

GNU Radio Formulae for Homebrew
26 stars 13 forks source link

Possible fail with OSX El Capitan #6

Open mdelete opened 8 years ago

mdelete commented 8 years ago

hi there!

pip install https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.2.1/matplotlib-1.2.1.tar.gz

may fail on El Capitan

first with:

src/ft2font.h:16:10: fatal error: 'ft2build.h' file not found

or later with:

src/backend_agg.cpp:2050:15: error: use of undeclared identifier 'npy_PyFile_Dup'
    if ((fp = npy_PyFile_Dup(py_file, (char *)"wb")))

src/backend_agg.cpp:2054:13: error: use of undeclared identifier 'npy_PyFile_DupClose'
        npy_PyFile_DupClose(py_file, fp);

src/backend_agg.cpp:2064:9: error: use of undeclared identifier 'npy_PyFile_DupClose'
        npy_PyFile_DupClose(py_file, fp);

solution for the first issue is to amend PKG_CONFIG_PATH:

export PKG_CONFIG_PATH="/opt/X11/lib/pkgconfig"

solution for the second issue is upgrade to newer version on matplotlib:

pip install https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.5.1/matplotlib-1.5.1.tar.gz