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:gtk-perl-list-boun...@gnome.org] On Behalf
> Of "Torsten Schönfeld"
> Sent: mercredi, 29. juin 2016 11:39
> To: gtk-perl-list@gnome.org
> Subject: Re: Compiling Glib 2.16.5 on strawberry perl
> 
> "RAPPAZ Francois" <francois.rap...@unifr.ch>:
> > 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
> gtk-perl-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-perl-list
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to