I think your best bet is to get someone else to build gobject-introspection for you. Maybe pester the person who built the Gtk3 Windows binaries.

I was trying to build version 1.34.2. I haven't checked to see whether there is something more recent (which might build more readily).
I use gcc-4.7.0 in the msys shell. Please /msg me if you can get Glib::Object::Introspection installed.
My notes regarding the awful hacks I used in my attempt to build the gobject-introspection C library are given below my sig (in readmore tags).

Cheers,
Rob
Run: export PATH=/c/_32/Python27:/c/GTK+3.6.1/bin:.:/usr/local/bin:/mingw/b +in:/bin export PKG_CONFIG_PATH=/c/GTK+3.6.1/lib/pkgconfig export GOBJECT_CFLAGS=-IC:/Gtk+3.6.1/include export GOBJECT_LIBS=-LC:/Gtk+3.6.1/lib export GMODULE_CFLAGS=-IC:/Gtk+3.6.1/include export GMODULE_LIBS=-LC:/Gtk+3.6.1/lib export GLIB_CFLAGS=-IC:/Gtk+3.6.1/include export GLIB_LIBS=-LC:/Gtk+3.6.1/lib export GIO_LIBS=-LC:/Gtk+3.6.1/lib export GIO_CFLAGS=-IC:/Gtk+3.6.1/include In configure script, change: PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}" to: PYTHON_LIBS="-L${py_prefix}/lib -lpython" Run the following configure command: ./configure --prefix=/c/Gtk+3.6.1 --disable-static --enable-shared LDF +LAGS="-L/c/Gtk+3.6.1/lib -L/c/Python27/Lib -L/c/_32/Python27/Lib/site +-packages -L/c/_32/Python27/libs" CPPFLAGS="-I/c/Gtk+3.6.1/include -I +/c/GTK+3.6.1/lib/glib-2.0/include -I/c/Gtk+3.6.1/include/glib-2.0 -I/ +c/_32/Python27/include" LIBS="-lgobject-2.0.dll -lgio-2.0.dll -lglib- +2.0.dll" Then, in all of the generated Makefiles: Makefile m4/Makefile tests/Makefile tests/offsets/Makefile tests/scanner/Makefile tests/repository/Makefile tests/warn/Makefile tests/doctool/Makefile docs/Makefile docs/reference/Makefile run the script at the bottom of this page in order to change: PYTHON_INCLUDES = -IC:\_32\Python27/include/python2.7 PYTHON_LIBS = -LC:\_32\Python27/lib -lpython PYTHON_LIB_LOC = C:\_32\Python27/lib to: PYTHON_INCLUDES = -I/c/_32/Python27/include/python2.7 PYTHON_LIBS = -L/c/_32/Python27/lib -lpython PYTHON_LIB_LOC = /c/_32/Python27/lib Turn on verbosity for 'make' by running 'make V=1'. Before running make, modify giscanner/giscannermodule.c to load msvcr9 +0.dll instead of msvcr71.dll. (Earlier python binaries use msvcr71.dll, but my 2.7 uses + msvcr90.dll.) That gets us to: IOError: [Errno 2] No such file or directory: '.\\.libs\\.libs\\_gisca +nner.pyd' 'cd' to .libs folder, run 'mkdir .libs', 'cd ..'. Copy .libs/_giscanner.pyd to .libs/.libs/_giscanner.pyd and re-run 'ma +ke V=1'. Results in: WindowsError: [Error 193] %1 is not a valid Win32 application __END__ use strict; use warnings; my @make = qw( Makefile m4/Makefile tests/Makefile tests/offsets/Makefile tests/scanner/Makefile tests/repository/Makefile tests/warn/Makefile tests/doctool/Makefile docs/Makefile docs/reference/Makefile ); for my $mf(@make) { print "Amending $mf\n"; open RD, '<', $mf or die "Can't open $mf for reading: $!"; open WR, '>', "${mf}_new" or die "Can't open ${mf}_new for writing: +$!"; while(<RD>) { $_ =~ s/PYTHON_INCLUDES = \-Ic:\\_32\\Python27\/include\/python2\. +7/PYTHON_INCLUDES = \-I\/c\/_32\/Python27\/include\/python2\.7/; $_ =~ s/PYTHON_LIBS = \-Lc:\\_32\\Python27\/lib \-lpython/PYTHON_L +IBS = \-L\/c\/_32\/Python27\/lib \-lpython/; $_ =~ s/PYTHON_LIB_LOC = c:\\_32\\Python27\/lib/PYTHON_LIB_LOC = \ +/c\/_32\/Python27\/lib/; $_ =~ s/C:\//\/c\//gi; print WR $_; } close RD or die "Couldn't close $mf after reading: $!"; close WR or die "Couldn't close ${mf}_new after writing: $!"; die "Couldn't rename $mf to ${mf}_orig" unless rename $mf, "${mf}_orig"; die "Couldn't rename ${mf}_new to $mf" unless rename "${mf}_new", $mf; }

In reply to Re^3: Gtk3 Install Problems by syphilis
in thread Gtk3 Install Problems by drdon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.