On Mon, Apr 28, 2008 at 3:55 PM, Johann Cohen-Tanugi
<[EMAIL PROTECTED]> wrote:
> Hi Michael,
>
> ok, here it is attached. For completion, from the matplotlib directory, I
> issued :
> [EMAIL PROTECTED] matplotlib]$ \rm -rf build
> [EMAIL PROTECTED] matplotlib]$ python setup.py build > build.log
> The following was printed out to the screen and not redirected :
> src/backend_agg.cpp: In member function 'Py::Object
> RendererAgg::write_rgba(const Py::Tuple&)':
> src/backend_agg.cpp:1303: warning: ignoring return value of 'size_t
> fwrite(const void*, size_t, size_t, FILE*)', declared with attribute
> warn_unused_result
> src/backend_agg.cpp:1308: warning: ignoring return value of 'size_t
> fwrite(const void*, size_t, size_t, FILE*)', declared with attribute
> warn_unused_result
> lib/enthought/traits/ctraits.c: In function '_trait_cast':
> lib/enthought/traits/ctraits.c:2370: warning: format '%lu' expects type
> 'long unsigned int', but argument 3 has type 'Py_ssize_t'
>
> I have revision 5087 of matplotlib. In the log you can see that libz is
> linked against for the backends, but not for ft2font......
> Best,
Do you have pkgconfig installed? In setupext.py, it looks like the
'z' lib is added only if we are not finding pkgconfig:
def add_ft2font_flags(module):
'Add the module flags to ft2font extension'
if not get_pkgconfig(module, 'freetype2'):
module.libraries.extend(['freetype', 'z'])
If get_pkgconfig is returning True, but it is not configured properly
to find libz for freetype2, you may fall into a configure black hole
where libz never gets added.
Does it help to modify this function to read:
def add_ft2font_flags(module):
'Add the module flags to ft2font extension'
if not get_pkgconfig(module, 'freetype2'):
module.libraries.extend(['freetype', 'z'])
add_base_flags(module)
basedirs = module.include_dirs[:] # copy the list to avoid inf loop!
for d in basedirs:
module.include_dirs.append(os.path.join(d, 'freetype2'))
p = os.path.join(d, 'lib/freetype2/include')
if os.path.exists(p): module.include_dirs.append(p)
p = os.path.join(d, 'lib/freetype2/include/freetype2')
if os.path.exists(p): module.include_dirs.append(p)
basedirs = module.library_dirs[:] # copy the list to avoid inf loop!
for d in basedirs:
p = os.path.join(d, 'freetype2/lib')
if os.path.exists(p): module.library_dirs.append(p)
else:
add_base_flags(module)
module.libraries.append('z')
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users