[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: |
Jeremy Baxter |
|
Subject: |
Re: configure fails to find gtk and glib and exits with an empty error |
|
Date: |
Mon, 15 Jan 2024 07:44:47 +1300 |
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.
Thank you very much for your help!