Re: cannot link against libMagick

David Liontooth <[email protected]>
Newsgroups gmane.comp.video.transcode.devel
Message-ID <[email protected]>
Francesco Romani wrote:
> On Fri, 2008-03-21 at 22:08 -0700, David Liontooth wrote:
>   
>> Francesco Romani wrote:
>>     
>>>> Suggestions?
>>>>         
>>> We must figure out what gone wrong: please send here the config.log
>>>       
>> Ciao Francesco --
>>     
>
> Ciao ;)
>
>   
>> Here's the part that looks relevant:
>>     
> [...]
>   
>> configure:38645: checking for InitializeMagick in -lMagick
>>
>> configure:38680: /usr/bin/gcc-4.0 -o conftest -O2 -no-cpp-precomp 
>> -D_INTL_REDIRECT_MACROS -I/opt/local/include -L/opt/local/lib 
>> -L/opt/local/lib
>> conftest.c -lMagick -lz -lm -lMagickWand -lMagickCore -lm -lz -ldl >&5
>>
>> ld: library not found for -lMagick     
>> collect2: ld returned 1 exit status
>>
>> Is this enough, or would you like the whole file?
>>     
>
> It's enough, and looks relevant to this gentoo issue:
> http://bugs.gentoo.org/show_bug.cgi?id=213853
>   
Great. The duplicate http://bugs.gentoo.org/show_bug.cgi?id=213712 says,

"all other imagemagick related stuff is found, and transcode builds with
USE=-imagemagick (tested)

the problem seems to be that the library is now called libMagickCore
symlinking libMagick.so to libMagickCore.so seems to make the build work"

Sounds like a crisp diagnosis. The following is likely not needed.
> Could you please send us the outputs of
> $ convert --version
>   
convert --version
Version: ImageMagick 6.3.9 03/21/08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
> and
> $ ldd $( which convert )
>   
-sh: ldd: command not found

A quick google shows there's an equivalent on OSX:

$ otool -L $( which convert  )

/opt/local/bin/convert:
        
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices 
(compatibility version 1.0.0, current version 34.0.0)
        /opt/local/lib/libMagickCore.1.dylib (compatibility version 
2.0.0, current version 2.0.0)
        /opt/local/lib/libMagickWand.1.dylib (compatibility version 
2.0.0, current version 2.0.0)
        /opt/local/lib/libtiff.3.dylib (compatibility version 12.0.0, 
current version 12.2.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 111.0.0)
        /opt/local/lib/libjpeg.62.dylib (compatibility version 63.0.0, 
current version 63.0.0)
        /opt/local/lib/libfontconfig.1.dylib (compatibility version 
5.0.0, current version 5.0.0)
        /opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0, 
current version 7.0.0)
        /opt/local/lib/libexpat.1.dylib (compatibility version 7.0.0, 
current version 7.2.0)
        /usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0, 
current version 11.0.0)
        /usr/X11/lib/libXt.6.dylib (compatibility version 7.0.0, current 
version 7.0.0)
        /opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, 
current version 1.0.4)
        /opt/local/lib/libfreetype.6.dylib (compatibility version 
10.0.0, current version 10.16.0)
        /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, 
current version 1.2.3)
        /usr/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current 
version 7.0.0)
        /usr/X11/lib/libICE.6.dylib (compatibility version 10.0.0, 
current version 10.0.0)
        /usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, 
current version 9.0.0)
        /usr/X11/lib/libXau.6.dylib (compatibility version 7.0.0, 
current version 7.0.0)
        /usr/X11/lib/libXdmcp.6.dylib (compatibility version 7.0.0, 
current version 7.0.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current 
version 1.0.0)

Cheers,
David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.