|There's more than one way to do things|
Re^5: RFC: Setting up a minGW compiling envronment for Perl 5.10by syphilis (Chancellor)
|on Mar 06, 2008 at 06:27 UTC||Need Help??|
Here's how I finally got Gtk2-1.164 to build:
1) During the building of the Glib module, a file named Glib.def is created. Using Visual Studio's lib utility create, from Glib.def, an import lib named Glib.a as follows:
With MinGW, the same can be achieved with:
Update: I made a mistake here. The command needs to be:
2) Repeat step 1 for the Cairo module.
3) Copy Glib.a to
and copy Cairo.a to
(I'm assuming a Strawberry Perl directory structure - modify accordingly.)
4) In the top level Gtk2 source folder run perl Makefile.PL
5) Open the generated Makefile and, to the EXTRALIBS and LDLOADLIBS entries (in the MakeMaker const_loadlibs section), append:
6)Run dmake test. Gtk2 should compile, though some of the tests fail (including some segfaults).Here is the test summary that I got:
Step 3 is probably unnecessary - in which case one, obviously, has to change the string that's appended to EXTRALIBS and LDLOADLIBS in the Makefile in step 5.
There are probably other ways to get the job done - perhaps some of those ways are better than the method I used. This was just the first way I found of getting the job done.