#52697: OpenCV on Mac OS Sierra failed to build ---------------------+-------------------------------- Reporter: jooni41 | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: contrib | Version: 2.3.4 Keywords: | Port: opencv ---------------------+-------------------------------- I tried to install nonfree module of opencv to openCV with python bindings by: sudo port install opencv +contrib +py27 but it gives the following error Error: org.macports.build for port opencv returned: command execution failed The log file states: info:build [ 44%] Built target opencv_dnn :info:build 1 warning generated. :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/build' :info:build make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/build' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/ -- Ticket URL: <https://trac.macports.org/ticket/52697> MacPorts <https://www.macports.org/> Ports system for OS X