Opened 7 years ago

Closed 3 years ago

Last modified 3 years ago

#53603 closed defect (fixed)

opencv @3.2.0: error: property 'activeVideoMaxFrameDuration' not found on object of type 'AVCaptureDevice *'; did you mean 'activeVideoMinFrameDuration'?

Reported by: ssimogh Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.4.0
Keywords: Cc: SchmollTroll, mascguy (Christopher Nielsen)
Port: opencv

Description

ssimo@MacBook-Pro-de-Stephane-Simon:~$ sudo port clean opencv
--->  Cleaning opencv
ssimo@MacBook-Pro-de-Stephane-Simon:~$ sudo port upgrade outdated
--->  Computing dependencies for opencv
--->  Fetching archive for opencv
--->  Attempting to fetch opencv-3.2.0_1.darwin_12.x86_64.tbz2 from https://packages.macports.org/opencv
--->  Attempting to fetch opencv-3.2.0_1.darwin_12.x86_64.tbz2 from http://nue.de.packages.macports.org/opencv
--->  Attempting to fetch opencv-3.2.0_1.darwin_12.x86_64.tbz2 from http://fco.it.packages.macports.org/mirrors/macports-packages/opencv/opencv
--->  Fetching distfiles for opencv
--->  Verifying checksums for opencv
--->  Extracting opencv
--->  Applying patches to opencv
--->  Configuring opencv
--->  Building opencv
Error: Failed to build opencv: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

Attachments (1)

main.log (474.2 KB) - added by ssimogh 7 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/main.log

Download all attachments as: .zip

Change History (12)

Changed 7 years ago by ssimogh

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/main.log

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: stromnov removed
Owner: set to stromnov
Status: newassigned
Summary: opencv @3.2.0_1.darwin_12.x86_64 :Error: Failed to build opencv: command execution failedopencv @3.2.0: error: property 'activeVideoMaxFrameDuration' not found on object of type 'AVCaptureDevice *'; did you mean 'activeVideoMinFrameDuration'?

comment:2 Changed 7 years ago by ssimogh

Excuse me, do you plan to fix this build error or my OSX version is too old (Mountain Lion 10.8.5) ? I could understand this choice. 10.8 is kind of obsolete OS.

Thank you.

Best regards.

comment:3 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: SchmollTroll added

Has duplicate #55279.

It's not up to us to fix it. The opencv 3.2.0 code uses activeVideoMaxFrameDuration which was introduced in OS X 10.9. If you want opencv to work on earlier systems, file a bug report with the developers of opencv.

comment:4 Changed 6 years ago by kencu (Ken)

See 53562#comment:14 for a simple fix that works on older systems. Please comment on whether this fix leaves opencv in a functional state for you.

comment:5 Changed 3 years ago by mascguy (Christopher Nielsen)

MacOS 10.8 builds have been fine for some time. Can this be closed?

comment:7 Changed 3 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

comment:8 Changed 3 years ago by kencu (Ken)

I am still not 100% certain that is the right fix -- perhaps using a newer SDK would have allowed video capture using the AVFoundation on 10.7+. I just didn't try that, and nobody else has in 3 years, so I turned it off -- apparently it's not a major issue to anyone to try to make opencv use the camera on a 10.7 machine at present, not surprisingly.

comment:9 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:10 Changed 3 years ago by mascguy (Christopher Nielsen)

Ugh, I'm seeing the same failure when building opencv4, on MacOS 10.8.5.

I'll add that fix to my opencv4 pull request...

Note: See TracTickets for help on using tickets.