[MacPorts] #24503: Upgrade opencv from 2.0.0 to 2.1.0
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: opencv --------------------------------+------------------------------------------- I just downloaded and built opencv 2.1.0, and it seems to build just fine with no changes. There are a bunch of bug fixes with this change, so I suggest that the port be updated. -- Ticket URL: <http://trac.macports.org/ticket/24503> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: opencv --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * cc: stante@… (removed) * owner: macports-tickets@… => stante@… * version: 1.8.2 => -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: opencv --------------------------------+------------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: I fixed the livecheck in r66756. -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by stromnov@…): Current Portfile is very complicated. Zlib, jpeg, libpng and tiff dependencies are redundant (source files for those packages are incorporated into OpenCV source tree). OpenCV 2.1 is fully compatible with Cocoa and Quicktime framework, so gtk2 dependency is redundant too. Python bindings are requires some tweaks (see patches). My Portfile needs some adjustments for user-selectable python variant. -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by ajb78@…): I tried the attached portfiles - it works for compiling and installing opencv but there is an error: in patch-interfaces_python_CMakeLists.txt.diff cv.so should remained as cv.so and NOT cv.dylib (otherwise python will not recognize it as a module). -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by stromnov@…): Replying to [comment:6 ajb78@…]:
I tried the attached portfiles - it works for compiling and installing opencv but there is an error:
in patch-interfaces_python_CMakeLists.txt.diff cv.so should remained as cv.so and NOT cv.dylib (otherwise python will not recognize it as a module).
Python supports all dynamic library extensions variants: - .dll on win32 - .so on Linux - .so and .dylib on MacOSX Macport Python 2.6 perfectly works with this python .dylib extension. -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by ajb78@…): Interesting.... I don't seem to be able to load the dylib version of the library. It just tells me that it can't find it - when I change your portfile to install .so's into the site-package directory it does ok.
Python supports all dynamic library extensions variants: - .dll on win32 - .so on Linux - .so and .dylib on MacOSX
Macport Python 2.6 perfectly works with this python .dylib extension.
-- Ticket URL: <http://trac.macports.org/ticket/24503#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by njbutko@…): Is there any update regarding when this update will be pushed to MacPorts? I have been waiting a long time for it. -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by stromnov@…): Here the new variant of my OpenCV 2.1.0 port: - +python26 variant for new python bindings; - +tbb variant for Intel TBB (checked against #25208); - +universal variant. Checked on MBP5.5 + MacOSX 10.6.3. -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by matthew.barulic@…): Replying to [ticket:24503 dersh@…]: Hi, I installed this port on Mac OSX 10.6.3 and everything seems to be working. I hope they update the online port soon. Thanks for posting this! -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by josharian@…):
Here the new variant of my OpenCV 2.1.0 port: - +python26 variant for new python bindings; - +tbb variant for Intel TBB (checked against #25208); - +universal variant.
Tried this on my MPB 15" late 2009, 10.6.4, with variants +debug and +python26. The core installation went great and works. The python adapter appears to install cleanly (no complaints during install), but doesn't work: python
import cv Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap
This is python 2.6 installed through macports and selected via python_select. Also, shouldn't it be python 2.7 now? :) -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by stromnov@…): Replying to [comment:16 josharian@…]:
Tried this on my MPB 15" late 2009, 10.6.4, with variants +debug and +python26. The core installation went great and works. The python adapter appears to install cleanly (no complaints during install), but doesn't work:
python
import cv Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap
This is python 2.6 installed through macports and selected via python_select.
Please, provide output of {{{ otool -L /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/cv.so }}}
Also, shouldn't it be python 2.7 now? :)
I'm waiting for 2.7.1 or 2.7.2. :) -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by josharian@…): Replying to [comment:18 stromnov@…]:
Replying to [comment:16 josharian@…]:
Tried this on my MPB 15" late 2009, 10.6.4, with variants +debug and +python26. The core installation went great and works. The python adapter appears to install cleanly (no complaints during install), but doesn't work:
python
import cv Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap
This is python 2.6 installed through macports and selected via python_select.
Please, provide output of {{{ otool -L /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/cv.so }}}
{{{ $ otool -L /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/cv.so /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/cv.so: /opt/local/lib/cv.so (compatibility version 0.0.0, current version 0.0.0) /System/Library/Frameworks/Python.framework/Versions/2.6/Python (compatibility version 2.6.0, current version 2.6.1) /opt/local/lib/libcxcore.2.1.dylib (compatibility version 2.1.0, current version 2.1.0) /opt/local/lib/libcv.2.1.dylib (compatibility version 2.1.0, current version 2.1.0) /opt/local/lib/libcvaux.2.1.dylib (compatibility version 2.1.0, current version 2.1.0) /opt/local/lib/libhighgui.2.1.dylib (compatibility version 2.1.0, current version 2.1.0) /opt/local/lib/libml.2.1.dylib (compatibility version 2.1.0, current version 2.1.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 123.0.0) }}} That /System/Library... bit looked suspicious, so I went ahead and confirmed that I am running the MacPorts python... {{{ $ which python /opt/local/bin/python $ python_select -s python26 $ python -V Python 2.6.5 $ python -vv [snip]
import cv [snip] # trying /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/cv.so dlopen("/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/cv.so", 2); Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap }}}
That's all I could think of offhand. I'd be more than happy to provide any other info that might be helpful.
Also, shouldn't it be python 2.7 now? :) I'm waiting for 2.7.1 or 2.7.2. :) Fair enough. :)
-- Ticket URL: <http://trac.macports.org/ticket/24503#comment:19> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: opencv --------------------------------+------------------------------------------- Comment(by stromnov@…):
Replying to [comment:16 josharian@…]: That /System/Library... bit looked suspicious, so I went ahead and confirmed that I am running the MacPorts python...
Yes, your boost installation linked to system python, instead of macports (see #21444). You can relink it manually via {{{ sudo install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.6/Python /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python /opt/local/lib/libboost_python.dylib }}} or properly reinstall boost (after selecting proper interpreter via python_select) -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: haspatch | Port: opencv --------------------------------+------------------------------------------- Changes (by raphael@…): * keywords: => haspatch Comment: I took the latest version of the port in this ticket and added some configuration options for the python26 variant and some missing dependencies. Now, the python bindings work for me. A unified diff to the current MacPorts version and an archive of the whole port are attached. If there are no objections, I will commit this port in a few days. -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:21> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: haspatch | Port: opencv --------------------------------+------------------------------------------- Comment(by josharian@…): Replying to [comment:20 stromnov@…]:
Yes, your boost installation linked to system python, instead of macports (see #21444).
You can relink it manually via {{{ sudo install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.6/Python /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python /opt/local/lib/libboost_python.dylib }}}
or properly reinstall boost (after selecting proper interpreter via python_select)
For the record, neither of those worked for me. I had no libboost_python.dylib in that location or any other that locate could find; uninstalling and reinstalling boost didn't help. However, the newest attachment in the [comment:23 comment from raphael@...] works out of the box for me, so calling this good. Thanks a bunch for your help (and for maintaining this port!). -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:23> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 --------------------------------+------------------------------------------- Reporter: dersh@… | Owner: stante@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: haspatch | Port: opencv --------------------------------+------------------------------------------- Comment(by raphael@…): I discovered that at least on Leopard (I assume on older systems as well) {{{__STDC_CONSTANT_MACROS}}} has to be defined so that the C++ compiler sees the macros in {{{/usr/include/stdint.h}}}. The new diff for the portfile is attached. -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:24> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24503: Upgrade opencv from 2.0.0 to 2.1.0 ---------------------------------+------------------------------------------ Reporter: dersh@… | Owner: stante@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: haspatch Port: opencv | ---------------------------------+------------------------------------------ Changes (by raphael@…): * status: new => closed * resolution: => fixed Comment: Maintainer timeout: committed in r70430. -- Ticket URL: <http://trac.macports.org/ticket/24503#comment:25> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts