unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* dynamic loading of the imagemagic library?
@ 2009-08-11 14:13 joakim
  2009-08-11 14:36 ` Jason Rumney
  0 siblings, 1 reply; 3+ messages in thread
From: joakim @ 2009-08-11 14:13 UTC (permalink / raw)
  To: Emacs Development

Currently the imagemagick patch uses ordinary linking to the run-time
library file. Looking at image.c, w32 seems to check in runtime if other
image libraries are present, this is not done for gnu/linux AFAICS.

Is it ok to use dlopen and dlsym for imagemagick loading on
gnu/linux platforms? I presume yes, but since I only dimly understand
why dynamic use of external libraries is problematic, I ask.

-- 
Joakim Verona




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dynamic loading of the imagemagic library?
  2009-08-11 14:13 dynamic loading of the imagemagic library? joakim
@ 2009-08-11 14:36 ` Jason Rumney
  2009-08-11 17:57   ` joakim
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Rumney @ 2009-08-11 14:36 UTC (permalink / raw)
  To: joakim; +Cc: Emacs Development

joakim@verona.se wrote:
> Is it ok to use dlopen and dlsym for imagemagick loading on
> gnu/linux platforms? I presume yes, but since I only dimly understand
> why dynamic use of external libraries is problematic, I ask.
>   

Linking to Free libraries is not problematic, making a generalized API 
to allow arbritrary libraries to be dynamically loaded might be.  The 
reason w32 uses dynamic linking for the image libraries is that there is 
no equivalent of apt/deb, rpm, BSD ports or fink on w32, so it is better 
for the users if we don't fail to run when non-essential dependencies 
are missing.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dynamic loading of the imagemagic library?
  2009-08-11 14:36 ` Jason Rumney
@ 2009-08-11 17:57   ` joakim
  0 siblings, 0 replies; 3+ messages in thread
From: joakim @ 2009-08-11 17:57 UTC (permalink / raw)
  To: Jason Rumney; +Cc: Emacs Development

Jason Rumney <jasonr@gnu.org> writes:

> joakim@verona.se wrote:
>> Is it ok to use dlopen and dlsym for imagemagick loading on
>> gnu/linux platforms? I presume yes, but since I only dimly understand
>> why dynamic use of external libraries is problematic, I ask.
>>   
>
> Linking to Free libraries is not problematic, making a generalized API
> to allow arbritrary libraries to be dynamically loaded might be.  The
> reason w32 uses dynamic linking for the image libraries is that there
> is no equivalent of apt/deb, rpm, BSD ports or fink on w32, so it is
> better for the users if we don't fail to run when non-essential
> dependencies are missing.

Ok, a user expressed interest in having the same system on for instance
Debian, so imagemagick wouldnt be a hard dependency of emacs, just an
optional one. I agree with the sentiment.
-- 
Joakim Verona




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-11 17:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-11 14:13 dynamic loading of the imagemagic library? joakim
2009-08-11 14:36 ` Jason Rumney
2009-08-11 17:57   ` joakim

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).