I had to do this sort of thing recently, but I did have to resort to some hackery to get it done (that I'm not proud of...I was in a bit of a hurry). Any corrections and or hand-slappings form the mpl-devs are, I'm sure, well deserved. Anyway....I can only tell you what I did to get it working, but cannot vouch for the correctness of the procedure. I also cannot vouch for the correctness of my recollection :/
First, I downloaded a few dependencies. libpng, libfreetype, and zlib. Installed them all, which put them in c:\program files (x86)\gnuwin32. http://gnuwin32.sourceforge.net/packages/libpng.htm http://gnuwin32.sourceforge.net/packages/freetype.htm http://gnuwin32.sourceforge.net/packages/zlib.htm I might have had to download ActiveTcl and install that, too, for the tk back end. Now, you should have headers and libraries all in the gnuwin32 directory. Download matplotlib-1.1.0.tar.gz, and untar it somewhere. open a Visual C++ command prompt and navigate to the mpl directory. I assume that python is in your path, so now do the normal python setup.py configure (I know that configure doesn't exist, but it gives the printout to tell me what is found and what is not). python setup.py build python setup.py install It is likely during the build process that an include such as ft2font.h might not be found. I did not spend the time here to figure out how properly to point matplotlib to the ft2font.h include file (which is over in the gnuwin32/include dir), so I copied it to the mpl directory (top level). I think I ended up doing the same with png.h and pngconf.h. Then run python setup.py build again. Ugly, but it did work. At some point, I'll go figure out the proper procedure. On Wed, Nov 2, 2011 at 4:11 PM, Mads Ipsen <madsip...@gmail.com> wrote: > On 11/02/2011 08:43 PM, Michael Droettboom wrote: > > On 11/02/2011 01:34 PM, Mads Ipsen wrote: > > On 11/02/2011 05:50 PM, Michael Droettboom wrote: > > On 11/02/2011 10:53 AM, Mads Ipsen wrote: > > Any clues to why ft2build.h cannot be located. The above docs says it should > be part of the binary installer. > > The binary for freetype is included with the installer, but the headers > (needed to build, but not to run) are not. Do you need to build matplotlib > from source, or just use it? > > Mike > > I need to built it from source. > > Mads > > In that case, you will need to install the development packages for > freetype, libpng, libz, and numpy. > > I'm not a regular Windows user, so I don't know what the best practice is > for that these days. Some of the other members on this list can hopefully > jump in. There was also a thread on this list about "Building on Windows" > from 08/18/2011 that might be helpful. > > Mike > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > I can't seem to find this thread anywhere. It it really that difficult to > build on Windows? It most be documented somewhere what the prereqs are? > > Best regards, > > Mads > > -- > +-----------------------------------------------------+ > | Mads Ipsen | > +----------------------+------------------------------+ > | Gåsebæksvej 7, 4. tv | | > | DK-2500 Valby | phone: +45-29716388 | > | Denmark | email: mads.ip...@gmail.com | > +----------------------+------------------------------+ > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- Daniel Hyams dhy...@gmail.com ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users