RE: Failed to install Gtk2 module on windows



I run your script. While running Makefile.PL for Glib, it claims no glib library was included:

Including generated API documentation...
Note (probably harmless): No library found for -lgobject-2.0
Note (probably harmless): No library found for -lgthread-2.0
Note (probably harmless): No library found for -lglib-2.0
Note (probably harmless): No library found for -lintl
Writing Makefile for Glib

and while compiling Glib, at the linking stage, it seems no glib library was included, and it cried out a lot of undefined names. This is the compiling parameters:

g++ -o blib\arch\auto\Glib\Glib.dll -Wl,--base-file -Wl,dll.base -mdll -s -L"D:\strawberry\perl\lib\CORE" -L"D:\strawberry\c\lib" Gl
ib.o GError.o GUtils.o GLog.o GType.o GBoxed.o GObject.o GValue.o GClosure.o GSignal.o GMainLoop.o GIOChannel.o GParamSpec.o GKeyFil
e.o GOption.o G BookmarkFile.o gperl-gtypes.o -Wl,--image-base,0x69080000  D:\strawberry\perl\lib\CORE\libperl512.a D:\strawberry\c\i
686-w64-mingw32\lib\libmoldname.a D:\strawberry\c\i686-w64-mingw32\lib\libkernel32.a D:\strawberry\c\i686-w64-mingw32\lib\libuser32.
a D:\strawberry\c\i686-w64-mingw32\lib\libgdi32.a D:\strawberry\c\i686-w64-mingw32\lib\libwinspool.a D:\strawberry\c\i686-w64-mingw3
2\lib\libcomdlg32.a D:\strawberry\c\i686-w64-mingw32\lib\libadvapi32.a D:\strawberry\c\i686-w64-mingw32\lib\libshell32.a D:\strawber
ry\c\i686-w64-mingw32\lib\libole32.a D:\strawberry\c\i686-w64-mingw32\lib\liboleaut32.a D:\strawberry\c\i686-w64-mingw32\lib\libneta
pi32.a D:\strawberry\c\i686-w64-mingw32\lib\libuuid.a D:\strawberry\c\i686-w64-mingw32\lib\libws2_32.a D:\strawberry\c\i686-w64-ming
w32\lib\libmpr.a D:\strawberry\c\i686-w64-mingw32\lib\libwinmm.a D:\strawberry\c\i686-w64-mingw32\lib\libversion.a D:\strawberry\c\i
686-w64-mingw32\lib\libodbc32.a D:\strawberry\c\i686-w64-mingw32\lib\libodbccp32.a D:\strawberry\c\i686-w64-mingw32\lib\libcomctl32.
a dll.exp

> Date: Tue, 17 Jul 2012 18:38:18 +0200
> From: Martin Schlemmer nwu ac za
> To: jiandingzhe msn com
> CC: gtk-perl-list gnome org
> Subject: Re: Failed to install Gtk2 module on windows
>
> >>> On 7/17/2012 at 3:51 AM, YangXi <jiandingzhe msn com> wrote:
>
> > Hi, everyone!
> > I use strawberry perl which contains mingw. I also downloaded
> > gtk+-bundle-XXXXX.zip from Gtk website, uncompress it, and added its "bin"
> > directory to Path.
> > While compiling the perl Pango module via "cpan -if Pango", it got the
> > following linking error message:
> > [ LD blib\arch\auto\Pango\Pango.dll
> > ]xs/PangoCairo.o:PangoCairo.c:(.text+0x 5b7): undefined reference to
> > `cairo_reference'xs/PangoCairo.o:PangoCairo.c:(.text+0x9a5): undefined
> > reference to
> > `cairo_font_options_copy'xs/PangoCairo.o:PangoCairo.c:(.text+0x1722):
> > undefined reference to `cairo_scaled_font_reference'collect2: ld returned 1
> > exit status
> > These functions are from cairo, so I modified pangocairo.pc:
> > Libs: -L${libdir} -lpangocairo-1.0 -lcairo
> > and compiled again, but the error still occur.
> > The pkg-config seems working well:
> >>pkg-config --libs pangocairo-LD:/Gtk-2.0/lib -lpangocairo-1.0 -lpango-1.0 -lcairo
> > -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl
> > Thanks!!!
>
> The problem is perl-Cairo's import library interfere with Cairo's (the way MakeMaker handles them). Copy attached to the directory that contains the gtk+-bundle, and rebuild Cairo, then try building Pango again.
>
>
> Regards,
> Martin
>
>
>
> Vrywaringsklousule / Disclaimer: http://www.nwu.ac.za/it/gov-man/disclaimer.html
>


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