2017-12-06 Emacs on Windows

Getting `M-x eww` to work:

1. get `libxml2-2.7.8-w32-bin.zip` from https://sourceforge.net/projects/ezwinports/files/

2. put the dll files from the `bin` subdirectory into the Emacs `bin` subdirectory

3. add the Emacs `bin` directory to your `PATH` environment variable

https://sourceforge.net/projects/ezwinports/files/

That’s what they say. But it doesn’t work.

they say

The Emacs Wiki agrees.

Emacs Wiki agrees

Suspiciously, the names differ: `libiconv-2.dll`, `libxml2-2.dll`, and `zlib1.dll`.

​#Emacs

Comments

(Please contact me if you want to remove your comment.)

I suggest building them all; that’s what I did for my Emacs on Windows – and it works; that is, `eww` works.

For differing names, the following may prove a solution:

;; explicitrly specify names of dlls for libjpeg and gnutls
(defun krv/sublist_append (listvar sym newel)
  "Append newel to the sublist of listvar that starts with sym"
  (let ((elem (find sym listvar :key 'car)))
    (if elem
        (setcdr (last elem)
                (list newel)))))

(krv/sublist_append dynamic-library-alist 'jpeg "libjpeg-62.dll")
(krv/sublist_append dynamic-library-alist 'gnutls "libgnutls-30.dll")

Use it to redefine names of the libraries to ones you have, as needed. I do not quite remember - but probably library names are somewhat hardcoded into Emacs, which is not quite right.

– kurvivor 2017-12-20 15:38 UTC

kurvivor

---

Ah, I had forgotten all about `dynamic-library-alist`. I’ll have to check what it says right there.

– Alex 2017-12-20 16:23 UTC