Re: Cygwin and the Gtk2 cpan perl module


I did exactly that, and it worked.

For the benefit of anyone else with this problem, the library you need
to link against is libGlib.dll.a which, for my installation, is in

Add the full path to this library to EXTRALIBS and LDLOADLIBS in the
generated Makefile, and you should be able to install the module.

Note that you'll have to go through this for any package that depends
on glib or gtk2 ( for example, Gtk2::GladeXML).

On 7/7/05, muppet <scott asofyet org> wrote:

Michael Giambalvo said:
It seems to be having problems finding libaries... I am getting alot of
udefined references to
'_gperl_'* functions...

I've been having the same problem.  Whether I try to build the source
from or whether I try to install
Gtk2 via CPAN, it always fails linking Gtk2.dll.

Here's the last bit of the failed link command to give you an idea:

The key pieces of information you need are

a) win32's stupid linker needs all symbols resolved at link time and is
   complaining because it doesn't know where these are.
b) these symbols are provided by the Glib.dll built and installed by
   the Glib perl module.
c) in an actual runtime instance, Glib.dll will be loaded by the pm
   that triggers loading the Gtk2.dll, so there's no problem on other
d) you "merely" need to find Glib.dll, wherever it has been installed
   in your perl library, and add it to the link command in

I know how this was done for the native win32 builds, but i have never messed
with building gtk2-perl with cygwin's perl, so i cannot help you there.

muppet <scott at asofyet dot org>

gtk-perl-list mailing list
gtk-perl-list gnome org

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