Opened 4 months ago

Closed 2 months ago

#57583 closed defect (duplicate)

opencv @3.4.3_1 : +contrib variant failed

Reported by: ierofant (Андрей Корнилов) Owned by: stromnov (Andrew Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: opencv

Description (last modified by ierofant (Андрей Корнилов))

I tied to install it with protobuf-cpp and protobuf3-cpp (sudo port install opencv +contrib).

  1. protobuf3-cpp:
    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.3/modules/dnn/misc/caffe/opencv-caffe.pb.cc:4:
    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.3/modules/dnn/misc/caffe/opencv-caffe.pb.h:17:2: error: This file was generated by an older version of protoc which is
    #error This file was generated by an older 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.3/modules/dnn/misc/caffe/opencv-caffe.pb.h:18:2: error: incompatible with your Protocol Buffer headers.  Please
    #error incompatible with your Protocol Buffer headers.  Please
     ^
    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.3/modules/dnn/misc/caffe/opencv-caffe.pb.h:19:2: error: regenerate this file with a newer version of protoc.
    #error regenerate this file with a newer version of protoc.
     ^
    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.3/modules/dnn/misc/caffe/opencv-caffe.pb.h:1097:10: error: unknown type name 'PROTOBUF_CONSTEXPR'
      static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
    
  1. protobuf-cpp:
    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.3/modules/dnn/misc/caffe/opencv-caffe.pb.cc:4:
    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.3/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.3/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.3/modules/dnn/misc/caffe/opencv-caffe.pb.h:14:2: error: your headers.
    #error your headers.
     ^
    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.3/modules/dnn/misc/caffe/opencv-caffe.pb.h:23:10: fatal error: 'google/protobuf/arena.h' file not found
    #include <google/protobuf/arena.h>
    

main.log for both cases in the attachment.

macOS Mojave Version 10.14
Xcode 10.1 Build version 10B61

Attachments (2)

protobuf3-cpp-main.log (1.1 MB) - added by ierofant (Андрей Корнилов) 4 months ago.
protobuf-cpp-main.log (841.0 KB) - added by ierofant (Андрей Корнилов) 4 months ago.

Download all attachments as: .zip

Change History (7)

Changed 4 months ago by ierofant (Андрей Корнилов)

Attachment: protobuf3-cpp-main.log added

Changed 4 months ago by ierofant (Андрей Корнилов)

Attachment: protobuf-cpp-main.log added

comment:1 Changed 4 months ago by ierofant (Андрей Корнилов)

Description: modified (diff)

comment:2 Changed 4 months ago by ierofant (Андрей Корнилов)

Description: modified (diff)

comment:3 Changed 4 months ago by ierofant (Андрей Корнилов)

Description: modified (diff)

comment:4 Changed 4 months ago by ryandesign (Ryan Schmidt)

Owner: set to stromnov
Status: newassigned

comment:5 Changed 2 months ago by jmroot (Joshua Root)

Resolution: duplicate
Status: assignedclosed
Note: See TracTickets for help on using tickets.