Specifying shared delegate libs for shared linux build?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
kunjbhai

Specifying shared delegate libs for shared linux build?

Post by kunjbhai »

I am trying to build imagemagick (6.5.2) from source so that I can build a shared 8-bit version.

I am using the following command line:
./configure --prefix=/usr/local/IM --enable-shared=yes --disable-static --disable-installed --enable-openmp=yes --enable-largefile=yes --with-quantum-depth=8 --disable-hdri --enable-osx-universal-binary --with-modules=yes --with-threads=yes --without-frozenpaths --with-magick-plus-plus=yes --without-perl --with-bzlib=true --with-fpx=yes --with-freetype=yes --with-gslib=yes --with-jbig=yes --with-jpeg=yes --with-jp2=yes --with-lcms=yes --with-png=yes --with-tiff=yes --without-wmf

I also set the following variable so that magick can find it's xml files:
export MAGICK_CONFIGURE_PATH=/usr/local/IM/lib/ImageMagick-6.5.2/config

But when I run identify for a jpeg or bmp it says there is no delegate specified for it, though it never said that when I was running it on windows despite the fact that I never installed any extra delegate on windows though that too had been built from source.

The config.h that I used on windows had followiing options set http://cid-7572e6fdaea4368b.skydrive.li ... ublic?uc=1
I had unchecked the X11 option and had created a dynamic solution named VisualDynamicMT.sln

Also inside the modules folder in my linux installation I can see "so" files for bmp etc.,the way there are dlls made for all formats on windows.

So I frankly don't understand why it is not working for formats like bmp,jpeg,png etc. in linux.

Then I downloaded all the delegates from ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/
Since I am using shared installation of magick I created shared installations of delegates also and placed my delegates in a folder:
/usr/local/magick/delegates/

I added this path to $LD_LIBRARY_PATH

I again tried running the magick configure script mentioned above, but again it said that it could not find any delegate for bmp, jpeg etc. and then after installation it is still unable to understand these image files.

Please tell where exactly am I goofing up things and are there any other options or paths that I need to set.

At what path should I put the "so" files of my delegates?

On windows I had simply put the dlls and and xml files on system path and since I never required any delegates there so I had not put any delegate anywhere.
Last edited by kunjbhai on 2010-04-14T23:35:14-07:00, edited 1 time in total.
kunjbhai

Re: Specifying shared delegate libs for shared linux build?

Post by kunjbhai »

Can someone please reply to it as I am really stuck here.
I am not well aware of the norms of s/w in linux and that's why I feel there is something very basic which you all knew and did correctly and I am missing.
Please tell if you want more details regarding any step I took while creating the shared magick installation.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Specifying shared delegate libs for shared linux build?

Post by magick »

Add -debug configure,module to your command line. The debugging output tells you the various paths ImageMagick tries when its looking for its configuration files or modules.
kunjbhai

Re: Specifying shared delegate libs for shared linux build?

Post by kunjbhai »

The -debug option is not recognized by the configure script.

I tried following combinations:
./configure -debug
./configure --debug
./configure -debug configure
./configure --debug configure
./configure -debug module
./configure --debug module
./configure -debug configure,module
./configure --debug configure,module

But everytime I get the same error message:
configure: error: unrecognized option: -debug
Try `./configure --help' for more information.

or
configure: error: unrecognized option: --debug
Try `./configure --help' for more information.

When I looked through the help using:
./configure --help

The help also does not show any "debug" option

I am using 6.5.2-0 version of ImageMagick.
Have you added the debug option after that?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Specifying shared delegate libs for shared linux build?

Post by magick »

Use this command:
  • convert -debug configure,module logo: logo.pnm
Post Reply