[MacPorts] #53562: opencv @3.2.0: fatal error: 'AVFoundation/AVFoundation.h' file not found
MacPorts
noreply at macports.org
Tue Dec 19 05:40:39 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):
Here's the current block I add to the Portfile to build opencv 3.4.0 on
older systems:
{{{
# older systems compatability fixes
if {${os.platform} eq "darwin" && ${os.major} < 11} {
# all default compilers fail so force a reasonable compiler choice
PortGroup cxx11 1.1
# disable AVFoundation which exists on 10.7+
configure.args-append -DWITH_AVFOUNDATION=OFF
# tweak thread-local-storage needs on older systems
#
https://github.com/google/protobuf/blob/master/src/google/protobuf/stubs/platform_macros.h
if {[string match *clang* ${configure.cxx}]} {
configure.cppflags-append -DGOOGLE_PROTOBUF_NO_THREADLOCAL
}
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/53562#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list