[MacPorts] #57108: Failed to upgrade opencv @3.2.0+contrib+python36 to opencv @3.4.1_2 Mac OSX Sierra

MacPorts noreply at macports.org
Fri Nov 9 20:58:51 UTC 2018


#57108: Failed to upgrade opencv @3.2.0+contrib+python36 to opencv @3.4.1_2 Mac OSX
Sierra
---------------------+----------------------
  Reporter:  fmw42   |      Owner:  stromnov
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  opencv  |
---------------------+----------------------

Comment (by kencu):

 The `+contrib` variant is broken:

 {{{
 :info:build In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/caffe
 /opencv-caffe.pb.cc:4:
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/caffe
 /opencv-caffe.pb.h:12:2: error: This file was generated by a newer version
 of protoc which is
 :info:build #error This file was generated by a newer version of protoc
 which is
 :info:build  ^
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/caffe
 /opencv-caffe.pb.h:13:2: error: incompatible with your Protocol Buffer
 headers.  Please update
 :info:build #error incompatible with your Protocol Buffer headers.  Please
 update
 :info:build  ^
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/caffe
 /opencv-caffe.pb.h:14:2: error: your headers.
 :info:build #error your headers.
 :info:build  ^
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/caffe
 /opencv-caffe.pb.h:23:10: fatal error: 'google/protobuf/arena.h' file not
 found
 :info:build #include <google/protobuf/arena.h>
 }}}

 Looks like an upstream bug, to be sure.

 Can you use `opencv` without the `+contrib` variant? It's not a default
 variant anyway and who knows when (if ever) it might be fixed upstream.

-- 
Ticket URL: <https://trac.macports.org/ticket/57108#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list