On Mon, Nov 9, 2009 at 1:29 PM, Leonid Petrov <m...@lpetrov.net> wrote: > Hi, matplotlibers, > > I tried to compile matplotlib0.99.1.1 against Python-2.6.4, numpy-1.3.0, > libpng-1.2.40, freetype-2.3.11 with the following command: > python setup.py install --prefix=/opt64 > & comp.log > > I got > > building 'matplotlib.backends._macosx' extension > /opt64/bin/gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall > -Wstrict-prototypes -I/opt64/include -I/opt64/include/wx-2.8 > -I/opt64/lib/wx/include/gtk2-ansi-release-2.8 -fPIC > -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API > -I/opt64/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include > -I/usr/include -I. -I/opt64/lib/python2.6/site-packages/numpy/core/include > -Isrc -Iagg24/include -I. -I/opt64/include/python2.6 -c src/_macosx.m -o > build/temp.linux-x86_64-2.6/src/_macosx.o > src/_macosx.m:1:25: error: Cocoa/Cocoa.h: No such file or directory > src/_macosx.m:2:53: error: ApplicationServices/ApplicationServices.h: No such > file or directory > src/_macosx.m:22: error: expected '=', ',', ';', 'asm' or '__attribute__' > before 'style' > > > I checked, I have neither Cocoa.h , nor ApplicationServices.h in my system > ( Linux 2.6.28-16-generic #55-Ubuntu SMP ). I have no idea to which > package headers Cocoa.h and ApplicationServices.h belong. > > Which additional source packages, not mentioned in > http://matplotlib.sourceforge.net/users/installing.html, should I download > and compile in order to build matplotli
For some reason mpl is trying to build the macosx backend (for OSX) even though you are on linux. Please do a clean build (rm -rf build) and capture all stdout and stderr into a file when rebuilding and post it. Also see if you have a setup.cfg file in your mpl dir next to setup.py and post it. Finally, where did you get the mpl src from? JDH ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel