opencv @3.4.3_1 : +contrib variant failed
I tied to install it with protobuf-cpp and protobuf3-cpp (sudo port install opencv +contrib).
- 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 =
- 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
Change History (7)
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Owner: |
set to stromnov
|
Status: |
new →
assigned
|
Resolution: |
→ duplicate
|
Status: |
assigned →
closed
|
#56349