Opened 6 years ago

Closed 6 years ago

#56553 closed defect (duplicate)

opencv @3.4.1 +contrib +python36 +tbb +eigen: protobuf header version mismatch

Reported by: shoan Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.5.0
Keywords: Cc:
Port: opencv

Description

Hi,

I am unable to build opencv on Mac OS 10.11.6 with macports version 2.5.0. Below is the bottom of the log for the following command I am running:

sudo port install opencv +contrib +python36 +tbb +eigen

:info:build [ 31%] Built target opencv_photo
: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/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/build" && /usr/bin/make -j8 -w all VERBOSE=ON
:info:build Exit code: 2
:error:build Failed to build opencv: command execution failed
:debug:build Error code: CHILDSTATUS 64054 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/main.log for details.

Complete log file is attached.

Please let me know if any other information is needed to diagnose this problem. Any work arounds would also be greatly appreciated.

Thanks in advance.

Attachments (1)

main.log.gz (2.3 MB) - added by shoan 6 years ago.
opencv build log

Change History (3)

Changed 6 years ago by shoan

Attachment: main.log.gz added

opencv build log

comment:1 Changed 6 years ago by jmroot (Joshua Root)

Summary: opencv @3.4.1 +contrib +python36 +tbb +eigen: Error code: CHILDSTATUS 64054 2opencv @3.4.1 +contrib +python36 +tbb +eigen: protobuf header version mismatch

Actual error seems to be:

:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/tensorflow/attr_value.pb.cc:4:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/tensorflow/attr_value.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_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/tensorflow/attr_value.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_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/tensorflow/attr_value.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_release_tarballs_ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/tensorflow/attr_value.pb.h:23:10: fatal error: 'google/protobuf/arena.h' file not found
:info:build #include <google/protobuf/arena.h>
:info:build          ^

comment:2 Changed 6 years ago by jmroot (Joshua Root)

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