On Wed, Sep 21, 2011 at 12:14 PM, Sisyphus <sisyph...@optusnet.com.au> wrote: > > ----- Original Message ----- From: "Gabor Szabo" <szab...@gmail.com> > To: <win32-vanilla@perl.org> > Sent: Wednesday, September 21, 2011 5:32 PM > Subject: Looking for Cairo for Windows (to have Chart::Clicker) > > >> Hi, >> >> I would like to use https://metacpan.org/module/Chart::Clicker but it >> needs >> https://metacpan.org/module/Cairo which in turn needs >> http://www.cairographics.org/ >> >> Anyone has managed to install that on Strawberry Perl? >> >> Anyone with the right amount of tuits and experience here to >> build an Alien::Cairo that would compile on Strawberry Perl? > > If you have an x86 build of Strawberry Perl, a quick solution (which will > give you Cairo-1.062) is to: > > ppm install http://www.sisyphusion.tk/ppm/Cairo.ppd > > (The x64 builds of Strawberry Perl don't have the ppm utility - otherwise it > should also work there, too.) > > However, I gather that's not what you're really looking for. > > With the requisite external libraries in place, I can tell you that > Cairo-1.062 builds very easily. IIRC, the only issues I had are that EU::MM > believes that '-lfoo' means only 'libfoo.a'. That is, it doesn't allow for > the fact that the import lib might be called 'libfoo.dll.a'. > Since many of the Gtk+ import libraries do contain the '.dll', a workaround > for that has to be devised. I simply created copies of the '.dll.a' import > libraries with the '.dll' removed from their names - though there may well > be a more sophisticated fix.
After some research the "in place" part is unclear to me. I'll further research it though if you could tell me where should I put the cairo and gobject libraries and what else I might need, that would be of great help. Brian, thanks for the links. I missed those somehow. The Alien packages allow the user to seamlessly depend on some non-perl library. If Alien::Cairo existed it would either install the cairo C library or skip installation if there is already one. The Cairo module then could depend on Alien::Cairo to make sure it has all the C libraries it needs. Similarly Alien::wxWidgets provides the wxWidgets C++ library and Wx is the Perl wrapping of the library (aka wxPerl) regards Gabor