[MacPorts] #15716: octave-image 1.0.6 - Build error - ld: library not found for -lMagick
#15716: octave-image 1.0.6 - Build error - ld: library not found for -lMagick --------------------------------+------------------------------------------- Reporter: alakazam@melix.net | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: octave image | --------------------------------+------------------------------------------- octave-image fails to build when executing {{{ mkoctfile __magick_read__.cc `Magick++-config --cppflags` -lMagick++ -lMagick }}} and generates the following error : {{{ ld: library not found for -lMagick }}} I am attaching a full debug log. I have {{{ImageMagick @6.4.1-6_0+q16}}} and {{{jpeg @6b_2}}} installed. I think it should also have a dependency on ImageMagick, and maybe jpeg, according to dependencies specified on [http://octave.sourceforge.net/image/index.html] :
buildrequires: jpeg-devel
systemrequirements: ImageMagick
-- Ticket URL: <http://trac.macports.org/ticket/15716> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15716: octave-image 1.0.6 - Build error - ld: library not found for -lMagick ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: octave image ---------------------------------+------------------------------------------ Changes (by blb@macports.org): * cc: andrea.damore@macports.org (removed) * cc: jsnodgra@umich.edu (added) * owner: macports-tickets@lists.macosforge.org => andrea.damore@macports.org Comment: Cc reporter of dup #15985. -- Ticket URL: <http://trac.macports.org/ticket/15716#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15716: octave-image 1.0.6 - Build error - ld: library not found for -lMagick ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: octave image ---------------------------------+------------------------------------------ Changes (by andrea.damore@macports.org): * status: new => assigned Comment: Hi, I notice build phase is broken here too but I had octave-image installed, I wonder if latest system updates broke something. About your points: * I can't find jpeg-devel, I think it's just the "jpeg" macport * I see macports' ImageMagick provides only libMagick++ , I have libMagick.dylib in /usr/local so I'm assuming it's not a system default, is it? -- Ticket URL: <http://trac.macports.org/ticket/15716#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15716: octave-image 1.0.6 - Build error - ld: library not found for -lMagick ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: octave image ---------------------------------+------------------------------------------ Comment (by alakazam@melix.net):
I can't find jpeg-devel, I think it's just the "jpeg" macport
I agree, and was in fact suggesting that the {{{octave-image}}} port might need to depend on the {{{jpeg}}} port :
I think it should also have a dependency on ImageMagick, and maybe jpeg
I have libMagick.dylib in /usr/local
{{{/usr/local/lib/libMagick.dylib}}} does not exist on my system. I think the only "libMagick*" files on my system are in {{{/opt/local/bin/}}}. -- Ticket URL: <http://trac.macports.org/ticket/15716#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15716: octave-image 1.0.6 - Build error - ld: library not found for -lMagick ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: octave image ---------------------------------+------------------------------------------ Comment (by andrea.damore@macports.org): Do you have libMagick.dylib at all? My ImageMagick port doesn't provide them, only libMagic++.* and I think that to link with -lMagick you'll need libMagick.dylib, right? -- Ticket URL: <http://trac.macports.org/ticket/15716#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15716: octave-image 1.0.6 - Build error - ld: library not found for -lMagick ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: octave image ---------------------------------+------------------------------------------ Comment (by alakazam@melix.net): Indeed, I have ''libMagick++.dylib'', ''libMagickCore.dylib'', and ''libMagickWand.dylib'', but not ''libMagick.dylib''. -- Ticket URL: <http://trac.macports.org/ticket/15716#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15716: octave-image 1.0.6 - Build error - ld: library not found for -lMagick ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: octave image ---------------------------------+------------------------------------------ Comment (by andrea.damore@macports.org): I'm not sure how to proceed, seems that libMagick.dylib is needed by the package but the ImageMagick portfile doesn't provide it, so using a "file dependency" is useless as it need a <port> name to install in case the dependency isn't satisfied and there is no such a portfile... -- Ticket URL: <http://trac.macports.org/ticket/15716#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15716: octave-image 1.0.6 - Build error - ld: library not found for -lMagick ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: octave image ---------------------------------+------------------------------------------ Comment (by alakazam@melix.net): I don't really know how {{{ImageMagick}}} works, so I'm not sure how to proceed with this ; maybe it is possible to make the {{{ImageMagick}}} port install the necessary files ; maybe the necessary library functions are provided by other files in the {{{ImageMagick}}} package, and patching {{{octave-image}}} would solve the problem. I suggest contacting the {{{ImageMagick}}} port's maintainer, Ryan Schmidt, who might know what files to link against in replacement of {{{libMagick.dylib}}} / if it is better to adapt the {{{ImageMagick}}} port. -- Ticket URL: <http://trac.macports.org/ticket/15716#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15716: octave-image 1.0.6 - Build error - ld: library not found for -lMagick ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: octave image ---------------------------------+------------------------------------------ Changes (by ryandesign@macports.org): * cc: ryandesign@macports.org (added) Comment: libMagick was renamed to libMagickCore as of ImageMagick 6.3.8-5. Rather than hardcoding the name of the ImageMagick core library, software should use Magick-config or the ImageMagick.pc pkg-config file to determine the name of the ImageMagick core library. See the ImageMagick ChangeLog entry for 6.3.8-5. -- Ticket URL: <http://trac.macports.org/ticket/15716#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15716: octave-image 1.0.6 - Build error - ld: library not found for -lMagick ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: octave image ---------------------------------+------------------------------------------ Comment (by andrea.damore@macports.org): alakazam try the portfile and patch in svn, I changed -lMagick with Magick-config, you should be at least able to go through the building process without errors even if I can see many lines like: mkoctfile: no way to compile C++ file xxxxxxx.cc and so there is some problem with c++ mkoctfile building. -- Ticket URL: <http://trac.macports.org/ticket/15716#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15716: octave-image 1.0.6 - Build error - ld: library not found for -lMagick ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: octave image ---------------------------------+------------------------------------------ Comment (by alakazam@melix.net): I have compiled the latest {{{svn}}-based {{{octave-image}}} Portfile successfully (non-debug mode) and haven't encountered any problems. I have run quick tests of the basic functions, and they seem to work (imread, imwrite, im2double, etc.). So I guess this works for me, thanks for the fix ! -- Ticket URL: <http://trac.macports.org/ticket/15716#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15716: octave-image 1.0.6 - Build error - ld: library not found for -lMagick ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: octave image ---------------------------------+------------------------------------------ Changes (by andrea.damore@macports.org): * status: assigned => closed * resolution: => fixed Comment: Fixed, I will report to octave-image's author(s). -- Ticket URL: <http://trac.macports.org/ticket/15716#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts