2011/11/24 Ignas Anikevicius <anikevic...@gmail.com>: > Dear list, > > I have been trying to build matplotlib with python2 *and* python3 > support. I am using Gentoo and a custom ebuild which can be found on > gnlay overlay[1]. However, I had a build error while trying to compile > 'src/ft2font.cpp' (see the log attached[2]). I was wondering weather > there are any preparation steps involved to make this file compile, > which might be different from the python2 version? > > I found the 'CXX/Extensions.hxx' and the problem might be that it is > not loaded due to some reason?
The log looks ok, although the lines are remarkably short, compared to building on a Mac. Did you modify CFLAGS or CC? The ``-I.`` should just do the trick, at least. So I wonder if, for some reason, maybe your CWD is no longer the matplotlib root directory. I could imagine that it has either sth to do with your gentoo ebuild or with Python3k's distutils? Just a rough guess. > I am afraid that this might have something to do with the my ebuild, > so could someone tell me more about how the building process works? Or > how much it is different for python3 compared with python2? For py2k it's just pythonX.Y setup.py build and then pythonX.Y setup.py install, if you want to install. ft2font.so is built during the build step. I believe it's the same for py3k. I actually don't know if it'll work if you say e.g. pythonX.Y matplotlib.git/setup.py build ...... might be an mistake in either distutils or the matplotlib build engine which I don't know at all (if there are additions from the mpl side to building at all.....). If I'm right a ``cd ........./matplotlib`` should do the trick. :-) I believe it's rare to invoke the setup.py from another directory than that where it resides in. I don't know how to build ebuild scripts. I'm just a user of them. cu, Friedrich ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users