RE: Compiling Glib 2.16.5 on strawberry perl



pkg-config --libs glib-2.0
-Lc:/devel/target/0ca5583385db1135a53cf9e275815b19/lib -lglib-2.0 -lintl

pkg-config --static --libs glib-2.0 g
object-2.0
-Lc:/devel/target/0ca5583385db1135a53cf9e275815b19/lib -lglib-2.0 -lintl -lgobject-2.0

pkg-config --libs gobject-2.0
-Lc:/devel/target/0ca5583385db1135a53cf9e275815b19/lib -lgobject-2.0 -lglib-2.0 -lintl

pkg-config --cflags gobject-2.0
-Ic:/devel/target/0ca5583385db1135a53cf9e275815b19/include/glib-2.0 
-Ic:/devel/target/0ca5583385db1135a53cf9e275815b19/lib/glib-2.0/include -mms-bitfields

pkg-config --libs gthread-2.0
-Lc:/devel/target/0ca5583385db1135a53cf9e275815b19/lib -lgthread-2.0 -lglib-2.0 -lintl

pkg-config --cflags gthread-2.0
-Ic:/devel/target/0ca5583385db1135a53cf9e275815b19/include/glib-2.0 
-Ic:/devel/target/0ca5583385db1135a53cf9e275815b19/lib/glib-2.0/include -mms-bitfields


If I run perl Makefile.pl verbose
I received
Warning (mostly harmless): No library found for -lgobject-2.0
Etc... for all the libraries

-----Original Message-----
From: gtk-perl-list [mailto:gtk-perl-list-bounces gnome org] On Behalf
Of "Torsten Schönfeld"
Sent: mercredi, 29. juin 2016 11:14
To: gtk-perl-list gnome org
Subject: RE: Compiling Glib 2.16.5 on strawberry perl

"RAPPAZ Francois" <francois rappaz unifr ch>:
The makefile is coming from

perl Makefile.pl INC="-IC:\prog\gtk+\include\glib-2.0 -
IC:\prog\Gtk+\lib\glib-2.0\include -I. -I./build" LIBS="-
LC:/prog/gtk+/lib -lglib-2.0 -lintl "

I don't understand why you need to specify INC and LIBS manually, it
should work automatically if pkg-config is set up correctly.  What do
these commands return for you?

pkg-config --libs gobject-2.0
pkg-config --cflags gobject-2.0
pkg-config --libs gthread-2.0
pkg-config --cflags gthread-2.0

(They are used by Makefile.PL.)

In any case, your LIBS is missing "-lgobject-2.0" and possibly "-
lgthread-2.0" and "-lgmodule-2.0".
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list


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