From: Eli Zaretskii <eliz@gnu.org>
To: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Optional libraries
Date: Mon, 19 Sep 2016 19:37:58 +0300 [thread overview]
Message-ID: <83wpi7hml5.fsf@gnu.org> (raw)
In-Reply-To: <95a38ffc-8958-8afa-4ccc-e34616bf83e2@gmail.com> (message from Nikolay Kudryavtsev on Mon, 19 Sep 2016 02:05:20 +0300)
> From: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
> Date: Mon, 19 Sep 2016 02:05:20 +0300
>
> I'm currently trying to make sense of the possible optional libraries that are used on Windows.
Dependency Walker (http://www.dependencywalker.com/) is your friend.
You can run it for each DLL and see its dependency DLLs.
> Can someone help me document them?
>
> Here's a list I lifted from emacs-w64 project, with some commentaries added.
I try adding some info below, but I don't have MinGW64 and cannot
check things myself. (I also find many MSYS2 packages bloated with
unneeded stuff, which then requires users to have many redundant DLLs
around.)
> libbwinpthread-*.dll ; msys2 built emacs does not work without it? Does not exist in official builds...
I believe the MinGW64 GCC produces DLLs that depend on this and on
libgcc_s_seh-*.dll. The package builders should be told to avoid
that, since these 2 dependencies require the corresponding sources be
available (and the sources for libgcc_s_seh-*.dll is the entire 80MB
GCC distribution).
> libdbus-*.dll ; is there a single legitimate usecase for dbus on windows?
There could be, but Emacs built for Windows doesn't support D-Bus, so
until that support is added, linking with this DLL is futile.
> ;; Image support
> libpng*.dll ; png images
> libtiff-*.dll
> libtiffxx-*.dll ; tiff images
The last one is for C++ programs, so not needed for Emacs.
> libjpeg-*.dll ; jpeg images
> libgif-*.dll ; gif images
> libXpm-noX*.dll ; xpm images
> ;; rsvg dependencies
> libglib-*.dll
> libcairo-*.dll
> libcroco-*.dll
> libpango-*.dll
> libpangocairo-*.dll
> libpangoft*.dll
> libpangowin32-*.dll
> librsvg-*.dll ; svg images
You've missed some rsvg dependencies, which appear under "unknown":
> libgobject-*.dll
> libgdk_pixbuf-*.dll
> libgio-*.dll
> libgmodule-*.dll
> libfontconfig-*.dll
> libfreetype-*.dll
> libpixman-*.dll
> libharfbuzz-*.dll
> ;; Gnutls dependencies
> libffi-*.dll ; only needed for msys2-based builds
> libgmp-*.dll
> libgnutls-*.dll
> libgnutls-openssl-*.dll ; only in Eli's gnutls build
It's in the GnuTLS binary distro, but is not needed for Emacs.
> libgnutlsxx-*.dll ; only in msys2, same library as the previous one, with a different name?
No, it's C++ APIs for GnuTLS; again, not needed for Emacs.
> libhogweed-*.dll
> libiconv-*.dll
> libidn-*.dll ; only needed for msys2-based builds
> libintl-*.dll
> libnettle-*.dll
> libp11-kit-*.dll
> libtasn1-*.dll
> zlib*.dll
zlib is also used by Emacs directly.
> ;; Unknown
> libgomp-*.dll
This one is part of GCC, use the Dependency Walker to see who needs
it, if at all.
> libxml2-*.dll
This is the XML support library, required for HTML and XML support in
Emacs.
> libexpat-*.dll
Not sure which DLL needs it, perhaps libxml2?
> liblzma-*.dll
> libbz2-*.dll
> libjbig-*.dll
Perhaps rsvg dependencies?
HTH
next prev parent reply other threads:[~2016-09-19 16:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-18 23:05 Optional libraries Nikolay Kudryavtsev
2016-09-19 16:37 ` Eli Zaretskii [this message]
2017-02-28 11:28 ` Arash Esbati
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83wpi7hml5.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=nikolay.kudryavtsev@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.