GNOME Bugzilla – Bug 673915
GISCAN GLib-2.0.gir env: Files/SlikSvn/bin:/c/Python27:/c/Program: No such file or directory
Last modified: 2015-02-07 16:58:09 UTC
There is problem building on mingw in with it cannot generate the Glib-2.0 GIR file. The problem comes from make file when it's in INTROSPECTION_SCANNER = \ env PATH=.libs:$(PATH) \ LPATH=.libs \ PYTHONPATH=$(top_builddir):$(top_srcdir) \ UNINSTALLED_INTROSPECTION_SRCDIR=$(top_srcdir) \ UNINSTALLED_INTROSPECTION_BUILDDIR=$(top_builddir) \ $(top_builddir)/g-ir-scanner The thing is on windows there is a $PATH env variable has C:\Program Files\ and when this line of code calls for $(PATH) it breaks with no such files or directory because the space between Program and Files. So all introspection object have the same problem when building, the only way to suppress is by using --enable-introspection=no. But the thing is that I need introspection in this case. [ -d gir ] || /bin/mkdir -p gir ; \ sed \ -e s,%CAIRO_SHARED_LIBRARY%,libcairo-gobject-2.dll, \ -e s,%CAIRO_GIR_PACKAGE%,cairo-gobject, \ < gir/cairo-1.0.gir.in > gir/cairo-1.0.gir.tmp && mv gir/cairo-1.0.gir.tmp gir/cairo-1.0.gir make all-recursive make[1]: Entering directory `/home/alien/gobject-introspection-1.32.0' Making all in . make[2]: Entering directory `/home/alien/gobject-introspection-1.32.0' GEN g-ir-scanner GEN g-ir-annotation-tool GISCAN GLib-2.0.gir env: Files/SlikSvn/bin:/c/Python27:/c/Program: No such file or directory make[2]: *** [GLib-2.0.gir] Error 127 make[2]: Leaving directory `/home/alien/gobject-introspection-1.32.0' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/alien/gobject-introspection-1.32.0' make: *** [all] Error 2
Unfortunately, the win32 port of gobject-introspection is not yet complete, it's development is being tracked in bug #620566. Btw, adding proper quotes when setting PATH in this case would probably fix this particular concern, or you could do what I do and set PATH to something sane in msys.bat (so nothing containing spaces exists in PATH from the start)... *** This bug has been marked as a duplicate of bug 620566 ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]