GNOME Bugzilla – Bug 663287
gobject-introspection-1.31.0 not building
Last modified: 2015-02-07 17:01:42 UTC
Created attachment 200563 [details] log file of the `configure` script I am trying to compile gobject-introspection-1.31.0 (GI) for i686-cm-linux from a i686-pc-linux-gnu machine. While configuring GI, libraries of glib, gio, gobject and python and many others are found properly. Please find the attached config.log. But after running make, I find the following error: "CCLD glib-print GEN g-ir-scanner GEN g-ir-annotation-tool GEN g-ir-doc-tool GISCAN GLib-2.0.gir Package gio-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gio-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gio-2.0' found Package gthread-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gthread-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gthread-2.0' found Package gio-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gio-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gio-2.0' found Package gthread-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gthread-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gthread-2.0' found /usr/bin/ld: cannot find -lglib-2.0 collect2: ld returned 1 exit status linking of temporary binary failed: Command '['/bin/sh', './libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/home/vishaln/a/gobject-introspection-1.31.0/tmp-introspectLlklOf/GLib-2.0', '-export-dynamic', '-lglib-2.0', '-lgobject-2.0', '/home/vishaln/a/gobject-introspection-1.31.0/tmp-introspectLlklOf/GLib-2.0.o']' returned non-zero exit status 1 make[2]: *** [GLib-2.0.gir] Error 1 make[2]: Leaving directory `/home/vishaln/a/gobject-introspection-1.31.0' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/vishaln/a/gobject-introspection-1.31.0' make: *** [all] Error 2" pkg config path is is: PKG_CONFIG_PATH=/home/vishaln/crossed/lib/pkgconfig ls /home/vishaln/crossed/lib/pkgconfig/g* gio-2.0.pc gio-unix-2.0.pc glib-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gobject-2.0.pc gthread-2.0.pc I tried rebuilding glib. I tried different versions of GI. Nothing worked.
Are you trying to cross-compile? Then this would be a dup of https://bugzilla.gnome.org/show_bug.cgi?id=592311
*** This bug has been marked as a duplicate of bug 592311 ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]