Hi,

On Mon, Jul 30, 2012, Vincent Torri wrote:
> Hey
> 
> I plan to update mupdf from 0.9 to 1.0. So i'm writing the build
> system for that version. As mupdf is not necessarly included in the
> distros, I integrate the mupdf source in eyesight and I build it. I'm
> now wondering if I should build a shared lib of mupdf and install it,
> or if i should statically link mupdf against the pdf module of
> eyesight. Basically:
> 
> 1) integrate mupdf and its thirdparty package (which includes :
> libjpeg, freetype, openjpeg, jbig2dec and zlib), i build them and I
> statically link all that against the pdf module of eyesight

That reminds me of firefox and everything in the mozilla family,
chrome/chromium, qt and a couple others too. Slower builds, bigger
downloads (firefox' source is currently 80MB, qt's is 150MB or so), and
typically, done like crap. I'm sure you'd do a good job but then
something remains: security updates.

It's more work for you, and probably for everyone. Not worth the
drawbacks.

> 2) or I ask the user to have libjpeg, freetype, openjpeg, jbig2dec and
> zlib already installed, I build mupdf and I link mupdf statically
> against the pdf module of eyesight

Libjpeg, zlib, freetype, are absolutely everywhere. Openjpeg is
available everywhere too (fedora, slackware, debian, opensuse) and I
think jbig2dec will be too (it's in slackware at least, I think it's a
dep of something else which is widely used).

> 3) or I ask the user to have libjpeg, freetype, openjpeg, jbig2dec and
> zlib already installed, I build mupdf as a shared lib and the pdf
> module will use the shared lib of mupdf.

I don't have a preference for shared over static as long as your shared
library of mupdf doesn't end up in the system libdir where it could
create conflicts.

> What is the best solution ?

C! Like in any multiple-chose questionnaire.

-- 
Adrien Nader

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to