all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christoph <cschol2112@googlemail.com>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: imagemagick support on W32
Date: Thu, 30 Sep 2010 22:16:32 -0600	[thread overview]
Message-ID: <4CA560A0.50901@gmail.com> (raw)
In-Reply-To: <AANLkTinY=Vi-TfF+pspC_axqV4g+0jpmK_jkUVk7ZZCK@mail.gmail.com>

On 9/30/2010 9:16 PM, Juanma Barranquero wrote:

> Yes, something like that, assuming you're trying to use ImageMagick
> DLLs and not linking statically.

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?

> On HAVE_NTGUI, macros DEF_IMGLIB_FN and LOAD_IMGLIB_FN create and set
> such pointers. On ! HAVE_NTGUI, such pointers are simply redefined to
> refer to the original, statically linked functions.
>
> So, the code that currently calls ImageMagick functions directly, like
> NewMagickWand, MagickPingImage, etc, should be changed to call
> fn_NewMagickWand, fn_MagickPingImage, etc.

That's what I figured. Thanks.

> One issue:
>
>    /* Try loading ImageMagick library under probable names.  */
>    if (!(library = w32_delayed_load (libraries, Qimagemagick)))
>      return 0;
>
> You'll have to add the imagemagick libraries to image-library-alist,
> of course. But, what is the intention of ImageMagick here? To
> substitute libpng, jpeglib, etc? If so, something will have to be done
> with respect to image-type-available-p (or, more specifically,
> init-image-library) so Emacs "knows" that png, jpeg, tiff, etc are
> really available.
>
> But perhaps I'm misinterpreting the intention of ImageMagick?

I assumed that that was the intention of the inclusion of the 
ImageMagick branch in the first place. Maybe there are other use cases 
though that I am not aware of.

Thanks for the image-library-alist hint.

Right now, everything compiles fine (with the addition of my own 
init_imagemagick_functions function, but when I run 
(imagemagick-register-types) Emacs crashes.

Run under gdb from the src/ directory the output is:

Program received signal SIGSEGV, Segmentation fault.
0x6d043295 in GetLastValueInLinkedList ()
    from 
D:\devel\emacs\emacs-bzr\imagemagick\src\oo-spd\i386\CORE_RL_magick_.dll

I try to dig around some more.

Christoph



  reply	other threads:[~2010-10-01  4:16 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 [this message]
2010-10-01  7:30             ` Eli Zaretskii
2010-10-01 10:37             ` Juanma Barranquero
2010-10-01 11:36               ` joakim
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=4CA560A0.50901@gmail.com \
    --to=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.