Thanks for replying I have installed msys2-x86_64 from http://msys2.github.io/ and got mingw-w64-gtk2 from https://github.com/Alexpux/MINGW-packages
I have edited my environment variables with adding C:\msys\mingw32\bin to PATH And I have set pkg_config_path to C:\msys\mingw32\lib\pkgconfig I have changed libpath in my perl config.pm with adding C:\msys\mingw32\lib (since defining an INCLUDE environment variable does not work) From the downloaded glib package from cpan: Running perl Makefile.pl gives Warning: Warning (mostly harmless): No library found for -pthread I add this to the INC in the makefile produced -IC:/msys/mingw32/include -IC:/msys/mingw32/lib/glib-2.0/include -IC:/msys/mingw32/include/glib-2.0 (without these , header files are not found) But the compilation still fails with ' => { }, 'DL_VARS' => []);" [ LD blib\arch\auto\Glib\Glib.xs.dll ] Glib.o:Glib.c:(.text+0x12a0): undefined reference to `g_mutex_lock' TYIA François -----Original Message----- From: br...@xaoc.org [mailto:br...@xaoc.org] On Behalf Of Brian Manning Sent: mardi, 7 juin 2016 16:51 To: RAPPAZ Francois <francois.rap...@unifr.ch> Cc: gtk-perl-list@gnome.org Subject: Re: Glib compilation on windows 10 On Tue, Jun 7, 2016 at 6:56 AM, RAPPAZ Francois <francois.rap...@unifr.ch> wrote: > Hi there > > I have to compile Gtk2 on windows 10 with strawberry perl. > > I have unzip in a share U:\docs\backup\Gtk+ a Gtk 2.20.0 runtime > environment for windows > > I got Glib from CPAN and > Running perl Makefile.pl in the cpan/build dir gives > > Including generated API documentation... > Warning (mostly harmless): No library found for -lgobject-2.0 Warning > (mostly harmless): No library found for -lglib-2.0 Warning (mostly > harmless): No library found for -lintl Warning (mostly harmless): No > library found for -lgthread-2.0 Generating a dmake-style Makefile > Writing Makefile for Glib Writing MYMETA.yml and MYMETA.json > > Since some header files were not found, I add this to the generated > makefile INC = -I. ... -IU:\docs\backup\Gtk+\include > -IU:\docs\backup\Gtk+\include\glib-2.0 > -IU:\docs\backup\Gtk+\lib\glib-2.0\include That warning said that library files were not found, not that headers weren't found; I would try to make sure that the Glib module installer can find the libraries it needs to link against before going further. Where did you source the GTK+ runtime environment that you're using, and does it include a copy of libglib file? What version of libglib is included? FYI, the GTK project is now recommending that you use MSYS2 [1] on Windows for installing Windows versions of GTK+ libraries. I don't have any experience with it however. Thanks, Brian [1] https://msys2.github.io/ _______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-perl-list