By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,035 Members | 1,471 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,035 IT Pros & Developers. It's quick & easy.

matplotlib install error

P: n/a
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_CUBIC' was not declared in
this scope
src/ft2font.cpp:444: error: 'FT_CURVE_TAG_CONIC' was not declared in
this scope
src/ft2font.cpp:447: error: 'FT_CURVE_TAG_ON' was not declared in this
scope
src/ft2font.cpp:487: error: 'FT_CURVE_TAG_ON' was not declared in this
scope
src/ft2font.cpp:500: error: 'FT_CURVE_TAG_CONIC' was not declared in
this scope
src/ft2font.cpp:572: error: 'FT_CURVE_TAG_CUBIC' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::set_text(const Py::Tuple&, const Py::Dict&)':
src/ft2font.cpp:983: error: 'FT_KERNING_DEFAULT' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::get_ps_font_info(const Py::Tuple&)':
src/ft2font.cpp:1428: error: 'PS_FontInfoRec' was not declared in this
scope
src/ft2font.cpp:1428: error: expected `;' before 'fontinfo'
src/ft2font.cpp:1430: error: 'fontinfo' was not declared in this scope
src/ft2font.cpp:1430: error: 'FT_Get_PS_Font_Info' was not declared in
this scope
src/ft2font.cpp: In function 'void initft2font()':
src/ft2font.cpp:1884: error: 'FT_KERNING_DEFAULT' was not declared in
this scope
src/ft2font.cpp:1885: error: 'FT_KERNING_UNFITTED' was not declared in
this scope
src/ft2font.cpp:1886: error: 'FT_KERNING_UNSCALED' was not declared in
this scope
src/ft2font.cpp:1905: error: 'FT_LOAD_NO_AUTOHINT' was not declared in
this scope
src/ft2font.cpp:1906: error: 'FT_LOAD_TARGET_NORMAL' was not declared
in this scope
src/ft2font.cpp:1907: error: 'FT_LOAD_TARGET_LIGHT' was not declared
in this scope
src/ft2font.cpp:1908: error: 'FT_LOAD_TARGET_MONO' was not declared in
this scope
src/ft2font.cpp:1909: error: 'FT_LOAD_TARGET_LCD' was not declared in
this scope
src/ft2font.cpp:1910: error: 'FT_LOAD_TARGET_LCD_V' was not declared
in this scope
error: command 'gcc' failed with exit status 1
Feb 7 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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_CUBIC' was not declared in
this scope
src/ft2font.cpp:444: error: 'FT_CURVE_TAG_CONIC' was not declared in
this scope
src/ft2font.cpp:447: error: 'FT_CURVE_TAG_ON' was not declared in this
scope
src/ft2font.cpp:487: error: 'FT_CURVE_TAG_ON' was not declared in this
scope
src/ft2font.cpp:500: error: 'FT_CURVE_TAG_CONIC' was not declared in
this scope
src/ft2font.cpp:572: error: 'FT_CURVE_TAG_CUBIC' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::set_text(const Py::Tuple&, const Py::Dict&)':
src/ft2font.cpp:983: error: 'FT_KERNING_DEFAULT' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::get_ps_font_info(const Py::Tuple&)':
src/ft2font.cpp:1428: error: 'PS_FontInfoRec' was not declared in this
scope
src/ft2font.cpp:1428: error: expected `;' before 'fontinfo'
src/ft2font.cpp:1430: error: 'fontinfo' was not declared in this scope
src/ft2font.cpp:1430: error: 'FT_Get_PS_Font_Info' was not declared in
this scope
src/ft2font.cpp: In function 'void initft2font()':
src/ft2font.cpp:1884: error: 'FT_KERNING_DEFAULT' was not declared in
this scope
src/ft2font.cpp:1885: error: 'FT_KERNING_UNFITTED' was not declared in
this scope
src/ft2font.cpp:1886: error: 'FT_KERNING_UNSCALED' was not declared in
this scope
src/ft2font.cpp:1905: error: 'FT_LOAD_NO_AUTOHINT' was not declared in
this scope
src/ft2font.cpp:1906: error: 'FT_LOAD_TARGET_NORMAL' was not declared
in this scope
src/ft2font.cpp:1907: error: 'FT_LOAD_TARGET_LIGHT' was not declared
in this scope
src/ft2font.cpp:1908: error: 'FT_LOAD_TARGET_MONO' was not declared in
this scope
src/ft2font.cpp:1909: error: 'FT_LOAD_TARGET_LCD' was not declared in
this scope
src/ft2font.cpp:1910: 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
Feb 7 '08 #2

P: n/a
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.traits: 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.ft2font' 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_SOURCE" 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_CUBIC' was not declared in
this scope
src/ft2font.cpp:444: error: 'FT_CURVE_TAG_CONIC' was not declared in
this scope
src/ft2font.cpp:447: error: 'FT_CURVE_TAG_ON' was not declared in this
scope
src/ft2font.cpp:487: error: 'FT_CURVE_TAG_ON' was not declared in this
scope
src/ft2font.cpp:500: error: 'FT_CURVE_TAG_CONIC' was not declared in
this scope
src/ft2font.cpp:572: error: 'FT_CURVE_TAG_CUBIC' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::set_text(const Py::Tuple&, const Py::Dict&)':
src/ft2font.cpp:983: error: 'FT_KERNING_DEFAULT' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::get_ps_font_info(const Py::Tuple&)':
src/ft2font.cpp:1428: error: 'PS_FontInfoRec' was not declared in this
scope
src/ft2font.cpp:1428: error: expected `;' before 'fontinfo'
src/ft2font.cpp:1430: error: 'fontinfo' was not declared in this scope
src/ft2font.cpp:1430: error: 'FT_Get_PS_Font_Info' was not declared in
this scope
src/ft2font.cpp: In function 'void initft2font()':
src/ft2font.cpp:1884: error: 'FT_KERNING_DEFAULT' was not declared in
this scope
src/ft2font.cpp:1885: error: 'FT_KERNING_UNFITTED' was not declared in
this scope
src/ft2font.cpp:1886: error: 'FT_KERNING_UNSCALED' was not declared in
this scope
src/ft2font.cpp:1905: error: 'FT_LOAD_NO_AUTOHINT' was not declared in
this scope
src/ft2font.cpp:1906: error: 'FT_LOAD_TARGET_NORMAL' was not declared
in this scope
src/ft2font.cpp:1907: error: 'FT_LOAD_TARGET_LIGHT' was not declared
in this scope
src/ft2font.cpp:1908: error: 'FT_LOAD_TARGET_MONO' was not declared in
this scope
src/ft2font.cpp:1909: error: 'FT_LOAD_TARGET_LCD' was not declared in
this scope
src/ft2font.cpp:1910: error: 'FT_LOAD_TARGET_LCD_V' was not declared
in this scope
error: command 'gcc' failed with exit status 1
Feb 8 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.