unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Alex Schröder" <kensanata@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 30670@debbugs.gnu.org
Subject: bug#30670: 26.0.91; PNG files on Windows
Date: Fri, 2 Mar 2018 14:17:30 +0000	[thread overview]
Message-ID: <CAORWZReDpRombL0uXcmBizKy5fnAMqvKA4qTCEUftYKu688_Pg@mail.gmail.com> (raw)
In-Reply-To: <83efl2wp1b.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1474 bytes --]

On Fri, Mar 2, 2018 at 2:05 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> >  Are there any other versions of libpng16-16.dll on that system?
> >
> > I ran the following:
> > $ find.exe / -name libpng16-16.dll
> > /cygdrive/c/Portable Programs/emacs-26.0.91-x86_64/bin/libpng16-16.dll
> > /cygdrive/c/Portable Programs/inkscape/libpng16-16.dll
> > /cygdrive/c/Program Files/emacs-25.1-x86_64-w64-
> mingw32/bin/libpng16-16.dll
> >
> > I found the old C:\Program Files\emacs-25.1-x86_64-w64-mingw32\bin on
> my path, removed it and restarted
> > Emacs, verified that it was not listed in (getenv "PATH"), but no luck.
> I still cannot display PNG images.
> >
> >  Does pngfix.exe work (it should be in the same directory as
> >  libpng16-16.dll)?
> >
> > Yes it does.
> >
> > $ ./pngfix ../lib/python2.7/idlelib/Icons/idle_16.png
> > IDAT OK  maximum 12 12 1070 2064 ../lib/python2.7/idlelib/
> Icons/idle_16.png
> >
> >  And finally, what is the value of libpng-version in your Emacs?
> >
> > libpng-version
> > 10634
>
> Strange.  I can only suggest stepping with a debugger through
> init_png_functions, to see what exactly fails there and why.
>

I did a binary search of my config and found the culprit. Sorry for the
noise!

I had the following hidden away in one of the gazillion config files:

(add-to-list 'dynamic-library-alist '(png "libpng15-15.dll"))

Removing this file fixed PNG support for Emacs 26.

Again, I'm very sorry I didn't think of this any sooner.
Alex

[-- Attachment #2: Type: text/html, Size: 2233 bytes --]

  reply	other threads:[~2018-03-02 14:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-01 19:23 bug#30670: 26.0.91; PNG files on Windows kensanata
2018-03-01 19:29 ` Eli Zaretskii
2018-03-01 20:25   ` Alex Schröder
2018-03-02  9:06     ` Eli Zaretskii
2018-03-02  9:45       ` Alex Schröder
2018-03-02 14:05         ` Eli Zaretskii
2018-03-02 14:17           ` Alex Schröder [this message]
2018-03-02 14:51             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAORWZReDpRombL0uXcmBizKy5fnAMqvKA4qTCEUftYKu688_Pg@mail.gmail.com \
    --to=kensanata@gmail.com \
    --cc=30670@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).