Dear Hari, Thanks for tracking down this problem and posting a solution.
-greg On Tue, Jun 22, 2010 at 12:01 AM, hari jayaram <hari...@gmail.com> wrote: > I struggled a little bit with this today and thought I will post it > to the group in case it helps someone. > > To build aggdraw for output from rdkit on 64 bit linux systems do the > following: > Based on a comment on the aggdraw blog page from osirius , you need to > change a single line of code in the > agg2/include/agg_array.h file as detailed on this post: > > http://www.pocketuniverse.ca/archive/2008/december/11/pil-and-aggdraw/ > > Original solution by Subash chandra > (http://timeless-scripts.blogspot.com/2007/08/patch-to-aggdraw-for-64-bit-machines.html) > > > > > Index: agg2/include/agg_array.h > =================================================================== > --- agg2/include/agg_array.h (revision 521) > +++ agg2/include/agg_array.h (working copy) > @@ -520,7 +520,7 @@ > int8u* ptr = m_buf_ptr; > if(alignment > 1) > { > - unsigned align = (alignment - unsigned(ptr) % > alignment) % alignment; > + unsigned align = (alignment - (unsigned > long)(ptr) % alignment) % alignment; > size += align; > ptr += align; > if(size <= m_rest) > > > After that aggdraw builds fine with > > python setup.py build_ext -i > sudo python setup.py install > > > > Hope this helps > > Hari > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Rdkit-discuss mailing list > Rdkit-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rdkit-discuss > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss