[MacPorts] #26569: Problem with python bindings on opencv 2.1

MacPorts noreply at macports.org
Tue Sep 21 13:43:31 PDT 2010


#26569: Problem with python bindings on opencv 2.1
--------------------------------------+-------------------------------------
 Reporter:  phoebebright@…            |       Owner:  macports-tickets@…                   
     Type:  defect                    |      Status:  new                                  
 Priority:  Normal                    |   Milestone:                                       
Component:  ports                     |     Version:  1.9.1                                
 Keywords:                            |        Port:  opencv                               
--------------------------------------+-------------------------------------
 Did a port install opencv and all appeared to go ok but when I went into
 python to test whether I could open the library I got:


 {{{
 Python 2.6.6 (r266:84292, Sep 21 2010, 00:14:50)
 [GCC 4.2.1 (Apple Inc. build 5659)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import cv
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 ImportError: dlopen(/Users/phoebebr/opencv/lib/cv.so, 2): Library not
 loaded: /opt/local/lib/libx264.93.dylib
   Referenced from: /Users/phoebebr/opencv/lib/libopencv_highgui.2.1.dylib
   Reason: image not found
 >>>
 }}}


 then did a port install ffmpeg (just to be sure) and found these files
 appeared to be in the wrong place, so moved them:


 {{{
 sudo  cp /opt/local/var/macports/software/x264/20100412_0/opt/local/lib/*
 /opt/local/lib
 }}}


 However, I still get an error:


 {{{
 Python 2.6.6 (r266:84292, Sep 21 2010, 00:14:50)
 [GCC 4.2.1 (Apple Inc. build 5659)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import cv
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 ImportError: dlopen(/Users/phoebebr/opencv/lib/cv.so, 2): Symbol not
 found: _x264_encoder_open_98
   Referenced from: /opt/local/lib/libavcodec.dylib
   Expected in: /opt/local/lib/libx264.93.dylib
  in /opt/local/lib/libavcodec.dylib
 >>>

 }}}

 Bit of a newbie to this so not sure if I'm missing something obvious?

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


More information about the macports-tickets mailing list