From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: configure fails to find gtk and glib and exits with an empty error Date: Sun, 14 Jan 2024 21:05:46 +0200 Message-ID: <83ply3enw5.fsf@gnu.org> References: <83mst8fnp7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38347"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yuri.v.khan@gmail.com, emacs-devel@gnu.org To: "Jeremy Baxter" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 14 20:07:06 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rP5p2-0009kC-N6 for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Jan 2024 20:07:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rP5oB-0008SN-VJ; Sun, 14 Jan 2024 14:06:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rP5o8-0008RI-AC for emacs-devel@gnu.org; Sun, 14 Jan 2024 14:06:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rP5o6-0005iy-M5; Sun, 14 Jan 2024 14:06:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=wn7uM6qDc8D1l4dDGj1p+kCGbUpclXfcz5+j0C/pago=; b=Y33dY0JJLRGvec6EXpq/ uqu1wvdnwNEE6FS1Mp17fpm0+EjZIN0+2hWnriRZsXh0VeaqlS85addRQ+Xyk7g4pyHNZoWoa7fdw wC0r3uhBAHttyH53AUXP2YbMn/Ofzi2s62SthLxJZ3FRJ2upW8XZONk/BtG5vN9cM2Kc5NnuVyQkJ DLGh54OhPW2bQPPx9LyU1GlDLqA90QxgMHPmksIyXTQw39RHDwQ6UGTkzq43W5v080EnuTi6G112q Zslq+uigXaxqVTTPQwTEYcdUZsueXfNbkkOJ0omBlHRZ1iEsTGkTvU7yUhyIRFefZSbByZ0kJYswz vZWJ5FTXSd9QCg==; In-Reply-To: (jtbx@disroot.org) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314974 Archived-At: > Date: Mon, 15 Jan 2024 07:44:47 +1300 > Cc: , > From: "Jeremy Baxter" > > On Sun Jan 14, 2024 at 7:12 PM NZDT, Eli Zaretskii wrote: > > > Date: Sun, 14 Jan 2024 09:21:11 +1300 > > > Cc: > > > From: "Jeremy Baxter" > > > > > > On Sun Jan 14, 2024 at 9:15 AM NZDT, Yuri Khan wrote: > > > > On Sat, 13 Jan 2024 at 11:53, Jeremy Baxter 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.)