From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MS-Windows build using Posix configury Date: Wed, 01 May 2013 19:30:42 +0300 Message-ID: <8361z2psr1.fsf@gnu.org> References: <83d2tu49lu.fsf@gnu.org> <8338un359j.fsf@gnu.org> <831ua72fml.fsf@gnu.org> <83ehe51zi4.fsf@gnu.org> <837gjx1vpx.fsf@gnu.org> <83a9otys0h.fsf@gnu.org> <834nezzzma.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1367425911 28619 80.91.229.3 (1 May 2013 16:31:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 May 2013 16:31:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dani Moncayo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 01 18:31:50 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UXZwa-0008QI-RS for ged-emacs-devel@m.gmane.org; Wed, 01 May 2013 18:31:48 +0200 Original-Received: from localhost ([::1]:44552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXZwa-0005UP-Ei for ged-emacs-devel@m.gmane.org; Wed, 01 May 2013 12:31:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXZwW-0005TQ-K7 for emacs-devel@gnu.org; Wed, 01 May 2013 12:31:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXZwT-0007Pg-Ej for emacs-devel@gnu.org; Wed, 01 May 2013 12:31:42 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:48861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXZwT-0007PW-6m for emacs-devel@gnu.org; Wed, 01 May 2013 12:31:41 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MM400000OI3PC00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Wed, 01 May 2013 19:30:45 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MM4000U1OJ8JK60@a-mtaout21.012.net.il>; Wed, 01 May 2013 19:30:45 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159246 Archived-At: > Date: Wed, 1 May 2013 17:30:28 +0200 > From: Dani Moncayo > Cc: Emacs development discussions > > I've been trying to build the latest trunk (plus your patch) from my > MSYS environment, with support for the libraries I use to successfully > include in my w32 builds (configured with "configure.bat"): XPM, JPEG, > TIFF, GIF, PNG, GNUTLS and XML. > > The configure script successfully detects them, except for the last > two (GNUTLS and XML), and for now I've failed to see what the problem > is. I think it's because you didn't install pkg-config, or maybe it is not on PATH. The configure script uses it (for some of the optional libraries, not for all of them) to find out which compiler and linker switches to use for each of these packages. And configure thinks you don't have pkg-config, as this fragment from config.log shows: configure:8730: checking for pkg-config configure:8761: result: no Without pkg-config, configure uses the wrong compiler switches to try compiling test programs, which therefore fail, causing the configure script to decide you don't have these libraries. You can find a URL from which you can download pkg-config in INSTALL.MSYS. Note: this is a native Windows port, so install it in the MinGW tree, not in the MSYS tree. Also note that when you install GnuTLS and libxml2 from my ports, they also install *.pc files in lib/pkg-config/. These are the files that pkg-config will consult when the configure script invokes it. Therefore, I suggest that you keep the directory tree in my zip files intact, or else you will need to manually edit these *.pc files to match your installation. I'm saying that because this: > $ CPPFLAGS='-DGLYPH_DEBUG=1 -Ic:/usr/include/gnutls > -Ic:/usr/include/noX -Ic:/usr/include' CFLAGS='-O0 -g3' > ../mybranch/nt/msysconfig.sh --prefix=c:/usr --enable-checking clearly shows that you moved the GnuTLS headers into usr/include/gnutls, which is not what gnutls.pc file says. Likewise with the lib*.a static and import libraries: you need to have them in the same place where the corresponding .pc says they can be found. As I wrote in INSTALL.MSYS, I suggest to install everything into a single tree, preserving the directories recorded in the zip. Just unzip everything from the same parent directory, and you should be fine.