[MacPorts] #53562: opencv @3.2.0: fatal error: 'AVFoundation/AVFoundation.h' file not found
MacPorts
noreply at macports.org
Mon Oct 23 15:09:19 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 ballapete):
Replying to [comment:14 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
> }
> }}}
This works for me too.
> 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.
I hope you do not refer to the `qt4` and `qt5` variants. These refer to
the Trolltech cross-platform UI framework…
--
Ticket URL: <https://trac.macports.org/ticket/53562#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list