emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configure fails to find gtk and glib and exits with an empty error


From: Eli Zaretskii
Subject: Re: configure fails to find gtk and glib and exits with an empty error
Date: Sun, 14 Jan 2024 21:05:46 +0200

> Date: Mon, 15 Jan 2024 07:44:47 +1300
> Cc: <yuri.v.khan@gmail.com>, <emacs-devel@gnu.org>
> From: "Jeremy Baxter" <jtbx@disroot.org>
> 
> On Sun Jan 14, 2024 at 7:12 PM NZDT, Eli Zaretskii wrote:
> > > Date: Sun, 14 Jan 2024 09:21:11 +1300
> > > Cc: <emacs-devel@gnu.org>
> > > From: "Jeremy Baxter" <jtbx@disroot.org>
> > > 
> > > On Sun Jan 14, 2024 at 9:15 AM NZDT, Yuri Khan wrote:
> > > > On Sat, 13 Jan 2024 at 11:53, Jeremy Baxter <jtbx@disroot.org> wrote:
> > > > >
> > > > > I'm trying to compile Emacs with pgtk support from the current master
> > > > > (4edb7713) but after I run the configure script with 
> > > > > --with-x-toolkit=no
> > > > > and --with-pgtk I get the following error:
> > > > >
> > > > >     checking for gtk+-3.0 >= 3.22.23 glib-2.0 >= 2.37.5... no
> > > > >     configure: error:
> > > > >
> > > > > I have gtk+3 version 3.24.38 and glib version 2.78.0 installed. I am
> > > > > running the Void Linux distribution
> > > >
> > > > Do you have only runtime libraries installed, or development packages
> > > > also? I’m not familiar with Void Linux, but, for example, in
> > > > Debian-based distributions, files needed to *run* software using GTK+
> > > > go in the libgtk-3-0 package, while files needed to *build* such
> > > > software go in libgtk-3-dev.
> > > >
> > > > Sorry for the noise if you are already aware of the distinction and do
> > > > have development packages installed.
> > > 
> > > Yes, I do have the development packages installed.
> >
> > Please show the portions of config.log that test for the above
> > components: gtk+-3.0 and glib-2.0.  They could explain why the
> > configure script fails in your case.
> 
> In the log there was nothing that would cause checking for gtk/glib to
> fail.  I looked inside the configure script and saw it uses pkg-config
> to test for gtk, and I did not have that installed.  After I installed
> pkg-config it detected gtk and configure succeeded, which is strange
> because it detects gtk without pkg-config in a non-pgtk build.

OK, thanks.  So I guess we can consider this issue resolved.

(In general, I think pkg-config should be installed on any system
where users build software by running Autoconf tools.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]