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: Building Emacs on MSYS2 Date: Sat, 16 Apr 2016 15:40:56 +0300 Message-ID: <83lh4dbuav.fsf@gnu.org> References: <56CCD91E.6070507@alice.it> <570EF300.3050104@cs.ucla.edu> <570F4EC7.3060403@alice.it> <83twj4dx7q.fsf@gnu.org> <878u0gyyge.fsf_-_@wanadoo.es> <570FC0BC.8030709@cs.ucla.edu> <874mb4yxqi.fsf@wanadoo.es> <83potsduv5.fsf@gnu.org> <87vb3kxho5.fsf@wanadoo.es> <83mvowdru7.fsf@gnu.org> <87r3e8x88h.fsf@wanadoo.es> <571102B8.8010004@cs.ucla.edu> <87inziyjb5.fsf@wanadoo.es> <57112544.5050508@cs.ucla.edu> <87d1pqycsz.fsf@wanadoo.es> <57113DC4.4010303@cs.ucla.edu> <878u0ey81k.fsf@wanadoo.es> <83lh4ed4ht.fsf@gnu.org> <87zisuwrng.fsf@wanadoo.es> <868u0ea6zm.fsf@stephe-leake.org> <83ega6cbh0.fsf@gnu.org> <86oa99kasq.fsf@stephe-leake.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1460810483 6696 80.91.229.3 (16 Apr 2016 12:41:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Apr 2016 12:41:23 +0000 (UTC) Cc: ofv@wanadoo.es, emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 16 14:41:22 2016 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 1arPXO-0002rH-D5 for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2016 14:41:22 +0200 Original-Received: from localhost ([::1]:54759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arPXN-0005Hu-LI for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2016 08:41:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arPXK-0005Fk-CL for emacs-devel@gnu.org; Sat, 16 Apr 2016 08:41:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arPXH-0000HC-7j for emacs-devel@gnu.org; Sat, 16 Apr 2016 08:41:18 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arPXH-0000H8-45; Sat, 16 Apr 2016 08:41:15 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3586 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1arPXG-0007eu-Bt; Sat, 16 Apr 2016 08:41:14 -0400 In-reply-to: <86oa99kasq.fsf@stephe-leake.org> (message from Stephen Leake on Sat, 16 Apr 2016 07:17:25 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:202989 Archived-At: > From: Stephen Leake > Cc: ofv@wanadoo.es, emacs-devel@gnu.org > Date: Sat, 16 Apr 2016 07:17:25 -0500 > > Eli Zaretskii writes: > > >> From: Stephen Leake > >> Date: Fri, 15 Apr 2016 16:37:33 -0500 > >> Cc: emacs-devel@gnu.org > >> > >> One thing I'd like to fix; my build of emacs 25 does not display png > >> files. The binary pretest install does. I'd like to figure out the > >> difference. > > > > Are both binaries in the same directory? > > My build is in c:/Projects/emacs/emacs-25-build-mingw64/src (I don't > install, so I can easily switch versions), with libpng16-16.dll in > d:/msys64/mingw54/bin in PATH. > > The error message is "Cannot display image: (Invalid image > specification)". I traced thru some of the code that tries to open > the image; image.c init-image-library returns nil. I haven't tried > running under the debugger to go further. > > config.h sets HAVE_PNG true. > > > The pretest binary is in d:/Apps/emacs-25.0.90/bin, both emacs.exe and > libpng16-16.dll; mingw64 is _not_ in PATH. > > cygwin "diff" says the two dlls differ. So this is the root cause, right there: the DLLs differ. Where did you get them? Are both 64-bit DLLs? Are they both MinGW DLLs? > depends.exe on emacs and libpng (both builds) reports no obvious errors > (it seems there is always something missing on windows; I assume those > are optional Windows components). I didn't mean errors. Libpng should depend on zlib DLL; do you have it? is it good? is there only one zlib DLL? > The libpng comes from the msys2 package manager, so I assume it's all > consistent. Does it come with zlib DLL, or did you install zlib DLL separately? If the latter, they could be inconsistent. > Yes, I figured it was some obscure dll issue, which is why I have not > tried to track it down yet. Since the problem is not present in the > pretest, I figured it's a problem with my setup, not the Emacs sources, > so I did not report a bug. I don't understand why you (and others) use different PATH arrangements to run different binaries, and have multiple versions of support DLLs. Isn't it clear that by doing so you create your own DLL hell? It's much better to have just one copy of each support DLL, in a place that is always on PATH.