[MacPorts] #53562: opencv @3.2.0: fatal error: 'AVFoundation/AVFoundation.h' file not found
MacPorts
noreply at macports.org
Mon Oct 23 03:48:44 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: snowleopard
Port: opencv |
---------------------+-------------------------
Comment (by kencu):
`opencv 3.2.0_1` is installable on SnowLeopard:
{{{
$ port -v installed opencv
The following ports are currently installed:
opencv @3.2.0_1 (active) platform='darwin 10' archs='x86_64'
date='2017-10-22T20:39:20-0700'
}}}
with one adjustment in the portfile:
{{{
platform darwin 10 {
configure.args-append -DWITH_AVFOUNDATION=OFF
}
}}}
I'm not sure if this configuration is optimal; there is some QuickTime
stuff in the software that might be useful on SnowLeopard. I tried turning
that on, but it didn't immediately build right off.
{{{
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.2.0/modules/videoio/src/cap_qt.cpp:75:5:
error: unknown type name 'Movie'
Movie myMovie; // movie handle
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.2.0/modules/videoio/src/cap_qt.cpp:103:9:
error: use of undeclared identifier 'EnterMovies'
EnterMovies();
^
etc....
}}}
I presume the QuickTime framework needs to be included to fix these
errors.
Is this useful enough to you to fix it up for the Portfile? Is it usable
like this?
It looks like it needs to be applied to Darwin 12 and less, as Darwin 13+
build on the buildbots.
--
Ticket URL: <https://trac.macports.org/ticket/53562#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list