Error while building gobject introspection

While compiling gobject introspection I receive this error message:

make[2]: *** No rule to make target `/glib-2.0/include/glibconfig.h', needed by `GLib-2.0.gir'.  Stop.

My configure:

CPPFLAGS=-I/media/34GB/Arquivos-de-Programas-Linux/Python-2.6/include/python2.6/ ./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/Gobject-introspection-1.29.0 PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Glib-2.48.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Cairo-1.10.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Pixman-0.18.4/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Fontconfig-2.8.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Freetype-2.2.1/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Png-1.2.14/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xrender-0.9.0.2/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg//Xorgproto-2018.1/share/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.4.4/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xcb-1.13/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Pthread-stubs-0.1/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xau-1.0.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/FFI-3.3/lib/pkgconfig/

Any suggestions on how to fix the source of this error message?

I searched for GLib-2.0.gir and could not locate it anywhere. Could this nonexistence be the source of the error? If yes, what could make this file to not be generate?

glibconfig.h is the only file on …/glib-2.0/include/

Doing a grep glibconfig.h Makefile returns a:

$(GLIB_LIBDIR)/glib-2.0/include/glibconfig.h \

and doing the same with GLIB_LIBDIR returns:

GLIB_LIBDIR = $(shell pkg-config --variable=libdir glib-2.0)
-I$(GLIB_LIBDIR)/glib-2.0/include
$(GLIB_LIBDIR)/glib-2.0/include/glibconfig.h \

Perhaps that’s the cause of nonexistence of Glib-2.0.gir? I don’t know. If yes, there is a way to check this variable’s value?

If someone has an idea or knows where I can find someone with knowledge about it, please tell me, this is essential to compile gobject, and hence gtk 3.0 and the millions of software that depends on it

GLib-2.0.gir, like GObject-2.0.gir and Gio-2.0.gir, is generated by gobject-introspection: https://gitlab.gnome.org/GNOME/gobject-introspection/-/blob/master/gir/meson.build#L99-126

If the error is:

No rule to make target `/glib-2.0/include/glibconfig.h'

it means you’re missing the libdir from your environment, because that should be /usr/lib/glib-2.0/include/glibconfig.h (with “/usr/lib” being the library directory where libglib-2.0.so.* is installed).

As I told you already on GitLab, “Gobject-introspection-1.29.0” is a development snapshot released 10+ years ago. I don’t know why you’re trying to build development snapshots that old, but things will likely be broken.

Additionally, and I say this with as delicately as I can: if you’re really not knowledgeable in how to build things from scratch, trying to “learn by throwing things in” will inevitably lead to pain. I don’t know what you’re trying to achieve, here, but coming up with questions like the ones you have been asking is really wasting your time, and the time of people that may be able to help you.

PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Glib-2.48.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Cairo-1.10.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Pixman-0.18.4/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Fontconfig-2.8.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Freetype-2.2.1/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/Png-1.2.14/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xrender-0.9.0.2/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg//Xorgproto-2018.1/share/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/X11-1.4.4/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xcb-1.13/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Pthread-stubs-0.1/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xau-1.0.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/FFI-3.3/lib/pkgconfig/

Also, I don’t know why you’re trying to install each piece of software you build into a separate install prefix, but suffice to say the chances of this working are extremely slim even if you do somehow manage to get it to build. Instead of being creative, try just installing things normally.

it means you’re missing the libdir from your environment, because that should be /usr/lib/glib-2.0/include/glibconfig.h (with “/usr/lib” being the library directory where libglib-2.0.so.* is installed).

Ok, libglib-2.0.so is not in /usr/lib, and yes in /media/34GB/Glib-2.48/lib/. If libdir is the culprit, what do I have to change to make gobject introspection to set libdir to it?

Keep in mind that I am doing:

PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Glib-2.48.0/lib/pkgconfig/

so it should already be correct.

Hopefully there is something more than a risk system wide installing of Glib that I am unsure enough about if that will work to try to avoid it.