Finally I succeed to compile this Gtk stuff.
The important thing is to change the prefix line in the pc files in
gtk+\lib\pkgconfig with prefix=${pcfiledir}/../..
The pc file to choose is the one corresponding to the first library being
searched in the perl Makefile.pl step for a given package.
Once this change is done, there is still the need to indicate where all the
header files are using INC="-Ipath/to/file -I..."
but LIBS="..." is not needed.
With that the compiling + linking goes without undefined reference errors.
Two remarks:
- why did nobody ever told me that on this list ? Did no one try to compile
this stuff on windows ?
- wxWidget is also based on external libs. It is set up in two steps
Alien::wxWidget + Wx and it's much, much, easier to install.
François
> -----Original Message-----
> From: gtk-perl-list [mailto:[email protected]] On Behalf
> Of "Torsten Schönfeld"
> Sent: mercredi, 29. juin 2016 11:39
> To: [email protected]
> Subject: Re: Compiling Glib 2.16.5 on strawberry perl
>
> "RAPPAZ Francois" <[email protected]>:
> > pkg-config --libs glib-2.0
> > -Lc:/devel/target/0ca5583385db1135a53cf9e275815b19/lib -lglib-2.0 -
> lintl
>
> There's your problem. You seem to have multiple conflicting
> installations: C:/prog/gtk+ vs. C:/devel, and maybe others. I suggest
> cleaning this up, or at least cleaning up your PATH and PKG_CONFIG_PATH
> environment variables, and trying again.
> _______________________________________________
> gtk-perl-list mailing list
> [email protected]
> https://mail.gnome.org/mailman/listinfo/gtk-perl-list
_______________________________________________
gtk-perl-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtk-perl-list