From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: imagemagick support on W32 Date: Fri, 1 Oct 2010 12:37:32 +0200 Message-ID: References: <4CA53CE5.1020702@gmail.com> <4CA54727.6010900@gmail.com> <4CA54834.4020106@gmail.com> <4CA54E67.5040703@gmail.com> <4CA560A0.50901@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285929504 18982 80.91.229.12 (1 Oct 2010 10:38:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 10:38:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Christoph Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 01 12:38:22 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P1d0P-0005AP-AZ for ged-emacs-devel@m.gmane.org; Fri, 01 Oct 2010 12:38:21 +0200 Original-Received: from localhost ([127.0.0.1]:46909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1d0O-0004gP-Oj for ged-emacs-devel@m.gmane.org; Fri, 01 Oct 2010 06:38:20 -0400 Original-Received: from [140.186.70.92] (port=51335 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1d0I-0004fc-E5 for emacs-devel@gnu.org; Fri, 01 Oct 2010 06:38:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1d0H-00050G-DN for emacs-devel@gnu.org; Fri, 01 Oct 2010 06:38:14 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:41112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1d0H-00050C-9G for emacs-devel@gnu.org; Fri, 01 Oct 2010 06:38:13 -0400 Original-Received: by iwn33 with SMTP id 33so5675381iwn.0 for ; Fri, 01 Oct 2010 03:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=HGgKIpoetoauilIUv3n4QlmsgbbUyhUxAyHE+juc92Q=; b=FVrXbP9/FoBYxyNaUTMdEmdx8mQcgatyH5ESlh2s8ErEkMt7KGiTyeqTI8+ActiRsb UYDMrgMrYRwsFMMDgTzb7A2nm65K5/CO+3i/xYiv+n60C9Rky9Xg4+/0CF5o0RcwF4n6 GMuq+mc78XiUuRv5fj/Sh1jUf08gW+1CXSTJw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=APtuY5+YHzTjdIo/tAvQfx7/RoL0rSpaKOSN5TD5FQrR1cioWMej0PbQncQO+AQ1BI bZptTwigoPL1RaBlOUvGTulAxO7SbaqSriqoYi9q4vpcP8oK7au7h9JvKaZdji86gVms IfjWmAqgJmeJkC459L7xCfcGpO3e7fMPqJ4p8= Original-Received: by 10.231.14.72 with SMTP id f8mr5321789iba.171.1285929492795; Fri, 01 Oct 2010 03:38:12 -0700 (PDT) Original-Received: by 10.231.196.71 with HTTP; Fri, 1 Oct 2010 03:37:32 -0700 (PDT) In-Reply-To: <4CA560A0.50901@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131143 Archived-At: On Fri, Oct 1, 2010 at 06:16, Christoph 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. > 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 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? > 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. =C2=A0 =C2=A0 Juanma