Re: Notes from building Gtk2-Perl using MinGW/dmake (long)



On Thu, Nov 15, 2007 at 10:25 AM, Torsten Schoenfeld <kaffeetisch gmx de> wrote:
With this, ExtUtils::MakeMaker tells you that it was unable to find the
cairo library.  That's probably the reason you need to hand-edit the
linker lines in the Makefile.

I think this is handled by ExtUtils::Liblist::Kid from ExtUtils::Maker,
file <ExtUtils-MakeMaker-6.36/lib/ExtUtils/Liblist/Kid.pm>.

I figured this out.  In the ExtUtils::Liblist::Kid module, it only
searches for libraries that end with the characters specified by
$Config{_a} [1], which on my build of Perl for Windows is ".a".

However, on Windows, the libraries can also have other file
extensions, like '.dll' and '.lib' depending on whether or not they're
a static or import library (see [2] for a discussion of the two).  I'm
currently hacking up ExtUtils::Liblist::Kid to get it to look for more
permutations of library files.  Any suggestions on where to send
patches?

Thanks,

Brian

[1] http://perldoc.perl.org/Config.html#_
[2] http://docs.python.org/ext/dynamic-linking.html



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]