Re: Glib compilation on windows 10



On Tue, Jun 7, 2016 at 6:56 AM, RAPPAZ Francois
<francois rappaz 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/


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