[MacPorts] #53562: opencv @3.2.0: fatal error: 'AVFoundation/AVFoundation.h' file not found
MacPorts
noreply at macports.org
Sun Feb 19 22:47:48 UTC 2017
#53562: opencv @3.2.0: fatal error: 'AVFoundation/AVFoundation.h' file not found
---------------------+----------------------
Reporter: fmw42 | Owner: stromnov
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.4.0
Resolution: | Keywords:
Port: opencv |
---------------------+----------------------
Comment (by fmw42):
I tried again today. I found that I could not import cv2 into python and
got the following error:
{{{
python3.5
Python 3.5.3 (default, Feb 10 2017, 16:04:07)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
/site-packages/cv2.cpython-35m-darwin.so, 2): Library not loaded:
/opt/local/lib/libwebp.6.dylib
Referenced from: /opt/local/lib/libopencv_imgcodecs.3.1.dylib
Reason: image not found
}}}
which made me think that I needed to reinstall webp. So I tried that but
got further errors.
{{{
Error: Requested variants "+contrib+python35" do not match those the build
was started with: "".
Error: Please use the same variants again, or run 'port clean opencv'
first to remove the existing partially completed build.
Error: rev-upgrade failed: Error rebuilding opencv
}}}
which seems to have trouble with adding +contrib+python35 to opencv.
So I tried:
{{{
sudo port clean opencv
}}}
and then
{{{
sudo port install opencv +contrib+python35
}}}
But it failed at a different spot this time.
I am attaching my session log and the listing from
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/main.log
for details.
--
Ticket URL: <https://trac.macports.org/ticket/53562#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list