Re: Looking for Cairo for Windows (to have Chart::Clicker)

[email protected] ("Sisyphus")
Newsgroups perl.win32.vanilla
Message-ID <BDD6AB4E01F846E8990614D5A1155FDD@desktop2>
----- Original Message ----- 
From: "Gabor Szabo" <[email protected]>
To: <[email protected]>
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.

Cheers,
Rob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.