LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-02-2021, 07:21 PM   #1
coltson
Member
 
Registered: Oct 2010
Posts: 149

Rep: Reputation: 3
Makefile problem while building gobject-introspection


While compiling gobject introspection I receive this error message:

Code:
make target `/glib-2.0/include/glibconfig.h', needed by `GLib-2.0.gir'.  Stop.
Perhaps relevant, 'GLib-2.0.gir' is not present on the gir directory of gobject-intsrospection.
Another possible important thing is that glibconfig.h is the only source file that is not located under the include dir of Glib (that I installed in its own directory). Instead, it is under
Code:
lib/glib-2.0/include
. Perhaps not important, as I copied the file to include and it did not change the outcome.

My configure command:

Code:
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/

I am open to any suggestions.
 
Old 11-03-2021, 02:01 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,923

Rep: Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319
I guess a variable was set incorrectly (or just missing), but I don't know which one. this path is not correct: `/glib-2.0/include/glibconfig.h'
 
Old 11-03-2021, 05:41 AM   #3
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
^This.

@OP. Usually, you can run ./configure --help and see what options are available and their default values.

Anyway,
Code:
--prefix=/media/34GB/Arquivos-de-Programas-Linux/Gobject-introspection-1.29.0
doesn't seem right to me. --prefix means the installation prefix. Is this where you're going to install GI?

Have you run ./autogen.sh as described in the docs? Also pay attention to this:
Code:
  echo "You need to install the gnome-common module and make"
  echo "sure the gnome-autogen.sh script is in your \$PATH."
And I suppose for a GI version this old, you'll have to use an equally old version of gnome-common, probably 2.34.
 
Old 11-07-2021, 06:14 PM   #4
coltson
Member
 
Registered: Oct 2010
Posts: 149

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by shruggy View Post
^This.
Anyway,
Code:
--prefix=/media/34GB/Arquivos-de-Programas-Linux/Gobject-introspection-1.29.0
doesn't seem right to me. --prefix means the installation prefix. Is this where you're going to install GI?
Yes.


Quote:
Have you run ./autogen.sh as described in the docs?
No, but there isn't a autogen.sh anyway.

Quote:
Also pay attention to this:
Code:
  echo "You need to install the gnome-common module and make"
  echo "sure the gnome-autogen.sh script is in your \$PATH."
And I suppose for a GI version this old, you'll have to use an equally old version of gnome-common, probably 2.34. [/code]
Not sure where you read this, but there is nothing that mentions this gnome-common in configure --help
 
Old 11-07-2021, 06:14 PM   #5
coltson
Member
 
Registered: Oct 2010
Posts: 149

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by pan64 View Post
I guess a variable was set incorrectly (or just missing), but I don't know which one. this path is not correct: `/glib-2.0/include/glibconfig.h'
I did a
Code:
grep glibconfig.h Makefile
and it returned:
Code:
$(GLIB_LIBDIR)/glib-2.0/include/glibconfig.h \
Then I issued a
Code:
grep GLIB_LIBDIR Makefile
and it returned a
Code:
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 \
I assume this variable was set through PKG_CONFIG_PATH, based on some .pc file on Glib dir, like glib-2.0.pc. There one can read:

Code:
prefix=/media/34GB/Arquivos-de-Programas-Linux/Glib-2.48.0
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
and
Code:
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include
If GLIB_LIBDIR = exec_prefix + libdir + -I${libdir}/glib-2.0/include it should be right, I guess, but since it does not work, it probably is not.

Is there a way to verify the value of:
Code:
Code:
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 \
 
Old 11-08-2021, 12:24 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,923

Rep: Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319
(nice work)
you can simply execute: pkg-config --variable=libdir glib-2.0
it should return something useful (either the location of that dir or an error message).
 
Old 11-08-2021, 01:56 AM   #7
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by coltson View Post
Not sure where you read this
Here.
 
Old 11-13-2021, 06:13 PM   #8
coltson
Member
 
Registered: Oct 2010
Posts: 149

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by pan64 View Post
(nice work)
you can simply execute: pkg-config --variable=libdir glib-2.0
it should return something useful (either the location of that dir or an error message).
It returned nothing unfortunately.

I opened a thread about it on gobject gitlab, hopefully will be an answer.

Quote:
Originally Posted by shruggy View Post
But that's for the current, under construction version.
 
Old 11-14-2021, 02:31 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,923

Rep: Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319
I guess it means that glib-2.0 (dev package) was not installed properly.
If you know where is it exactly located you can specify GLIB_LIBDIR manually. But I think the system should find it automatically.
 
  


Reply

Tags
gobject, makefile



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] pygobject and gobject-introspection in -current audriusk Slackware 2 07-22-2012 11:16 AM
gobject-introspection package installation rmugunthan Linux - Server 0 07-16-2012 12:00 AM
gobject-introspection package installation rmugunthan Linux - Newbie 0 06-24-2012 11:15 PM
LXer: Rebuild Spice-Gtk-0.7 via Debian Unstable with gobject-introspection enabled LXer Syndicated Linux News 0 08-20-2011 11:21 PM
gobject-introspection-0.6.14 build blowing up ninja master Linux - Software 1 12-31-2010 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration