[MacPorts] #57341: opencv @3.4.1_2 +contrib error - build failure

MacPorts noreply at macports.org
Thu Oct 11 13:19:47 UTC 2018


#57341: opencv @3.4.1_2 +contrib error - build failure
-----------------------+----------------------
  Reporter:  lbarrows  |      Owner:  stromnov
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.5.4
Resolution:            |   Keywords:
      Port:  opencv    |
-----------------------+----------------------
Changes (by mf2k):

 * keywords:  OpenCV contriub protobuf build breaks broken High Sierra =>


Old description:

> Installing opencv 3.4.1_2 with the following invocation fails under High
> Sierra.
>
> sudo /opt/local/bin/port install opencv at 3.4.1_2+contrib
>
> Cleaning the port does not bring it back to a functioning state. Changing
> into the build tree and attempting to build the software after a build
> failure leads to the following errors extracted from the full output,
> which may indicate a possible protobuf update without testing the opencv
> +contribs 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.h:12:2: error:
>       This file was generated by a newer version of protoc which is
> #error This file was generated by a newer version of protoc which is
>
> /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
> #error incompatible with your Protocol Buffer headers.  Please update
>
> /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
> #include <google/protobuf/arena.h>
>
> ----
>
> I've attached the
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv/opencv/main.log
> file as referenced in the port build error message. Let me know if there
> is any other information required.
>
> Lester Barrows

New description:

 Installing opencv 3.4.1_2 with the following invocation fails under High
 Sierra.
 {{{
 sudo /opt/local/bin/port install opencv at 3.4.1_2+contrib
 }}}
 Cleaning the port does not bring it back to a functioning state. Changing
 into the build tree and attempting to build the software after a build
 failure leads to the following errors extracted from the full output,
 which may indicate a possible protobuf update without testing the opencv
 +contribs 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.h:12:2: error:
       This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is

 /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
 #error incompatible with your Protocol Buffer headers.  Please update

 /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
 #include <google/protobuf/arena.h>
 }}}
 ----

 I've attached the
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv/opencv/main.log
 file as referenced in the port build error message. Let me know if there
 is any other information required.

 Lester Barrows

--

Comment:

 In the future, please use WikiFormatting.

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


More information about the macports-tickets mailing list