Re: cannot link against libMagick

David Liontooth <[email protected]>
Newsgroups gmane.comp.video.transcode.devel
Message-ID <[email protected]>
David Liontooth wrote:
> 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. 
I verified that a symlink allows transcode to compile on OSX 10.5.2:

/opt/local/lib# ln -s libMagickCore.1.dylib libMagick.dylib

checking whether imagemagick support is requested... yes
checking for pkgconfig support for imagemagick... yes
checking for Wand-config... /opt/local/bin/Wand-config
checking how to determine IMAGEMAGICK_CFLAGS... pkg-config
checking magick/api.h usability... yes
checking magick/api.h presence... yes
checking for magick/api.h... yes
checking how to determine IMAGEMAGICK_LIBS... pkg-config
checking for InitializeMagick in -lMagick... yes

imagemagick                    yes

Cheers,
Dave
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.