issue of compiling matplotlib1.1.0 on linux

Hi, dears

I’m
a beginner of matplotlib and I tried hard, but couldn’t compile it

Here’s the details of my system

l Linux host28 2.6.18-274.12.1.el5 #1 SMP Tue Nov 29 13:37:46 EST 2011
x86_64 x86_64 x86_64 GNU/Linux

l Nothing touched in setup.py or setupext.py

l Output of build

basedirlist is:
[’/usr/local’, ‘/usr’]

image001.png

···

============================================================================

BUILDING
MATPLOTLIB

matplotlib: 1.2.x

python: 2.7.2
(default, Oct 27 2011, 14:39:41) [GCC 4.1.2

20080704 (Red Hat 4.1.2-51)]

platform: linux2

REQUIRED
DEPENDENCIES

numpy: 1.6.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’, ‘/usr/include’, ‘.’,

  • ‘/usr/local/include/freetype2’,

  • ‘/usr/include/freetype2’,

  • ‘/usr/local/include/freetype2’,

  • ‘/usr/include/freetype2’, ‘./freetype2’.

OPTIONAL BACKEND
DEPENDENCIES

libpng: found, but unknown version (no pkg-config)

  • Could not find ‘libpng’ headers in any of

  • ‘/usr/local/include’, ‘/usr/include’,

  • ‘/usr/local/include’, ‘/usr/include’, ‘.’

Tkinter: no

  • TKAgg requires Tkinter

Gtk+: no

  • Building for Gtk+ requires pygtk; you must be able

  • to “import gtk” in your build/install environment

Mac OS X native: no

Qt: no

Qt4: no

PySide: no

Cairo: no

OPTIONAL
DATE/TIMEZONE DEPENDENCIES

datetime: present, version unknown

dateutil: matplotlib will provide

pytz: matplotlib will provide

adding pytz

OPTIONAL USETEX
DEPENDENCIES

dvipng: no

ghostscript: 8.70

latex: no

pdftops: 3.00

[Edit setup.cfg
to suppress the above messages]

============================================================================

pymods [‘pylab’]

packages
[‘matplotlib’, ‘matplotlib.backends’, ‘matplotlib.backends.qt4_editor’,
‘matplotlib.projections’, ‘matplotlib.testing’, ‘matplotlib.testing.jpl_units’,
‘matplotlib.tests’, ‘mpl_toolkits’, ‘mpl_toolkits.mplot3d’,
‘mpl_toolkits.axes_grid’, ‘mpl_toolkits.axes_grid1’, ‘mpl_toolkits.axisartist’,
‘matplotlib.sphinxext’, ‘matplotlib.tri’, ‘matplotlib.delaunay’, ‘pytz’,
‘dateutil’, ‘dateutil.zoneinfo’]

…skipping…

copying
lib/pytz/zoneinfo/Pacific/Guam ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Pohnpei ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Efate -> build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Port_Moresby ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Marquesas ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Guadalcanal ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Niue ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Ponape -> build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Honolulu ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Yap ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Tarawa -> build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Chuuk ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Kosrae ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Easter ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Johnston ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Norfolk ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Auckland ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Tongatapu ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Gambier -> build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Nauru ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Kwajalein ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Chatham ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Rarotonga ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Pitcairn ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Saipan ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Midway ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Fiji -> build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Galapagos ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Apia ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Fakaofo -> build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Noumea ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Samoa ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Wake ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Palau ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Funafuti ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Majuro ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Pago_Pago ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Enderbury -> build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Wallis ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Tahiti ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Kiritimati ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/pytz/zoneinfo/Pacific/Truk ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying
lib/dateutil/zoneinfo/zoneinfo-2010g.tar.gz ->
build/lib.linux-x86_64-2.7/dateutil/zoneinfo

running build_ext

building
‘matplotlib.ft2font’ extension

creating
build/temp.linux-x86_64-2.7

creating
build/temp.linux-x86_64-2.7/src

creating
build/temp.linux-x86_64-2.7/CXX

gcc -pthread
-fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API
-DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include
-I/usr/local/lib/python2.7/site-packages/numpy-1.6.1-py2.7-linux-x86_64.egg/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/local/include/freetype2 -I/usr/include/freetype2
-I/usr/local/lib/python2.7/site-packages/numpy-1.6.1-py2.7-linux-x86_64.egg/numpy/core/include/freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-I/usr/local/include/python2.7 -c src/ft2font.cpp -o build/temp.linux-x86_64-2.7/src/ft2font.o

在包含自 src/ft2font.cpp:3 的文件中:

src/ft2font.h:16:22:
错误:ft2build.h:没有那个文件或目录

src/ft2font.h:17:10:
错误:#include 需要 “FILENAME” 或

src/ft2font.h:18:10:
错误:#include 需要 “FILENAME” 或

src/ft2font.h:19:10:
错误:#include 需要 “FILENAME” 或

src/ft2font.h:20:10:
错误:#include 需要 “FILENAME” 或

src/ft2font.h:21:10:
错误:#include 需要 “FILENAME” 或

src/ft2font.h:34:
错误:‘FT_Bitmap’ 未声明

src/ft2font.h:34:
错误:‘FT_Int’ 未声明

src/ft2font.h:34:
错误:‘FT_Int’ 未声明

src/ft2font.h:86:
错误:expected ‘,’ or ‘…’
before ‘&’ token

src/ft2font.h:86:
错误:ISO C++ 不允许声明无类型的 ‘FT_Face’

src/ft2font.h:131:
错误:‘FT_Face’ 没有命名一个类型

src/ft2font.h:132:
错误:‘FT_Matrix’ 没有命名一个类型

src/ft2font.h:133:
错误:‘FT_Vector’ 没有命名一个类型

src/ft2font.h:134:
错误:‘FT_Error’ 没有命名一个类型

src/ft2font.h:135:
错误:‘FT_Glyph’ 在此作用域中尚未声明

src/ft2font.h:135:
错误:模板参数 1 无效

src/ft2font.h:135:
错误:模板参数 2 无效

src/ft2font.h:136:
错误:‘FT_Vector’ 在此作用域中尚未声明

src/ft2font.h:136:
错误:模板参数 1 无效

src/ft2font.h:136:
错误:模板参数 2 无效

src/ft2font.h:142:
错误:‘FT_BBox’ 没有命名一个类型

src/ft2font.cpp:41:
错误:‘FT_Library’ 没有命名一个类型

src/ft2font.cpp:106:
错误:变量或字段 ‘draw_bitmap’
声明为 void

src/ft2font.cpp:106:
错误:‘int
FT2Image::draw_bitmap’ 不是 ‘class FT2Image’ 的静态成员

src/ft2font.cpp:106:
错误:‘FT_Bitmap’ 在此作用域中尚未声明

src/ft2font.cpp:106:
错误:‘bitmap’ 在此作用域中尚未声明

src/ft2font.cpp:107:
错误:‘FT_Int’ 在此作用域中尚未声明

src/ft2font.cpp:108:
错误:‘FT_Int’ 在此作用域中尚未声明

src/ft2font.cpp:108:
错误:initializer 表达式列表被看作复合表达式

src/ft2font.cpp:109:
错误:expected ‘,’ or ‘;’
before ‘{’ token

/usr/local/lib/python2.7/site-packages/numpy-1.6.1-py2.7-linux-x86_64.egg/numpy/core/include/numpy/__multiarray_api.h:1532:
警告:‘int
_import_array()’ 定义后未使用

error: command ‘gcc’ failed with exit status 1

l gcc --version

gcc (GCC) 4.1.2
20080704 (Red Hat 4.1.2-51)

Copyright © 2006 Free Software Foundation, Inc.

Anyone pls help. Thanks in advance!

Best regards!

Christopher
Shou/Crawler Engineer

Description: cid:A2DEDB77-4E9F-4886-A85D-C9CBDABCF4E6

     Developed by Cmarket

TEL : +86-10-5820-7077

Fax : +86-10-5820-8575

          QQ : 250201619

MSN:shouxiaoqiang@…32…

Email
: christophershou@…4019…

             [Http://www.cloump.com](https://mail.cmarket.com.cn/owa/redir.aspx?C=7ca38bf5b3dd4ec3a7505c03995c31bd&URL=http%3a%2f%2fwww.cloump.com%2f)

Hi, dears

I’m a beginner of matplotlib and I tried hard, but couldn’t compile it

Here’s the details of my system

lLinux host28 2.6.18-274.12.1.el5 #1 SMP Tue Nov 29 13:37:46 EST 2011
x86_64 x86_64 x86_64 GNU/Linux

You are missing critical dependencies, including, but not limited to,
the freetype2 headers.

It looks like you are on a Redhat variant, so try the instructions in
the note here for using yum-builddep to get the dependencies:
http://matplotlib.sourceforge.net/users/installing.html#build-requirements

This may install an earlier version of numpy; if you have installed a
later version of numpy yourself and want to keep it, you can use the
package manager to uninstall the python-numpy package after running
yum-builddep and before building matplotlib.

Eric

···

On 03/12/2012 08:28 PM, christophershou wrote:

lNothing touched in setup.py or setupext.py

lOutput of build

basedirlist is: ['/usr/local', '/usr']

============================================================================

BUILDING MATPLOTLIB

matplotlib: 1.2.x

python: 2.7.2 (default, Oct 27 2011, 14:39:41) [GCC 4.1.2

20080704 (Red Hat 4.1.2-51)]

platform: linux2

REQUIRED DEPENDENCIES

numpy: 1.6.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', '/usr/include', '.',

* '/usr/local/include/freetype2',

* '/usr/include/freetype2',

* '/usr/local/include/freetype2',

* '/usr/include/freetype2', './freetype2'.

OPTIONAL BACKEND DEPENDENCIES

libpng: found, but unknown version (no pkg-config)

* Could not find 'libpng' headers in any of

* '/usr/local/include', '/usr/include',

* '/usr/local/include', '/usr/include', '.'

Tkinter: no

* TKAgg requires Tkinter

Gtk+: no

* Building for Gtk+ requires pygtk; you must be able

* to "import gtk" in your build/install environment

Mac OS X native: no

Qt: no

Qt4: no

PySide: no

Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES

datetime: present, version unknown

dateutil: matplotlib will provide

pytz: matplotlib will provide

adding pytz

OPTIONAL USETEX DEPENDENCIES

dvipng: no

ghostscript: 8.70

latex: no

pdftops: 3.00

[Edit setup.cfg to suppress the above messages]

============================================================================

pymods ['pylab']

packages ['matplotlib', 'matplotlib.backends',
'matplotlib.backends.qt4_editor', 'matplotlib.projections',
'matplotlib.testing', 'matplotlib.testing.jpl_units',
'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d',
'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1',
'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri',
'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil.zoneinfo']

...skipping...

copying lib/pytz/zoneinfo/Pacific/Guam ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Pohnpei ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Efate ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Port_Moresby ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Marquesas ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Guadalcanal ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Niue ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Ponape ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Honolulu ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Yap ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Tarawa ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Chuuk ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Kosrae ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Easter ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Johnston ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Norfolk ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Auckland ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Tongatapu ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Gambier ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Nauru ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Kwajalein ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Chatham ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Rarotonga ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Pitcairn ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Saipan ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Midway ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Fiji ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Galapagos ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Apia ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Fakaofo ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Noumea ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Samoa ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Wake ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Palau ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Funafuti ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Majuro ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Pago_Pago ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Enderbury ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Wallis ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Tahiti ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Kiritimati ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Truk ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/dateutil/zoneinfo/zoneinfo-2010g.tar.gz ->
build/lib.linux-x86_64-2.7/dateutil/zoneinfo

running build_ext

building 'matplotlib.ft2font' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/src

creating build/temp.linux-x86_64-2.7/CXX

gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
-fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
-I/usr/local/include -I/usr/include
-I/usr/local/lib/python2.7/site-packages/numpy-1.6.1-py2.7-linux-x86_64.egg/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/local/include/freetype2
-I/usr/include/freetype2
-I/usr/local/lib/python2.7/site-packages/numpy-1.6.1-py2.7-linux-x86_64.egg/numpy/core/include/freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-I/usr/local/include/python2.7 -c src/ft2font.cpp -o
build/temp.linux-x86_64-2.7/src/ft2font.o

在包含自src/ft2font.cpp:3 的文件中:

src/ft2font.h:16:22: 错误:ft2build.h:没有那个文件或目录

src/ft2font.h:17:10: 错误:#include 需要"FILENAME" 或<FILENAME>

src/ft2font.h:18:10: 错误:#include 需要"FILENAME" 或<FILENAME>

src/ft2font.h:19:10: 错误:#include 需要"FILENAME" 或<FILENAME>

src/ft2font.h:20:10: 错误:#include 需要"FILENAME" 或<FILENAME>

src/ft2font.h:21:10: 错误:#include 需要"FILENAME" 或<FILENAME>

src/ft2font.h:34: 错误:‘FT_Bitmap’ 未声明

src/ft2font.h:34: 错误:‘FT_Int’ 未声明

src/ft2font.h:34: 错误:‘FT_Int’ 未声明

src/ft2font.h:86: 错误:expected ‘,’or ‘...’before ‘&’token

src/ft2font.h:86: 错误:ISO C++ 不允许声明无类型的 ‘FT_Face’

src/ft2font.h:131: 错误:‘FT_Face’ 没有命名一个类型

src/ft2font.h:132: 错误:‘FT_Matrix’ 没有命名一个类型

src/ft2font.h:133: 错误:‘FT_Vector’ 没有命名一个类型

src/ft2font.h:134: 错误:‘FT_Error’ 没有命名一个类型

src/ft2font.h:135: 错误:‘FT_Glyph’ 在此作用域中尚未声明

src/ft2font.h:135: 错误:模板参数1 无效

src/ft2font.h:135: 错误:模板参数2 无效

src/ft2font.h:136: 错误:‘FT_Vector’ 在此作用域中尚未声明

src/ft2font.h:136: 错误:模板参数1 无效

src/ft2font.h:136: 错误:模板参数2 无效

src/ft2font.h:142: 错误:‘FT_BBox’ 没有命名一个类型

src/ft2font.cpp:41: 错误:‘FT_Library’ 没有命名一个类型

src/ft2font.cpp:106: 错误:变量或字段 ‘draw_bitmap’ 声明为void

src/ft2font.cpp:106: 错误:‘int FT2Image::draw_bitmap’ 不是 ‘class
FT2Image’ 的静态成员

src/ft2font.cpp:106: 错误:‘FT_Bitmap’ 在此作用域中尚未声明

src/ft2font.cpp:106: 错误:‘bitmap’ 在此作用域中尚未声明

src/ft2font.cpp:107: 错误:‘FT_Int’ 在此作用域中尚未声明

src/ft2font.cpp:108: 错误:‘FT_Int’ 在此作用域中尚未声明

src/ft2font.cpp:108: 错误:initializer 表达式列表被看作复合表达式

src/ft2font.cpp:109: 错误:expected ‘,’or ‘;’before ‘{’token

/usr/local/lib/python2.7/site-packages/numpy-1.6.1-py2.7-linux-x86_64.egg/numpy/core/include/numpy/__multiarray_api.h:1532:
警告:‘int _import_array()’ 定义后未使用

error: command 'gcc' failed with exit status 1

lgcc --version

gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)

Copyright (C) 2006 Free Software Foundation, Inc.

Anyone pls help. Thanks in advance!

Best regards!

Christopher Shou/Crawler Engineer

Description: cid:A2DEDB77-4E9F-4886-A85D-C9CBDABCF4E6

Developed by Cmarket

TEL : +86-10-5820-7077

Fax : +86-10-5820-8575

   QQ : 250201619

MSN:shouxiaoqiang@...32...

Email : christophershou@...4019...
<https://mail.cmarket.com.cn/owa/redir.aspx?C=7ca38bf5b3dd4ec3a7505c03995c31bd&URL=mailto%3Amichaelkook%40cmarket.com.cn>

Http://www.cloump.com
<https://mail.cmarket.com.cn/owa/redir.aspx?C=7ca38bf5b3dd4ec3a7505c03995c31bd&URL=http%3A%2F%2Fwww.cloump.com%2F>

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Thanks a lot, that issue has been resolved, thanks.
I manually install the missed libpng and freetype2 again, and I didn't find yum-builddep in my server(it's centos), after installed those two dependencies , compile done! Thanks again

Best regards!
Christopher Shou/Crawler Engineer

       Developed by Cmarket

                  TEL : +86-10-5820-7077
            Fax : +86-10-5820-8575
QQ : 250201619
MSN:shouxiaoqiang@...32...
Email : christophershou@...4019...
                   Http://www.cloump.com
      
-----邮件原件-----

···

发件人: Eric Firing [mailto:efiring@…202…]
发送时间: Tuesday, March 13, 2012 3:15 PM
收件人: matplotlib-users@lists.sourceforge.net
主题: Re: [Matplotlib-users] issue of compiling matplotlib1.1.0 on linux

On 03/12/2012 08:28 PM, christophershou wrote:

Hi, dears

I’m a beginner of matplotlib and I tried hard, but couldn’t compile it

Here’s the details of my system

lLinux host28 2.6.18-274.12.1.el5 #1 SMP Tue Nov 29 13:37:46 EST 2011
x86_64 x86_64 x86_64 GNU/Linux

You are missing critical dependencies, including, but not limited to,
the freetype2 headers.

It looks like you are on a Redhat variant, so try the instructions in
the note here for using yum-builddep to get the dependencies:
http://matplotlib.sourceforge.net/users/installing.html#build-requirements

This may install an earlier version of numpy; if you have installed a
later version of numpy yourself and want to keep it, you can use the
package manager to uninstall the python-numpy package after running
yum-builddep and before building matplotlib.

Eric

lNothing touched in setup.py or setupext.py

lOutput of build

basedirlist is: ['/usr/local', '/usr']

============================================================================

BUILDING MATPLOTLIB

matplotlib: 1.2.x

python: 2.7.2 (default, Oct 27 2011, 14:39:41) [GCC 4.1.2

20080704 (Red Hat 4.1.2-51)]

platform: linux2

REQUIRED DEPENDENCIES

numpy: 1.6.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', '/usr/include', '.',

* '/usr/local/include/freetype2',

* '/usr/include/freetype2',

* '/usr/local/include/freetype2',

* '/usr/include/freetype2', './freetype2'.

OPTIONAL BACKEND DEPENDENCIES

libpng: found, but unknown version (no pkg-config)

* Could not find 'libpng' headers in any of

* '/usr/local/include', '/usr/include',

* '/usr/local/include', '/usr/include', '.'

Tkinter: no

* TKAgg requires Tkinter

Gtk+: no

* Building for Gtk+ requires pygtk; you must be able

* to "import gtk" in your build/install environment

Mac OS X native: no

Qt: no

Qt4: no

PySide: no

Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES

datetime: present, version unknown

dateutil: matplotlib will provide

pytz: matplotlib will provide

adding pytz

OPTIONAL USETEX DEPENDENCIES

dvipng: no

ghostscript: 8.70

latex: no

pdftops: 3.00

[Edit setup.cfg to suppress the above messages]

============================================================================

pymods ['pylab']

packages ['matplotlib', 'matplotlib.backends',
'matplotlib.backends.qt4_editor', 'matplotlib.projections',
'matplotlib.testing', 'matplotlib.testing.jpl_units',
'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d',
'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1',
'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri',
'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil.zoneinfo']

...skipping...

copying lib/pytz/zoneinfo/Pacific/Guam ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Pohnpei ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Efate ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Port_Moresby ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Marquesas ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Guadalcanal ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Niue ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Ponape ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Honolulu ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Yap ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Tarawa ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Chuuk ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Kosrae ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Easter ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Johnston ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Norfolk ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Auckland ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Tongatapu ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Gambier ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Nauru ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Kwajalein ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Chatham ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Rarotonga ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Pitcairn ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Saipan ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Midway ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Fiji ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Galapagos ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Apia ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Fakaofo ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Noumea ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Samoa ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Wake ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Palau ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Funafuti ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Majuro ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Pago_Pago ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Enderbury ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Wallis ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Tahiti ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Kiritimati ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/pytz/zoneinfo/Pacific/Truk ->
build/lib.linux-x86_64-2.7/pytz/zoneinfo/Pacific

copying lib/dateutil/zoneinfo/zoneinfo-2010g.tar.gz ->
build/lib.linux-x86_64-2.7/dateutil/zoneinfo

running build_ext

building 'matplotlib.ft2font' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/src

creating build/temp.linux-x86_64-2.7/CXX

gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
-fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
-I/usr/local/include -I/usr/include
-I/usr/local/lib/python2.7/site-packages/numpy-1.6.1-py2.7-linux-x86_64.egg/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/usr/local/include/freetype2
-I/usr/include/freetype2
-I/usr/local/lib/python2.7/site-packages/numpy-1.6.1-py2.7-linux-x86_64.egg/numpy/core/include/freetype2
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
-I/usr/local/include/python2.7 -c src/ft2font.cpp -o
build/temp.linux-x86_64-2.7/src/ft2font.o

在包含自src/ft2font.cpp:3 的文件中:

src/ft2font.h:16:22: 错误:ft2build.h:没有那个文件或目录

src/ft2font.h:17:10: 错误:#include 需要"FILENAME" 或<FILENAME>

src/ft2font.h:18:10: 错误:#include 需要"FILENAME" 或<FILENAME>

src/ft2font.h:19:10: 错误:#include 需要"FILENAME" 或<FILENAME>

src/ft2font.h:20:10: 错误:#include 需要"FILENAME" 或<FILENAME>

src/ft2font.h:21:10: 错误:#include 需要"FILENAME" 或<FILENAME>

src/ft2font.h:34: 错误:‘FT_Bitmap’ 未声明

src/ft2font.h:34: 错误:‘FT_Int’ 未声明

src/ft2font.h:34: 错误:‘FT_Int’ 未声明

src/ft2font.h:86: 错误:expected ‘,’or ‘...’before ‘&’token

src/ft2font.h:86: 错误:ISO C++ 不允许声明无类型的 ‘FT_Face’

src/ft2font.h:131: 错误:‘FT_Face’ 没有命名一个类型

src/ft2font.h:132: 错误:‘FT_Matrix’ 没有命名一个类型

src/ft2font.h:133: 错误:‘FT_Vector’ 没有命名一个类型

src/ft2font.h:134: 错误:‘FT_Error’ 没有命名一个类型

src/ft2font.h:135: 错误:‘FT_Glyph’ 在此作用域中尚未声明

src/ft2font.h:135: 错误:模板参数1 无效

src/ft2font.h:135: 错误:模板参数2 无效

src/ft2font.h:136: 错误:‘FT_Vector’ 在此作用域中尚未声明

src/ft2font.h:136: 错误:模板参数1 无效

src/ft2font.h:136: 错误:模板参数2 无效

src/ft2font.h:142: 错误:‘FT_BBox’ 没有命名一个类型

src/ft2font.cpp:41: 错误:‘FT_Library’ 没有命名一个类型

src/ft2font.cpp:106: 错误:变量或字段 ‘draw_bitmap’ 声明为void

src/ft2font.cpp:106: 错误:‘int FT2Image::draw_bitmap’ 不是 ‘class
FT2Image’ 的静态成员

src/ft2font.cpp:106: 错误:‘FT_Bitmap’ 在此作用域中尚未声明

src/ft2font.cpp:106: 错误:‘bitmap’ 在此作用域中尚未声明

src/ft2font.cpp:107: 错误:‘FT_Int’ 在此作用域中尚未声明

src/ft2font.cpp:108: 错误:‘FT_Int’ 在此作用域中尚未声明

src/ft2font.cpp:108: 错误:initializer 表达式列表被看作复合表达式

src/ft2font.cpp:109: 错误:expected ‘,’or ‘;’before ‘{’token

/usr/local/lib/python2.7/site-packages/numpy-1.6.1-py2.7-linux-x86_64.egg/numpy/core/include/numpy/__multiarray_api.h:1532:
警告:‘int _import_array()’ 定义后未使用

error: command 'gcc' failed with exit status 1

lgcc --version

gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)

Copyright (C) 2006 Free Software Foundation, Inc.

Anyone pls help. Thanks in advance!

Best regards!

Christopher Shou/Crawler Engineer

Description: cid:A2DEDB77-4E9F-4886-A85D-C9CBDABCF4E6

Developed by Cmarket

TEL : +86-10-5820-7077

Fax : +86-10-5820-8575

   QQ : 250201619

MSN:shouxiaoqiang@...32...

Email : christophershou@...4019...
<https://mail.cmarket.com.cn/owa/redir.aspx?C=7ca38bf5b3dd4ec3a7505c03995c31bd&URL=mailto%3Amichaelkook%40cmarket.com.cn>

Http://www.cloump.com
<https://mail.cmarket.com.cn/owa/redir.aspx?C=7ca38bf5b3dd4ec3a7505c03995c31bd&URL=http%3A%2F%2Fwww.cloump.com%2F>

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-----
在此邮件中未发现病毒。
检查工具:AVG - www.avg.com
版本:2012.0.1913 / 病毒数据库:2114/4867 - 发布日期:03/12/12