David Thompson: |1. If compiling OpenDX with ImageMagick, and ImageMagick has a |library such as jbig.so compiled in (a loadable lib), does DX need to |link with this library as well?
I'm no ImageMagick or dynamic linking expert, but I think it depends on the platform. On IRIX, no. You can have dyn libs (.so's) depend on dyn libs, which are dynamically linked in cascade. The libraries can also have their own RPATH augmentations. However, I know been on UNICes though where you have to go chasing down all of your .so's dependencies recursively (what a pain) and explicitly link with them when you ld the executable, though I don't know if any of DX's supported platforms still work that way. |2. If so, since ImageMagick is now creating its own libraries to link |with, what is the best way to link with them as well. If not, why |does Magick-config --libs return jbig as a library to link against? I'd think since it's a Magick dependency, that -ljbig plus any needed link path flags (or cascaded dependencies, on platforms that don't support cascaded dependencies) should be handled by Magick-config, and DX shouldn't have to deal with it in either case. Just my two cents. Randy -- Randall Hopper (mailto:[EMAIL PROTECTED]) Lockheed Martin Operation Support EPA Scientific Visualization Center US EPA MD/24 ERC-1A; RTP, NC 27711
