From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.devel Subject: Re: 64-bit build on Windows Date: Sat, 21 Jan 2017 20:23:29 +0100 Message-ID: References: <874m0tc0gn.fsf@russet.org.uk> <87efzxn6or.fsf@wanadoo.es> <83y3y5681f.fsf@gnu.org> <83h94s5kzi.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11498462c6943705469fb424 X-Trace: blaine.gmane.org 1485026713 20080 195.159.176.226 (21 Jan 2017 19:25:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Jan 2017 19:25:13 +0000 (UTC) Cc: =?UTF-8?Q?=C3=93scar_Fuentes?= , Eli Zaretskii , Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 21 20:25:08 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cV1HK-0003DP-4w for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2017 20:24:46 +0100 Original-Received: from localhost ([::1]:33080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cV1HP-0004Ur-5L for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2017 14:24:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cV1GV-0004TQ-4T for emacs-devel@gnu.org; Sat, 21 Jan 2017 14:23:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cV1GS-0004aW-U2 for emacs-devel@gnu.org; Sat, 21 Jan 2017 14:23:55 -0500 Original-Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:37493) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cV1GR-0004Yw-AS; Sat, 21 Jan 2017 14:23:51 -0500 Original-Received: by mail-wm0-x22a.google.com with SMTP id c206so94306569wme.0; Sat, 21 Jan 2017 11:23:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nHz5P5/MksXotRndoLqCF1mZDp31sHGY+jdxzvzHioI=; b=ejQgksDqbV3ttBJBTulN9Mq1L1271mizjrlpXigHNzAYcCfjfC3xJt6mq/MJxg593B a+OEEqJ5G4IF2YFw0jQoPVroPKtnCFfKcSNCHnEkGkSwjTjWxjcH4KVSnXq3O049Uis3 stNTWKGs+6ECh0evjffcy5x5j+uWxiLlBBKmjfreCDU0EDno1wAlxjAGGyzbaxBlv9FM /GP82OQziwq1NKS4LwOVW9WjrqKYkr+kiOcS3d810RA455ljWWt24NkKP7FB5cB3WWXw sm7c5BY3UVvB1pVWu3PfqSw7cM3x+itUO8qLAh5oYfMa+27CNErMOKTkGfF9yVSzYwdk fqvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nHz5P5/MksXotRndoLqCF1mZDp31sHGY+jdxzvzHioI=; b=kIo9Q+tKZQVg9ZPOMHzowAMvjfrjDH+t1ScfJCY0/01wNDvWaByIKGEINJcxa3x6UX 3I5R/Yk1oCgLYLNIJIJ8hpbvJftMeDAdVx9zn5JOMOvD93rLyeU/a7wKXaxhb62asNQO cO8hza/GcD0YzmZaJYJ4JozANvrJV+IWfyumX5Uid4qKL0jKX/3rzIze1BBmsFqlJx/r 1uxUFjS59yL9Q7fONiBbmCmW6q44ekdqP4gDjobgotyAcvzVJR5kdOZ8QXkz27SU7KXR tkrNfJKikEKNnin2LGCHvb2IVjMbzhA98CbTY50j8ZRBRghVSxi/LpxE/5quGdSoBKng Rn3Q== X-Gm-Message-State: AIkVDXJBGOGAF+wAmJzXB18eBBnwP52LsaoJqyPbhO29mPcMTxebVRN8R9tx1RnwMoXlonWnY/u5Jw4t3rOUdQ== X-Received: by 10.223.138.220 with SMTP id z28mr17005671wrz.26.1485026630208; Sat, 21 Jan 2017 11:23:50 -0800 (PST) Original-Received: by 10.28.173.80 with HTTP; Sat, 21 Jan 2017 11:23:29 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:211482 Archived-At: --001a11498462c6943705469fb424 Content-Type: text/plain; charset=UTF-8 2017-01-21 20:15 GMT+01:00 Juanma Barranquero : > On Sat, Jan 21, 2017 at 8:04 PM, Fabrice Popineau < > fabrice.popineau@gmail.com> wrote: > > > My point is : ImageMagick is made available by dynamically loading 2 > dlls. > > If they are not installed, then the feature is disabled (as far as I > remember). > > If Emacs on Windows is built to use the DLLs, and they are not available > (let's say you downloaded a binary tarball built with Imagemagick support, > but you don't have the DLLs in your system), Windows won't allow emacs.exe > to run. That's a big problem. > > ??? Not when you use LoadLibrary and fortunately. > > What happens if the jpeg or xpm or png dlls are not found ? > > Nothing, because they are not statically linked. If Emacs was built with > jpeg support (or png, etc.), it will check at runtime (and on demand, the > first time a jpeg function is needed) that the jpeg DLL can be loaded. If > not, the function will fail and Emacs will take note that the DLL is > unavailable. > > And it is the same for ImageMagick. Fabrice --001a11498462c6943705469fb424 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2017-01-21 20:15 GMT+01:00 Juanma Barranquero <lekktu@gmail.com>= :
On Sat, Jan 21, 2017 at 8:04 PM, Fabr= ice Popineau <fabrice.popineau@gmail.com> wrote:

> My point is : ImageMagick is made available by dynamically loadin= g 2 dlls.
> If they are not installed, then the feature is disabled (= as far as I remember).

If Emacs on Windows is built to use the DLLs, and they are not available= (let's say you downloaded a binary tarball built with Imagemagick supp= ort, but you don't have the DLLs in your system), Windows won't all= ow emacs.exe to run. That's a big problem.


<= /div>
???

Not when you use LoadLibrary and for= tunately.
=C2=A0
> What happens if the jpeg or xpm or png dlls a= re not found ?=C2=A0

Nothing, because they are not statically linked. If Emacs was built with j= peg support (or png, etc.), it will check at runtime (and on demand, the fi= rst time a jpeg function is needed) that the jpeg DLL can be loaded. If not= , the function will fail and Emacs will take note that the DLL is unavailab= le.


And it is the same for ImageMagick.=C2=A0

<= /div>
Fabrice
--001a11498462c6943705469fb424--