Hello everyone,
I need some help for building matplotlib from source. I'm using Debian sid
on 64bit.
I had errors when trying to build version 0.98.5.1 and now it's not gone
with 0.98.5.2, so I hope mailing is appropriate.
I've appended the whole log.
Thanks in advance.
Best wishes, Fabio Tonti
============================================================================
BUILDING MATPLOTLIB
matplotlib: 0.98.5.2
python: 2.5.2 (r252:60911, Jan 4 2009, 21:59:32) [GCC
4.3.2]
platform: linux2
REQUIRED DEPENDENCIES
numpy: 1.1.1
freetype2: found, but unknown version (no pkg-config)
* WARNING: Could not find 'freetype2' headers in any
* of '/usr/local/include', '/usr/include', '.',
* '/usr/local/include/freetype2',
* '/usr/include/freetype2', './freetype2'.
OPTIONAL BACKEND DEPENDENCIES
libpng: found, but unknown version (no pkg-config)
Tkinter: no
* Using default library and include directories for
* Tcl and Tk because a Tk window failed to open.
* You may need to define DISPLAY for Tk to work so
* that setup can determine where your libraries are
* located. Tkinter present, but header files are not
* found. You may need to install development
* packages.
wxPython: no
* WXAgg's accelerator requires `wx-config'. The
* `wx-config' executable could not be located in any
* directory of the PATH environment variable. If you
* want to build WXAgg, and wx-config is in some
* other location or has some other name, set the
* WX_CONFIG environment variable to the full path of
* the executable like so: export WX_CONFIG=/usr/lib
* /wxPython-2.6.1.0-gtk2-unicode/bin/wx-config
* You may need to install 'dev' package(s) to
* provide header files.
Gtk+: no
* Could not find Gtk+ headers in any of
* '/usr/local/include', '/usr/include', '.'
Mac OS X native: no
Qt: no
Qt4: no
Cairo: 1.4.12
OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: 1.4.1
pytz: 2008h
OPTIONAL USETEX DEPENDENCIES
dvipng: no
ghostscript: 8.63
latex: 3.141592
pdftops: 3.00
[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections',
'mpl_toolkits', 'matplotlib.numerix', 'matplotlib.numerix.mlab',
'matplotlib.numerix.ma', 'matplotlib.numerix.npyma',
'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array',
'matplotlib.numerix.fft', 'matplotlib.delaunay']
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc ->
build/lib.linux-x86_64-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf ->
build/lib.linux-x86_64-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.ft2font' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I.
-I/usr/lib/python2.5/site-packages/numpy/core/include/freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-I/usr/include/python2.5 -c src/ft2font.cpp -o
build/temp.linux-x86_64-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 ./CXX/Extensions.hxx:48,
from src/ft2font.h:4,
from src/ft2font.cpp:1:
./CXX/WrapPython.h:42:20: error: Python.h: No such file or directory
In file included from ./CXX/Extensions.hxx:50,
from src/ft2font.h:4,
from src/ft2font.cpp:1:
./CXX/Config.hxx:112:2: error: #error not defined PY_MAJOR_VERSION
In file included from src/ft2font.cpp:1:
src/ft2font.h:13:22: error: ft2build.h: No such file or directory
src/ft2font.h:14:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME>
In file included from
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14,
from src/ft2font.cpp:6:
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:100:2:
error: #error Must use Python with unicode enabled.
In file included from ./CXX/Exception.hxx:44,
from ./CXX/Objects.hxx:44,
from ./CXX/Extensions.hxx:51,
from src/ft2font.h:4,
from src/ft2font.cpp:1:
./CXX/IndirectPythonInterface.hxx:50: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:51: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:52: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:53: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:55: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:56: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:57: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:58: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:59: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:60: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:61: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:62: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:63: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:64: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:65: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:66: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:67: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:68: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:69: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:70: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:71: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:72: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:73: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:74: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:75: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:76: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:81: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:93: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:99: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:100: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:100: error: âoâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:102: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:103: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:103: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:105: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:106: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:106: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:108: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:109: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:109: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:111: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:112: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:112: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:114: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:115: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:115: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:117: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:118: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:118: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:120: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:121: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:121: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:123: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:124: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:124: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:126: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:127: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:127: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:129: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:130: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:130: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:132: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:133: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:133: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:135: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:136: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:136: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:138: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:139: error: redefinition of âbool
Py::_List_Checkâ
./CXX/IndirectPythonInterface.hxx:100: error: âbool Py::_List_Checkâ
previously defined here
./CXX/IndirectPythonInterface.hxx:139: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:139: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:141: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:142: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:142: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:144: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:145: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:145: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:147: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:148: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:148: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:150: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:151: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:151: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:153: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:154: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:154: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:156: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:157: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:157: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:159: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:160: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:160: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:162: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:163: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:163: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:165: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:166: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:166: error: âvâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:168: error: expected constructor, destructor,
or type conversion before â*â token
./CXX/IndirectPythonInterface.hxx:169: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:169: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:187: error: variable or field â_XINCREFâ
declared void
./CXX/IndirectPythonInterface.hxx:187: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:187: error: âopâ was not declared in this
scope
./CXX/IndirectPythonInterface.hxx:188: error: variable or field â_XDECREFâ
declared void
./CXX/IndirectPythonInterface.hxx:188: error: âPyObjectâ was not declared
in this scope
./CXX/IndirectPythonInterface.hxx:188: error: âopâ was not declared in this
scope
In file included from ./CXX/Objects.hxx:44,
from ./CXX/Extensions.hxx:51,
from src/ft2font.h:4,
from src/ft2font.cpp:1:
./CXX/Exception.hxx:70: error: expected `)' before â*â token
./CXX/Exception.hxx:75: error: expected `)' before â*â token
./CXX/Exception.hxx: In constructor âPy::Exception::Exception(const
std::string&)â:
./CXX/Exception.hxx:67: error: â_Exc_RuntimeErrorâ is not a member of
âPyâ
./CXX/Exception.hxx:67: error: âPyErr_SetStringâ was not declared in this
scope
./CXX/Exception.hxx: In member function âvoid Py::Exception::clear()â:
./CXX/Exception.hxx:80: error: âPyErr_Clearâ was not declared in this scope
./CXX/Exception.hxx: In constructor âPy::TypeError::TypeError(const
std::string&)â:
./CXX/Exception.hxx:122: error: â_Exc_TypeErrorâ is not a member of âPyâ
./CXX/Exception.hxx:122: error: âPyErr_SetStringâ was not declared in this
scope
./CXX/Exception.hxx: In constructor âPy::IndexError::IndexError(const
std::string&)â:
./CXX/Exception.hxx:132: error: â_Exc_IndexErrorâ is not a member of
âPyâ
./CXX/Exception.hxx:132: error: âPyErr_SetStringâ was not declared in this
scope
./CXX/Exception.hxx: In constructor âPy::AttributeError::AttributeError(const
std::string&)â:
./CXX/Exception.hxx:142: error: â_Exc_AttributeErrorâ is not a member of
âPyâ
./CXX/Exception.hxx:142: error: âPyErr_SetStringâ was not declared in this
scope
./CXX/Exception.hxx: In constructor âPy::NameError::NameError(const
std::string&)â:
./CXX/Exception.hxx:152: error: â_Exc_NameErrorâ is not a member of âPyâ
./CXX/Exception.hxx:152: error: âPyErr_SetStringâ was not declared in this
scope
./CXX/Exception.hxx: In constructor âPy::RuntimeError::RuntimeError(const
std::string&)â:
./CXX/Exception.hxx:162: error: â_Exc_RuntimeErrorâ is not a member of
âPyâ
./CXX/Exception.hxx:162: error: âPyErr_SetStringâ was not declared in this
scope
./CXX/Exception.hxx: In constructor âPy::SystemError::SystemError(const
std::string&)â:
./CXX/Exception.hxx:172: error: â_Exc_SystemErrorâ is not a member of
âPyâ
./CXX/Exception.hxx:172: error: âPyErr_SetStringâ was not declared in this
scope
./CXX/Exception.hxx: In constructor âPy::KeyError::KeyError(const
std::string&)â:
./CXX/Exception.hxx:182: error: â_Exc_KeyErrorâ is not a member of âPyâ
./CXX/Exception.hxx:182: error: âPyErr_SetStringâ was not declared in this
scope
./CXX/Exception.hxx: In constructor âPy::ValueError::ValueError(const
std::string&)â:
./CXX/Exception.hxx:193: error: â_Exc_ValueErrorâ is not a member of
âPyâ
./CXX/Exception.hxx:193: error: âPyErr_SetStringâ was not declared in this
scope
./CXX/Exception.hxx: In constructor âPy::OverflowError::OverflowError(const
std::string&)â:
./CXX/Exception.hxx:203: error: â_Exc_OverflowErrorâ is not a member of
âPyâ
./CXX/Exception.hxx:203: error: âPyErr_SetStringâ was not declared in this
scope
./CXX/Exception.hxx: In constructor
âPy::ZeroDivisionError::ZeroDivisionError(const std::string&)â:
./CXX/Exception.hxx:213: error: â_Exc_ZeroDivisionErrorâ is not a member of
âPyâ
./CXX/Exception.hxx:213: error: âPyErr_SetStringâ was not declared in this
scope
./CXX/Exception.hxx: In constructor
âPy::FloatingPointError::FloatingPointError(const std::string&)â:
./CXX/Exception.hxx:223: error: â_Exc_FloatingPointErrorâ is not a member
of âPyâ
./CXX/Exception.hxx:223: error: âPyErr_SetStringâ was not declared in this
scope
./CXX/Exception.hxx: In constructor âPy::MemoryError::MemoryError(const
std::string&)â:
./CXX/Exception.hxx:233: error: â_Exc_MemoryErrorâ is not a member of
âPyâ
./CXX/Exception.hxx:233: error: âPyErr_SetStringâ was not declared in this
scope
./CXX/Exception.hxx: In constructor âPy::SystemExit::SystemExit(const
std::string&)â:
./CXX/Exception.hxx:243: error: â_Exc_SystemExitâ is not a member of
âPyâ
./CXX/Exception.hxx:243: error: âPyErr_SetStringâ was not declared in this
scope
In file included from ./CXX/Extensions.hxx:51,
from src/ft2font.h:4,
from src/ft2font.cpp:1:
./CXX/Objects.hxx: At global scope:
./CXX/Objects.hxx:66: error: expected initializer before â*â token
./CXX/Objects.hxx:74: error: expected initializer before â*â token
./CXX/Objects.hxx:150: error: ISO C++ forbids declaration of âPyObjectâ
with no type
./CXX/Objects.hxx:150: error: expected â;â before â*â token
./CXX/Objects.hxx:154: error: âPyObjectâ has not been declared
./CXX/Objects.hxx:194: error: expected `)' before â*â token
src/ft2font.cpp:1931: error: expected `}' at end of input
./CXX/Objects.hxx: In member function âvoid Py::Object::set(int*, bool)â:
./CXX/Objects.hxx:157: error: âpâ was not declared in this scope
./CXX/Objects.hxx:160: error: â_XINCREFâ is not a member of âPyâ
./CXX/Objects.hxx: In member function âvoid Py::Object::release()â:
./CXX/Objects.hxx:167: error: â_XDECREFâ is not a member of âPyâ
./CXX/Objects.hxx:167: error: âpâ was not declared in this scope
./CXX/Objects.hxx: In member function âvoid Py::Object::validate()â:
./CXX/Objects.hxx:174: error: âpâ was not declared in this scope
./CXX/Objects.hxx:174: error: âacceptsâ was not declared in this scope
./CXX/Objects.hxx:177: error: âPyErr_Occurredâ was not declared in this
scope
./CXX/Objects.hxx: At global scope:
./CXX/Objects.hxx:190: error: expected unqualified-id at end of input
./CXX/Objects.hxx:190: error: expected `}' at end of input
error: command 'gcc' failed with exit status 1
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users