From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How do I make windows emacs display PNG and JPEG images? Date: Tue, 30 Dec 2014 17:52:53 +0200 Message-ID: <83ppb1b0dm.fsf@gnu.org> References: <86vbkugabs.fsf@dod.no> <83mw66jvms.fsf@gnu.org> <86tx0defza.fsf@dod.no> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1419954813 6357 80.91.229.3 (30 Dec 2014 15:53:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2014 15:53:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 30 16:53:26 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Y5z6p-0001eI-Vi for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Dec 2014 16:53:24 +0100 Original-Received: from localhost ([::1]:37304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5z6p-0003Uo-Hi for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Dec 2014 10:53:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5z6c-0003TS-Ey for help-gnu-emacs@gnu.org; Tue, 30 Dec 2014 10:53:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y5z6X-0008UV-Dq for help-gnu-emacs@gnu.org; Tue, 30 Dec 2014 10:53:10 -0500 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:33752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5z6X-0008Tq-5x for help-gnu-emacs@gnu.org; Tue, 30 Dec 2014 10:53:05 -0500 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NHE00G00JIX7E00@mtaout27.012.net.il> for help-gnu-emacs@gnu.org; Tue, 30 Dec 2014 17:45:11 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NHE007MSJRA0O90@mtaout27.012.net.il> for help-gnu-emacs@gnu.org; Tue, 30 Dec 2014 17:45:11 +0200 (IST) In-reply-to: <86tx0defza.fsf@dod.no> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101772 Archived-At: > From: Steinar Bang > Date: Tue, 30 Dec 2014 08:47:37 +0100 > > >>>>> Eli Zaretskii : > > > You should put _all_ the files in bin/ that you find in the *.zip > > files, not just select DLLs. > > Ok. I added the config files of libpng as well, but it didn't make any > difference. I didn't think it will. > Why do the .exe files need to be copied. Are the .exe files loaded and > code in them executed? Or is the DLLs' location used to find the .exe > files to execute in a separate process? Neither. And in this case, the non-DLL files in bin/ are not needed. But in general, you are advised to unzip the entire *-bin.zip archive and keep all of it, because some packages come with data files and additional bits and pieces that are needed for flawless operation. The *-bin.zip files include everything that "make install" installs, so if you omit some files, you in effect have an incomplete installation. If you are familiar with the package internals and know what you are doing, feel free to remove what you think is unnecessary. Otherwise, my recommendation is to keep all of it. It is safer. > > What are the versions of the libraries against which the Emacs binary > > was built? Look at the values of the variables libpng-version and > > libjpeg-version: do they match the versions of the DLLs you installed? > > libpng-version's value is 10403 > No match for libjpeg-version. Right, that's the problem. You need libpng14-14.dll or libpng14.dll for PNG, and jpeg62.dll for JPEG. See w32-win.el for the full list. > Sysinternals sigcheck couldn't find any version number in the DLLs (see below) It's not recorded there, it's recorded in the name of the DLL. > > (There's some explanation of this near line 200 of w32-win.el.) > > No w32-win.el in the lisp directory. > > locate-library says: > No library w32-win in search path > No library w32-win.el in search path It's in lisp/term/, where all the *-win.el files are kept. Or maybe you have a compressed w32-win.el.gz there.