From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs on MSYS2 Date: Sat, 16 Apr 2016 07:17:25 -0500 Message-ID: <86oa99kasq.fsf@stephe-leake.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1460809103 19588 80.91.229.3 (16 Apr 2016 12:18:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Apr 2016 12:18:23 +0000 (UTC) Cc: ofv@wanadoo.es, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 16 14:18:12 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 1arPAx-0000Xz-1B for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2016 14:18:11 +0200 Original-Received: from localhost ([::1]:54451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arPAw-0000vc-0a for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2016 08:18:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arPAe-0000sH-Fv for emacs-devel@gnu.org; Sat, 16 Apr 2016 08:17:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arPAa-0003S5-ET for emacs-devel@gnu.org; Sat, 16 Apr 2016 08:17:52 -0400 Original-Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:48820) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1arPAa-0003Ql-7Y for emacs-devel@gnu.org; Sat, 16 Apr 2016 08:17:48 -0400 Original-Received: (qmail 32291 invoked by uid 0); 16 Apr 2016 12:17:40 -0000 Original-Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy2.mail.unifiedlayer.com with SMTP; 16 Apr 2016 12:17:40 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw4 with id j0HU1s00M2UdiVW010HXVe; Sat, 16 Apr 2016 06:17:40 -0600 X-Authority-Analysis: v=2.1 cv=aJ5j99Nm c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=kziv93cY1bsA:10 a=mDV3o1hIAAAA:8 a=9i_RQKNPAAAA:8 a=k8mbOpqMk6glkuYyypQA:9 Original-Received: from [76.218.37.33] (port=55601 helo=TAKVER4) by host114.hostmonster.com with esmtpa (Exim 4.86_2) (envelope-from ) id 1arPAG-0005L9-Hi; Sat, 16 Apr 2016 06:17:28 -0600 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.89.18.3 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:202988 Archived-At: 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. > Is the libpng DLL on PATH or > with one of the binaries? Do you have more than one libpng DLL, one > of which might be in conflict with the w64 build, or from a different > version of libpng, or lacks its own support libraries? 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). depends.exe says emacs.exe does not depend on libpng; I assume that's because emacs only loads it if it is present. > What is the > version of libpng whose header files are visible when you build your > own Emacs, and are those headers from the same version of libpng as > the DLL you have installed? The libpng comes from the msys2 package manager, so I assume it's all consistent. How do I discover the version of the dll to check? > These are some of the reasons that might explain the problem. In > general, it's most probably some kind of DLL hell. 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. -- -- Stephe