Ken Moffat wrote:
While trying to find out what was broken by ImageMagick-7, I found that inkscape needed -6, and Bruce has now found that emacs also wants -6. The structure of almost everything in ImageMagick changed in 7, so it ought to be possible to install both side by side, except for two things:1. The perl lib and modules will overwrite each other (so, on moving to ImageMagick-7 only build the perl part in 7), and 2. Several of the pkgconfig files are unversioned (e.g. ImageMagick.pc). On another list it was suggested that I ought to talk to ImageMagick about this : unfortunately, everything there is in forums and I have been unable to register at their discourse-server (I sent a mail from that page about a day ago, so far no reply). Although most/all major distros have not yet moved to ImageMagick-7, it is newer and shinier, and for use on its own it looks the best option (IM-6 appears to be only getting maintenance fixes - I was going to say vulnerability fixes, but I'm not sure if all of thenewer versions fit that description. Meanwhile, we are now moving (back) to ImageMagick-7. So what I have been trying to do is generate *versioned* pkgconfig files from ImageMagick-6.9.6-3 which was the current version when I started looking at this. I still don't understand the whole build system (I had to hardcode some things where I thought I could use variables, and part of my raw patch got treated as a reversion), but with the attached patches for ImageMagick-6.9.6-3 and inkscape-0.92 I can buiild inkscape (haven't attempted to install it, even as DESTDIR, nor to look at other packages which perhaps should be recommended (Pierre noted those in the ticket). For patched ImageMagick-6.9.6-3 I used the following options: ./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-hdri \ --with-modules \ --disable-static \ --with-gslib=/usr/lib We have been enabling HDRI for some time, I have no idea if my patch will work if that is disabled (nor do I know why you would want to do that :) The patched inkscape-0.92.0 now finds the ImageMagick-6 pkgconfig files (that was not quite as simple as I had imagined, but not too bad once I figured out where it was failing) and ldd bin/inkscape includes: (reformatted) libz.so.1 => /lib/libz.so.1 (0x00007f1f42598000) libMagickCore-6.Q16HDRI.so.2 => /usr/lib64/libMagickCore-6.Q16HDRI.so.2 (0x00007f1f422d6000) libMagick++-6.Q16HDRI.so.6 => /usr/lib64/libMagick++-6.Q16HDRI.so.6 (0x00007f1f42249000) libMagickWand-6.Q16HDRI.so.2 => /usr/lib64/libMagickWand-6.Q16HDRI.so.2 (0x00007f1f42120000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f1f41da0000) My next step is to see if I can patch emacs (heh, if that had a kernel, I could probably give up on linux ;) I have learned not to just ask for comments, so "any objections to putting ImageMagick-6 (for libraries) as a separate entry in the book?"
Looks good to me Ken. I was going to do inkscape without IM, but now I'll wait until you have the modified IM6 and new IM7 in the book.
-- Bruce -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
