all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: joakim@verona.se
To: Juanma Barranquero <lekktu@gmail.com>
Cc: Christoph <cschol2112@googlemail.com>, emacs-devel@gnu.org
Subject: Re: imagemagick support on W32
Date: Fri, 01 Oct 2010 13:36:32 +0200	[thread overview]
Message-ID: <m3tyl6f8lb.fsf@verona.se> (raw)
In-Reply-To: <AANLkTim15SapxmGkE7VNPDWyDLRS2p-B0AiEqXsnWiiz@mail.gmail.com> (Juanma Barranquero's message of "Fri, 1 Oct 2010 12:37:32 +0200")

Juanma Barranquero <lekktu@gmail.com> writes:

> On Fri, Oct 1, 2010 at 06:16, Christoph <cschol2112@googlemail.com> wrote:
>
>> For now, I will go on with the dlls. On a side note: would Emacs require to
>> use the .dlls or could the library also be statically linked in?
>
> In theory, you could statically link any library to Emacs, but IMO in
> this case is much better to stick to using the DLLs. The library is
> big, unneeded when you start with -nw or in -batch mode, and it's
> easier to update as DLLs than recompiling/relinking Emacs (which the
> common, non-developer user cannot do).
>
>> I assumed that that was the intention of the inclusion of the ImageMagick
>> branch in the first place.
>
> OK.

I'm not sure what the original question was, but I intended for
ImageMagick support to live alongside the other image loaders.

>> Thanks for the image-library-alist hint.
>
> It shouldn't be difficult, but there are a few tricky details, I
> think. If ImageMagick is loaded,
> image-library-alist/init-image-library will have to act as if every
> image type supported by ImageMagick is loaded (or there is a way to
> ask ImageMagick for a list of the formats it support?) But even if

There is, (imagemagick-types). You dont know for certain at compile time
which formats are available, because imagemagick supports a plugin
mechanism for new formats.

> Emacs is compiled with ImageMagick support, a given instance could be
> unable to load the libraries (not found in the path, or whatever), and
> in this case, the other libraries could be loaded. Assuming, of
> course, that compiling with ImageMagick support does not deactivate
> (at compile time) the other image libraries' stuff. Does it?


ImageMagick support does not deactivate the other loaders. They all live
together. Of course there will then be situations when its not clear
which loader should be used, because there are several candidates
available. The ImageMagick loader can be configured so it does not try
to load particular image formats, with imagemagick-types-inhibit. Which
particular loader gets used in a particular case is not completely
obvious however. I've made no attempt to change loader priorities, and
Imagemagick usualy gets last shot at loading a format, so when jpeg
support is compiled in, and imagemagick support is compiled in, the jpeg
loader wins by default.

>> Right now, everything compiles fine (with the addition of my own
>> init_imagemagick_functions function, but when I run
>> (imagemagick-register-types) Emacs crashes.
>
> Eli's question is very relevant. I had trouble in the past mixing
> MSVC-compiled Emacs and MinGW-compiled image libraries; perhaps you're
> seeing just the opposite. Both runtimes are not compatible; in fact,
> if the library uses stdio facilities to access files you'll get all
> kind of havoc. It'd be easier if you can compile ImageMagick with
> MinGW.
>
>     Juanma
>

-- 
Joakim Verona



  reply	other threads:[~2010-10-01 11:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01  1:44 imagemagick support on W32 Christoph
2010-10-01  1:52 ` Juanma Barranquero
2010-10-01  2:27   ` Christoph
2010-10-01  2:32     ` Christoph
2010-10-01  2:58       ` Christoph
2010-10-01  3:16         ` Juanma Barranquero
2010-10-01  4:16           ` Christoph
2010-10-01  7:30             ` Eli Zaretskii
2010-10-01 10:37             ` Juanma Barranquero
2010-10-01 11:36               ` joakim [this message]
2010-10-01 12:12                 ` Christoph
2010-10-01 12:38                   ` joakim
2010-10-01 19:57                     ` Juanma Barranquero
2010-10-01 20:41                       ` joakim
2010-10-02  3:31                     ` Jason Rumney
2010-10-01 19:51                 ` Juanma Barranquero
2010-10-01 20:44                   ` joakim
2010-10-01 20:53                     ` Juanma Barranquero
2010-10-01 12:04               ` Christoph
2010-10-01 19:55                 ` Juanma Barranquero

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=m3tyl6f8lb.fsf@verona.se \
    --to=joakim@verona.se \
    --cc=cschol2112@googlemail.com \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@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.