[MacPorts] #31884: openjpeg: Library not loaded: /opt/local/lib/libpng12.0.dylib (was: opencv @2.3.1a - image not found)

MacPorts noreply at macports.org
Fri Nov 4 04:14:56 PDT 2011


#31884: openjpeg: Library not loaded: /opt/local/lib/libpng12.0.dylib
----------------------------------------+-----------------------------------
 Reporter:  andrew.c.stewart@…          |       Owner:  mcalhoun@…           
     Type:  defect                      |      Status:  new                  
 Priority:  Normal                      |   Milestone:                       
Component:  ports                       |     Version:  2.0.3                
 Keywords:                              |        Port:  openjpeg             
----------------------------------------+-----------------------------------
Changes (by ryandesign@…):

  * owner:  macports-tickets@… => mcalhoun@…
 * cc: ryandesign@… (added)
  * port:  opencv => openjpeg


Old description:

> Thought an error I was getting with javacv was a javacv problem but I
> tried to do a simple
> #include <opencv2/core/core.hpp>
>
> I got a very similar error to the one I got with javacv... something
> about 'image not found'.
>
> {{{
> dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib
>   Referenced from: /opt/local/lib/libopenjpeg.1.dylib
>   Reason: image not found
> }}}
>
> Any idea what this is about?

New description:

 Thought an error I was getting with javacv was a javacv problem but I
 tried to do a simple
 {{{
 #include <opencv2/core/core.hpp>
 }}}

 I got a very similar error to the one I got with javacv... something about
 'image not found'.

 {{{
 dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib
   Referenced from: /opt/local/lib/libopenjpeg.1.dylib
   Reason: image not found
 }}}

 Any idea what this is about?

--

Comment:

 libpng was upgraded from 1.2.x to 1.4.x a long time ago, and all ports
 that use libpng should already have been upgraded to newer versions or
 revisions thus forcing them to rebuild. Specifically, libpng was updated
 to 1.4.x in January in r75159, and openjpeg was updated to 1.4 in April in
 r77941 thus rebuilding against the new libpng.

 But apparently on your system your openjpeg port has not been rebuilt
 since libpng was updated. I don't know how that's possible, unless you
 just haven't been updating your ports. So first, please selfupdate and
 upgrade all outdated ports.

 {{{
 sudo port selfupdate
 sudo port upgrade outdated
 }}}

 If the problem persists, force openjpeg to rebuild:

 {{{
 sudo port -n upgrade --force openjpeg
 }}}

 This is described in wiki:ProblemHotlist#libpng

-- 
Ticket URL: <https://trac.macports.org/ticket/31884#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list