[Matplotlib-users] Errors building matplotlib on RHEL5

2008-06-25 Thread Michael Hearne
I'm trying to install matplotlib on a RHEL5 system, and I'm getting 
errors in src/ft2font.h and ft2font.cpp.


An error log from the build command is attached.

I would use an RPM for this platform if I were sure that it would be 
installed in /usr/local/lib...  Is there a way to control where RPM's 
get installed?


--Mike

--
--
Michael Hearne
[EMAIL PROTECTED]
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.
--

cc1plus: warning: command line option -Wstrict-prototypes is valid for 
Ada/C/ObjC but not for C++
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
src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared
src/ft2font.h:77: error: expected ‘,’ or ‘...’ before ‘’ token
src/ft2font.h:77: error: ISO C++ forbids declaration of ‘FT_Face’ with no 
type
src/ft2font.h:83: error: expected ‘,’ or ‘...’ before ‘’ token
src/ft2font.h:83: error: ISO C++ forbids declaration of ‘FT_Face’ with no 
type
src/ft2font.h:122: error: ‘FT_Face’ does not name a type
src/ft2font.h:123: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:124: error: ‘FT_Vector’ does not name a type
src/ft2font.h:125: error: ‘FT_Error’ does not name a type
src/ft2font.h:126: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:126: error: template argument 1 is invalid
src/ft2font.h:126: error: template argument 2 is invalid
src/ft2font.h:127: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:127: error: template argument 1 is invalid
src/ft2font.h:127: error: template argument 2 is invalid
src/ft2font.h:133: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:46: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:97: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:97: error: ‘int FT2Image::draw_bitmap’ is not a static 
member of ‘class FT2Image’
src/ft2font.cpp:97: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:97: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:98: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:99: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:99: error: initializer expression list treated as compound 
expression
src/ft2font.cpp:99: error: expected ‘,’ or ‘;’ before ‘{’ token
/usr/local/lib/python2.5/site-packages/numpy-1.1.0-py2.5-linux-x86_64.egg/numpy/core/include/numpy/__multiarray_api.h:958:
 warning: ‘int _import_array()’ defined but not used
error: command 'gcc' failed with exit status 1
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Errors building matplotlib on RHEL5

2008-06-25 Thread John Hunter
On Wed, Jun 25, 2008 at 5:01 PM, Michael Hearne [EMAIL PROTECTED] wrote:
 I'm trying to install matplotlib on a RHEL5 system, and I'm getting errors
 in src/ft2font.h and ft2font.cpp.

 An error log from the build command is attached.

 I would use an RPM for this platform if I were sure that it would be
 installed in /usr/local/lib...  Is there a way to control where RPM's get
 installed?

Make sure you have pkg-config and freetype2-devel installed (don't
know the exact rpm name, could also be freetype-devel).  You error
message suggests either you don't have the development headers for
freetype installed, and/or pkg-config cannot find them.

Take a look at  the compiling and RPMS sections of
http://matplotlib.sourceforge.net/installing.html.  They are a bit out
of date, but they do cover the problem you are having.

JDH

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users