matplotlib install error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    matplotlib install error

    I'm trying to install matplotlib and currently getting the below
    error. I searched the group and google and couldn't find anything
    similar... Any ideas?

    Thanks in advance!

    src/ft2font.cpp: In member function 'Py::Object
    Glyph::get_path (FT_FaceRec_* const&)':
    src/ft2font.cpp:441 : error: 'FT_CURVE_TAG_C UBIC' was not declared in
    this scope
    src/ft2font.cpp:444 : error: 'FT_CURVE_TAG_C ONIC' was not declared in
    this scope
    src/ft2font.cpp:447 : error: 'FT_CURVE_TAG_O N' was not declared in this
    scope
    src/ft2font.cpp:487 : error: 'FT_CURVE_TAG_O N' was not declared in this
    scope
    src/ft2font.cpp:500 : error: 'FT_CURVE_TAG_C ONIC' was not declared in
    this scope
    src/ft2font.cpp:572 : error: 'FT_CURVE_TAG_C UBIC' was not declared in
    this scope
    src/ft2font.cpp: In member function 'Py::Object
    FT2Font::set_te xt(const Py::Tuple&, const Py::Dict&)':
    src/ft2font.cpp:983 : error: 'FT_KERNING_DEF AULT' was not declared in
    this scope
    src/ft2font.cpp: In member function 'Py::Object
    FT2Font::get_ps _font_info(cons t Py::Tuple&)':
    src/ft2font.cpp:142 8: error: 'PS_FontInfoRec ' was not declared in this
    scope
    src/ft2font.cpp:142 8: error: expected `;' before 'fontinfo'
    src/ft2font.cpp:143 0: error: 'fontinfo' was not declared in this scope
    src/ft2font.cpp:143 0: error: 'FT_Get_PS_Font _Info' was not declared in
    this scope
    src/ft2font.cpp: In function 'void initft2font()':
    src/ft2font.cpp:188 4: error: 'FT_KERNING_DEF AULT' was not declared in
    this scope
    src/ft2font.cpp:188 5: error: 'FT_KERNING_UNF ITTED' was not declared in
    this scope
    src/ft2font.cpp:188 6: error: 'FT_KERNING_UNS CALED' was not declared in
    this scope
    src/ft2font.cpp:190 5: error: 'FT_LOAD_NO_AUT OHINT' was not declared in
    this scope
    src/ft2font.cpp:190 6: error: 'FT_LOAD_TARGET _NORMAL' was not declared
    in this scope
    src/ft2font.cpp:190 7: error: 'FT_LOAD_TARGET _LIGHT' was not declared
    in this scope
    src/ft2font.cpp:190 8: error: 'FT_LOAD_TARGET _MONO' was not declared in
    this scope
    src/ft2font.cpp:190 9: error: 'FT_LOAD_TARGET _LCD' was not declared in
    this scope
    src/ft2font.cpp:191 0: error: 'FT_LOAD_TARGET _LCD_V' was not declared
    in this scope
    error: command 'gcc' failed with exit status 1
  • Diez B. Roggisch

    #2
    Re: matplotlib install error

    John schrieb:
    I'm trying to install matplotlib and currently getting the below
    error. I searched the group and google and couldn't find anything
    similar... Any ideas?
    >
    Thanks in advance!
    >
    src/ft2font.cpp: In member function 'Py::Object
    Glyph::get_path (FT_FaceRec_* const&)':
    src/ft2font.cpp:441 : error: 'FT_CURVE_TAG_C UBIC' was not declared in
    this scope
    src/ft2font.cpp:444 : error: 'FT_CURVE_TAG_C ONIC' was not declared in
    this scope
    src/ft2font.cpp:447 : error: 'FT_CURVE_TAG_O N' was not declared in this
    scope
    src/ft2font.cpp:487 : error: 'FT_CURVE_TAG_O N' was not declared in this
    scope
    src/ft2font.cpp:500 : error: 'FT_CURVE_TAG_C ONIC' was not declared in
    this scope
    src/ft2font.cpp:572 : error: 'FT_CURVE_TAG_C UBIC' was not declared in
    this scope
    src/ft2font.cpp: In member function 'Py::Object
    FT2Font::set_te xt(const Py::Tuple&, const Py::Dict&)':
    src/ft2font.cpp:983 : error: 'FT_KERNING_DEF AULT' was not declared in
    this scope
    src/ft2font.cpp: In member function 'Py::Object
    FT2Font::get_ps _font_info(cons t Py::Tuple&)':
    src/ft2font.cpp:142 8: error: 'PS_FontInfoRec ' was not declared in this
    scope
    src/ft2font.cpp:142 8: error: expected `;' before 'fontinfo'
    src/ft2font.cpp:143 0: error: 'fontinfo' was not declared in this scope
    src/ft2font.cpp:143 0: error: 'FT_Get_PS_Font _Info' was not declared in
    this scope
    src/ft2font.cpp: In function 'void initft2font()':
    src/ft2font.cpp:188 4: error: 'FT_KERNING_DEF AULT' was not declared in
    this scope
    src/ft2font.cpp:188 5: error: 'FT_KERNING_UNF ITTED' was not declared in
    this scope
    src/ft2font.cpp:188 6: error: 'FT_KERNING_UNS CALED' was not declared in
    this scope
    src/ft2font.cpp:190 5: error: 'FT_LOAD_NO_AUT OHINT' was not declared in
    this scope
    src/ft2font.cpp:190 6: error: 'FT_LOAD_TARGET _NORMAL' was not declared
    in this scope
    src/ft2font.cpp:190 7: error: 'FT_LOAD_TARGET _LIGHT' was not declared
    in this scope
    src/ft2font.cpp:190 8: error: 'FT_LOAD_TARGET _MONO' was not declared in
    this scope
    src/ft2font.cpp:190 9: error: 'FT_LOAD_TARGET _LCD' was not declared in
    this scope
    src/ft2font.cpp:191 0: error: 'FT_LOAD_TARGET _LCD_V' was not declared
    in this scope
    error: command 'gcc' failed with exit status 1
    Is thate really all of the error? It hints on a missing include, which
    will be mentioned earlier.

    Diez

    Comment

    • John

      #3
      Re: matplotlib install error

      Is thate really all of the error? It hints on a missing include, which
      will be mentioned earlier.
      >
      Diez
      platform: linux2

      REQUIRED DEPENDENCIES
      numpy: 1.0.3.1
      freetype2: found, but unknown version (no pkg-config)

      OPTIONAL BACKEND DEPENDENCIES
      libpng: found, but unknown version (no pkg-config)
      Tkinter: Tkinter: 50704, Tk: 8.3, Tcl: 8.3
      wxPython: no
      * wxPython not found
      Gtk+: no
      * Building for Gtk+ requires pygtk; you must
      be able
      * to "import gtk" in your build/install
      environment
      Qt: no
      Qt4: no
      Cairo: no

      OPTIONAL DATE/TIMEZONE DEPENDENCIES
      datetime: present, version unknown
      dateutil: matplotlib will provide
      pytz: matplotlib will provide

      OPTIONAL USETEX DEPENDENCIES
      dvipng: no
      ghostscript: 6.52
      latex: 3.14159
      pdftops: 1.00

      EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
      configobj: matplotlib will provide
      enthought.trait s: matplotlib will provide

      [Edit setup.cfg to suppress the above messages]
      =============== =============== =============== =============== =============== =
      running build
      running build_py
      copying lib/matplotlib/mpl-data/matplotlibrc -build/lib.linux-
      i686-2.5/matplotlib/mpl-data
      copying lib/matplotlib/mpl-data/matplotlib.conf -build/lib.linux-
      i686-2.5/matplotlib/mpl-data
      running build_ext
      building 'matplotlib.ft2 font' extension
      gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
      prototypes -fPIC -I/usr/local/include -I/usr/include -I. -I/usr/local/
      include/freetype2 -I/usr/include/freetype2 -I./freetype2 -I/data1/
      szscm1/usr/local/include/python2.5 -c src/ft2font.cpp -o build/
      temp.linux-i686-2.5/src/ft2font.o
      cc1plus: warning: command line option "-Wstrict-prototypes" is valid
      for Ada/C/ObjC but not for C++
      In file included from /data1/szscm1/usr/local/include/python2.5/
      Python.h:8,
      from ./CXX/WrapPython.h:47 ,
      from ./CXX/Extensions.hxx: 48,
      from src/ft2font.h:18,
      from src/ft2font.cpp:2:
      /data1/szscm1/usr/local/include/python2.5/pyconfig.h:932: 1: warning:
      "_POSIX_C_SOURC E" redefined
      In file included from /data1/qzcpfl/gcc-build/lib/gcc/i686-pc-linux-
      gnu/4.2.1/../../../../include/c++/4.2.1/i686-pc-linux-gnu/bits/
      os_defines.h:44 ,
      from /data1/qzcpfl/gcc-build/lib/gcc/i686-pc-linux-
      gnu/4.2.1/../../../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c+
      +config.h:41,
      from /data1/qzcpfl/gcc-build/lib/gcc/i686-pc-linux-
      gnu/4.2.1/../../../../include/c++/4.2.1/iosfwd:44,
      from /data1/qzcpfl/gcc-build/lib/gcc/i686-pc-linux-
      gnu/4.2.1/../../../../include/c++/4.2.1/ios:43,
      from /data1/qzcpfl/gcc-build/lib/gcc/i686-pc-linux-
      gnu/4.2.1/../../../../include/c++/4.2.1/istream:44,
      from /data1/qzcpfl/gcc-build/lib/gcc/i686-pc-linux-
      gnu/4.2.1/../../../../include/c++/4.2.1/sstream:44,
      from src/ft2font.cpp:1:
      /usr/include/features.h:131: 1: warning: this is the location of the
      previous definition
      src/ft2font.cpp: In member function 'Py::Object
      Glyph::get_path (FT_FaceRec_* const&)':
      src/ft2font.cpp:441 : error: 'FT_CURVE_TAG_C UBIC' was not declared in
      this scope
      src/ft2font.cpp:444 : error: 'FT_CURVE_TAG_C ONIC' was not declared in
      this scope
      src/ft2font.cpp:447 : error: 'FT_CURVE_TAG_O N' was not declared in this
      scope
      src/ft2font.cpp:487 : error: 'FT_CURVE_TAG_O N' was not declared in this
      scope
      src/ft2font.cpp:500 : error: 'FT_CURVE_TAG_C ONIC' was not declared in
      this scope
      src/ft2font.cpp:572 : error: 'FT_CURVE_TAG_C UBIC' was not declared in
      this scope
      src/ft2font.cpp: In member function 'Py::Object
      FT2Font::set_te xt(const Py::Tuple&, const Py::Dict&)':
      src/ft2font.cpp:983 : error: 'FT_KERNING_DEF AULT' was not declared in
      this scope
      src/ft2font.cpp: In member function 'Py::Object
      FT2Font::get_ps _font_info(cons t Py::Tuple&)':
      src/ft2font.cpp:142 8: error: 'PS_FontInfoRec ' was not declared in this
      scope
      src/ft2font.cpp:142 8: error: expected `;' before 'fontinfo'
      src/ft2font.cpp:143 0: error: 'fontinfo' was not declared in this scope
      src/ft2font.cpp:143 0: error: 'FT_Get_PS_Font _Info' was not declared in
      this scope
      src/ft2font.cpp: In function 'void initft2font()':
      src/ft2font.cpp:188 4: error: 'FT_KERNING_DEF AULT' was not declared in
      this scope
      src/ft2font.cpp:188 5: error: 'FT_KERNING_UNF ITTED' was not declared in
      this scope
      src/ft2font.cpp:188 6: error: 'FT_KERNING_UNS CALED' was not declared in
      this scope
      src/ft2font.cpp:190 5: error: 'FT_LOAD_NO_AUT OHINT' was not declared in
      this scope
      src/ft2font.cpp:190 6: error: 'FT_LOAD_TARGET _NORMAL' was not declared
      in this scope
      src/ft2font.cpp:190 7: error: 'FT_LOAD_TARGET _LIGHT' was not declared
      in this scope
      src/ft2font.cpp:190 8: error: 'FT_LOAD_TARGET _MONO' was not declared in
      this scope
      src/ft2font.cpp:190 9: error: 'FT_LOAD_TARGET _LCD' was not declared in
      this scope
      src/ft2font.cpp:191 0: error: 'FT_LOAD_TARGET _LCD_V' was not declared
      in this scope
      error: command 'gcc' failed with exit status 1

      Comment

      Working...