Subject: | [Win32] Test libraries fail to build |
On Windows, it seems that the intention is to use python (Python-2.7, in my case) to build the test libraries. For Windows, the Makefile.PL has:
############
foreach my $base (map { File::Spec->catfile ($_, 'g-ir-scanner') } @path) {
if (-f $base) {
$gir_cmd = qq(python $base);
$found = 1;
last;
}
}
############
The first problem is that I have no file named 'g-ir-scanner'. I do have a file named 'g-ir-scanner.py' (in C:/usr/local/bin). It shipped with the glib/gobject-introspection binaries against which I'm building G::O::I-0.020. Assuming that's the file we're looking for, I've modified the filename given in the above snippet to include the '.py' extension.
The file then gets found, and the python command is executed. Changing $pipe (in the Makefile.PL) to the empty string allows me to see that the python command creates an error:
############
Trying to build test libraries... Traceback (most recent call last):
File "C:\usr\local\bin\g-ir-scanner.py", line 43, in <module>
from giscanner.scannermain import scanner_main
ImportError: No module named giscanner.scannermain
not OK
############
Where to from here ?
The module does build, but then all of the tests are skipped because there are no test libraries.
After installing the G::O::I-0.020, I find it loads ok ... but I'd like to see some tests passing as I'm a little sceptical about the usability of the built module.
For one thing, during 'dmake install', I see no mention of any typelibs being installed - yet the documentation suggests that the typelibs (which exist in C:/usr/local/lib/girepository-1.0) should be installed by the module.
I'm running mingw.org's port of (32-bit) gcc-4.7.0, and perl-5.16.0 built using that gcc compiler.
Cheers,
Rob