hybridgroup / gocv

Go package for computer vision using OpenCV 4 and beyond. Includes support for DNN, CUDA, and OpenCV Contrib.
https://gocv.io
Other
6.56k stars 862 forks source link

installation issues #236

Closed akihirom2017 closed 6 years ago

akihirom2017 commented 6 years ago

Description

I am trying to install gocv (opencv-3.4.1) into my server (running on Ubuntu 16.04). Although I have followed the instruction, I have got error messages while I am in "make build" section.

Steps to Reproduce

  1. while doing "make build", there are lots of error messages:

Here is the result:


amori@Schaferlab:~/.go/src/gocv.io/x/gocv$ make build
cd /tmp/opencv/opencv-3.4.1
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/tmp/opencv/opencv_contrib-3.4.1/modules -D BUILD_DOCS=OFF BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=OFF -D BUILD_opencv_python=OFF -D BUILD_opencv_python2=OFF -D BUILD_opencv_python3=OFF WITH_JASPER=OFF ..
make -j
make preinstall
cd -
mkdir: cannot create directory 'build': File exists
-- Looking for ccache - not found
-- Found ZLIB: /home/amori/miniconda3/lib/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")
-- Found ZLIB: /home/amori/miniconda3/lib/libz.so (found version "1.2.8")
-- Checking for module 'gtk+-3.0'
--   No package 'gtk+-3.0' found
-- Checking for module 'gstreamer-base-1.0'
--   No package 'gstreamer-base-1.0' found
-- Checking for module 'gstreamer-video-1.0'
--   No package 'gstreamer-video-1.0' found
-- Checking for module 'gstreamer-app-1.0'
--   No package 'gstreamer-app-1.0' found
-- Checking for module 'gstreamer-riff-1.0'
--   No package 'gstreamer-riff-1.0' found
-- Checking for module 'gstreamer-pbutils-1.0'
--   No package 'gstreamer-pbutils-1.0' found
-- Checking for module 'gstreamer-base-0.10'
--   No package 'gstreamer-base-0.10' found
-- Checking for module 'gstreamer-video-0.10'
--   No package 'gstreamer-video-0.10' found
-- Checking for module 'gstreamer-app-0.10'
--   No package 'gstreamer-app-0.10' found
-- Checking for module 'gstreamer-riff-0.10'
--   No package 'gstreamer-riff-0.10' found
-- Checking for module 'gstreamer-pbutils-0.10'
--   No package 'gstreamer-pbutils-0.10' found
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
^CMakefile:55: recipe for target 'build' failed
make: *** [build] Interrupt

amori@Schaferlab:~/.go/src/gocv.io/x/gocv$ make build
cd /tmp/opencv/opencv-3.4.1
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/tmp/opencv/opencv_contrib-3.4.1/modules -D BUILD_DOCS=OFF BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=OFF -D BUILD_opencv_python=OFF -D BUILD_opencv_python2=OFF -D BUILD_opencv_python3=OFF WITH_JASPER=OFF ..
make -j
make preinstall
cd -
mkdir: cannot create directory 'build': File exists
-- Looking for ccache - not found
-- Found ZLIB: /home/amori/miniconda3/lib/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")
-- Found ZLIB: /home/amori/miniconda3/lib/libz.so (found version "1.2.8")
-- Checking for module 'gtk+-3.0'
--   No package 'gtk+-3.0' found
-- Checking for module 'gstreamer-base-1.0'
--   No package 'gstreamer-base-1.0' found
-- Checking for module 'gstreamer-video-1.0'
--   No package 'gstreamer-video-1.0' found
-- Checking for module 'gstreamer-app-1.0'
--   No package 'gstreamer-app-1.0' found
-- Checking for module 'gstreamer-riff-1.0'
--   No package 'gstreamer-riff-1.0' found
-- Checking for module 'gstreamer-pbutils-1.0'
--   No package 'gstreamer-pbutils-1.0' found
-- Checking for module 'gstreamer-base-0.10'
--   No package 'gstreamer-base-0.10' found
-- Checking for module 'gstreamer-video-0.10'
--   No package 'gstreamer-video-0.10' found
-- Checking for module 'gstreamer-app-0.10'
--   No package 'gstreamer-app-0.10' found
-- Checking for module 'gstreamer-riff-0.10'
--   No package 'gstreamer-riff-0.10' found
-- Checking for module 'gstreamer-pbutils-0.10'
--   No package 'gstreamer-pbutils-0.10' found
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- Checking for module 'libavresample'
--   No package 'libavresample' found
-- Checking for module 'libgphoto2'
--   No package 'libgphoto2' found
-- found Intel IPP (ICV version): 2017.0.3 [2017.0.3]
-- at: /tmp/opencv/opencv-3.4.1/build/3rdparty/ippicv/ippicv_lnx
-- found Intel IPP IW sources: 2017.0.3
-- at: /tmp/opencv/opencv-3.4.1/build/3rdparty/ippicv/ippiw_lnx
-- CUDA detected: 8.0
-- CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-D_FORCE_INLINES
-- LAPACK(Atlas): LAPACK_LIBRARIES: /usr/lib/liblapack.so;/usr/lib/libcblas.so;/usr/lib/libatlas.so
-- LAPACK(Atlas): Support is enabled.
-- Could NOT find JNI (missing:  JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
-- Could NOT find Matlab (missing:  MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- Module opencv_ovis disabled because OGRE3D was not found
-- Caffe:   NO
-- Protobuf:   NO
-- Glog:   NO
-- freetype2:   YES
-- harfbuzz:    YES
-- Looking for tiny_dnn.h
-- Looking for tiny_dnn.h - found
-- Found tiny-dnn in: /tmp/opencv/opencv-3.4.1/build/3rdparty/tinydnn/tiny-dnn-1.0.0a3
-- The protocol buffer compiler is not found (PROTOBUF_PROTOC_EXECUTABLE='')
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
-- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
-- Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
-- Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
-- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
-- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
-- freetype2:   YES
-- harfbuzz:    YES
-- Checking for modules 'tesseract;lept'
--   No package 'tesseract' found
--   No package 'lept' found
-- Tesseract:   NO
--
-- General configuration for OpenCV 3.4.1 =====================================
--   Version control:               unknown
--
--   Extra modules:
--     Location (extra):            /tmp/opencv/opencv_contrib-3.4.1/modules
--     Version control (extra):     unknown
--
--   Platform:
--     Timestamp:                   2018-06-18T11:11:07Z
--     Host:                        Linux 4.10.0-38-generic x86_64
--     CMake:                       3.5.1
--     CMake generator:             Unix Makefiles
--     CMake build tool:            /usr/bin/make
--     Configuration:               RELEASE
--
--   CPU/HW features:
--     Baseline:                    SSE SSE2 SSE3
--       requested:                 SSE3
--     Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
--       requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
--       SSE4_1 (3 files):          + SSSE3 SSE4_1
--       SSE4_2 (1 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
--       FP16 (1 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
--       AVX (5 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
--       AVX2 (9 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
--       AVX512_SKX (1 files):      + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_SKX
--
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++ Compiler:                /usr/bin/c++  (ver 5.4.0)
--     C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
--     C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
--     C Compiler:                  /usr/bin/cc
--     C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
--     C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
--     Linker flags (Release):
--     Linker flags (Debug):
--     ccache:                      NO
--     Precompiled headers:         YES
--     Extra dependencies:          dl m pthread rt cudart nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda-8.0/lib64
--     3rdparty dependencies:
--
--   OpenCV modules:
--     To be built:                 aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dpm face features2d flann freetype fuzzy hdf hfs highgui img_hash imgcodecs imgproc java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python_bindings_generator reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
--     Disabled:                    js python2 world
--     Disabled by dependency:      -
--     Unavailable:                 cnn_3dobj cvv dnn_modern java matlab ovis python3 sfm ts viz
--     Applications:                apps
--     Documentation:               NO
--     Non-free algorithms:         NO
--
--   GUI:
--     GTK+:                        YES (ver 2.24.30)
--       GThread :                  YES (ver 2.48.2)
--       GtkGlExt:                  NO
--     VTK support:                 NO
--
--   Media I/O:
--     ZLib:                        /home/amori/miniconda3/lib/libz.so (ver 1.2.8)
--     JPEG:                        /home/amori/miniconda3/lib/libjpeg.so (ver 90)
--     WEBP:                        /home/amori/miniconda3/lib/libwebp.so (ver encoder: 0x0209)
--     PNG:                         /home/amori/miniconda3/lib/libpng.so (ver 1.6.28)
--     TIFF:                        /home/amori/miniconda3/lib/libtiff.so (ver 42 / 4.0.6)
--     JPEG 2000:                   /home/amori/miniconda3/lib/libjasper.so (ver 1.900.1)
--     OpenEXR:                     build (ver 1.7.1)
--
--   Video I/O:
--     DC1394:                      YES (ver 2.2.4)
--     FFMPEG:                      YES
--       avcodec:                   YES (ver 53.9.0)
--       avformat:                  YES (ver 53.6.0)
--       avutil:                    YES (ver 51.11.0)
--       swscale:                   YES (ver 2.0.0)
--       avresample:                NO
--     GStreamer:                   NO
--     libv4l/libv4l2:              NO
--     v4l/v4l2:                    linux/videodev2.h
--     gPhoto2:                     NO
--
--   Parallel framework:            pthreads
--
--   Trace:                         YES (with Intel ITT)
--
--   Other third-party libraries:
--     Intel IPP:                   2017.0.3 [2017.0.3]
--            at:                   /tmp/opencv/opencv-3.4.1/build/3rdparty/ippicv/ippicv_lnx
--     Intel IPP IW:                sources (2017.0.3)
--               at:                /tmp/opencv/opencv-3.4.1/build/3rdparty/ippicv/ippiw_lnx
--     Lapack:                      YES (/usr/lib/liblapack.so /usr/lib/libcblas.so /usr/lib/libatlas.so)
--     Eigen:                       NO
--     Custom HAL:                  NO
--     Protobuf:                    build (3.5.1)
--
--   NVIDIA CUDA:                   YES (ver 8.0, CUFFT CUBLAS)
--     NVIDIA GPU arch:             20 30 35 37 50 52 60 61
--     NVIDIA PTX archs:
--
--   OpenCL:                        YES (no extra features)
--     Include path:                /tmp/opencv/opencv-3.4.1/3rdparty/include/opencl/1.2
--     Link libraries:              Dynamic load
--
--   Python (for build):            /usr/bin/python2.7
--
--   Java:
--     ant:                         NO
--     JNI:                         NO
--     Java wrappers:               NO
--     Java tests:                  NO
--
--   Matlab:                        NO
--
--   Install to:                    /usr/local
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/opencv/opencv-3.4.1/build
make[1]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[2]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  0%] Built target opencv_dnn_objdetect_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target opencv_ccalib_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target opencv_fuzzy_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target opencv_bgsegm_pch_dephelp
[  1%] Built target opencv_features2d_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target opencv_calib3d_pch_dephelp
[  1%] Built target opencv_img_hash_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target opencv_flann_pch_dephelp
[  1%] Built target opencv_optflow_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target opencv_phase_unwrapping_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target opencv_cudaarithm_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target opencv_surface_matching_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target gen-pkgconfig
[  1%] Built target opencv_stitching_pch_dephelp
[  1%] Built target opencv_dnn_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target opencv_imgproc_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target ittnotify
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target opencv_imgcodecs_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target opencv_line_descriptor_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target opencv_cudafilters_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  1%] Built target opencv_stereo_pch_dephelp
[  2%] Built target opencv_hfs_pch_dephelp
[  2%] Built target opencv_ml_pch_dephelp
[  2%] Built target opencv_hdf_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  2%] Built target opencv_video_pch_dephelp
[  2%] Built target opencv_tracking_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  2%] Built target opencv_text_pch_dephelp
[  2%] Built target opencv_saliency_pch_dephelp
[  2%] Built target opencv_cudastereo_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  2%] Built target opencv_highgui_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  3%] Built target opencv_objdetect_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  4%] Built target opencv_rgbd_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  4%] Built target opencv_structured_light_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  4%] Built target opencv_aruco_pch_dephelp
[  4%] Built target opencv_plot_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  4%] Built target opencv_xfeatures2d_pch_dephelp
[  4%] Built target opencv_cudaoptflow_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  4%] Built target opencv_face_pch_dephelp
[  4%] Built target opencv_core_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  4%] Built target opencv_videostab_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  7%] Built target ippiw
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  7%] Built target opencv_cudaimgproc_pch_dephelp
[  7%] Built target opencv_cudacodec_pch_dephelp
[  7%] Built target opencv_photo_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  7%] Built target opencv_freetype_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  7%] Built target opencv_cudafeatures2d_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  8%] Built target opencv_cudaobjdetect_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  8%] Built target opencv_reg_pch_dephelp
[  8%] Built target opencv_bioinspired_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  8%] Built target opencv_cudabgsegm_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  8%] Built target opencv_ximgproc_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  8%] Built target opencv_videoio_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  8%] Built target opencv_dpm_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  8%] Built target opencv_cudalegacy_pch_dephelp
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  9%] Built target pch_Generate_opencv_img_hash
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[ 14%] Built target IlmImf
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[ 15%] Built target pch_Generate_opencv_bgsegm
[ 15%] Built target pch_Generate_opencv_cudafilters
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[ 15%] Built target pch_Generate_opencv_cudastereo
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[ 15%] Built target pch_Generate_opencv_imgcodecs
[ 15%] Built target opencv_shape_pch_dephelp
[ 15%] Built target pch_Generate_opencv_ml
[ 16%] Built target pch_Generate_opencv_line_descriptor
[ 16%] Built target pch_Generate_opencv_optflow
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[ 16%] Built target pch_Generate_opencv_text
[ 16%] Built target pch_Generate_opencv_dnn_objdetect
[ 16%] Built target pch_Generate_opencv_cudaarithm
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[ 16%] Built target pch_Generate_opencv_stitching
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[ 16%] Built target pch_Generate_opencv_calib3d
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[ 16%] Built target pch_Generate_opencv_highgui
[ 17%] Built target pch_Generate_opencv_features2d
[ 17%] Built target pch_Generate_opencv_hfs
[ 17%] Built target pch_Generate_opencv_rgbd
[ 17%] Built target pch_Generate_opencv_video
[ 17%] Built target pch_Generate_opencv_hdf
[ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor.pb.cc.o
[ 18%] Built target pch_Generate_opencv_tracking
[ 18%] Built target pch_Generate_opencv_objdetect
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[ 18%] Built target pch_Generate_opencv_bioinspired
[ 18%] Built target pch_Generate_opencv_photo
[ 19%] Built target pch_Generate_opencv_cudacodec
[ 20%] Built target pch_Generate_opencv_phase_unwrapping
[ 20%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/field_mask.pb.cc.o
[ 20%] Built target pch_Generate_opencv_flann
[ 20%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor.cc.o
[ 20%] Built target pch_Generate_opencv_stereo
[ 20%] Built target pch_Generate_opencv_cudaimgproc
[ 20%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/duration.pb.cc.o
[ 20%] Built target pch_Generate_opencv_reg
[ 20%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/coded_stream.cc.o
[ 20%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/any.pb.cc.o
[ 20%] Built target pch_Generate_opencv_freetype
[ 20%] Built target pch_Generate_opencv_ximgproc
[ 20%] Built target pch_Generate_opencv_face
[ 20%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/field_mask_util.cc.o
[ 19%] Built target pch_Generate_opencv_dnn
[ 19%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/empty.pb.cc.o
[ 20%] Built target pch_Generate_opencv_cudaoptflow
[ 20%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/timestamp.pb.cc.o
[ 21%] Built target opencv_superres_pch_dephelp
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[ 20%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/struct.pb.cc.o
[ 20%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wire_format_lite.cc.o
[ 21%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/api.pb.cc.o
[ 21%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wrappers.pb.cc.o
[ 21%] Built target pch_Generate_opencv_imgproc
[ 20%] Built target pch_Generate_opencv_core
[ 21%] Built target pch_Generate_opencv_structured_light
[ 21%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/message_lite.cc.o
[ 20%] Built target pch_Generate_opencv_fuzzy
[ 20%] Built target pch_Generate_opencv_cudalegacy
[ 20%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.o
[ 20%] Built target pch_Generate_opencv_videostab
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[ 21%] Built target opencv_cudev
[ 21%] Built target pch_Generate_opencv_saliency
[ 21%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/type.pb.cc.o
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[ 21%] Built target pch_Generate_opencv_surface_matching
[ 21%] Built target pch_Generate_opencv_cudabgsegm
[ 21%] Built target pch_Generate_opencv_cudafeatures2d
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[ 21%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/source_context.pb.cc.o
[ 21%] Built target pch_Generate_opencv_xfeatures2d
[ 21%] Built target pch_Generate_opencv_cudaobjdetect
[ 21%] Built target pch_Generate_opencv_aruco
[ 21%] Built target pch_Generate_opencv_plot
[ 21%] Built target pch_Generate_opencv_ccalib
[ 21%] Built target pch_Generate_opencv_dpm
[ 21%] Built target opencv_cudawarping_pch_dephelp
[ 21%] Built target opencv_xobjdetect_pch_dephelp
[ 21%] Built target pch_Generate_opencv_videoio
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[ 22%] Built target pch_Generate_opencv_shape
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[ 22%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[ 23%] Built target pch_Generate_opencv_superres
[ 23%] Built target pch_Generate_opencv_xobjdetect
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[ 23%] Built target pch_Generate_opencv_cudawarping
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: In member function 'void google::protobuf::internal::ArenaImpl::Init()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:70:48: error: 'threads_' was not declared in this scope
   google::protobuf::internal::NoBarrier_Store(&threads_, 0);
                                                ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:72:7: error: 'initial_block_' was not declared in this scope
   if (initial_block_) {
       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:76:75: error: 'InitBlock' was not declared in this scope
     InitBlock(initial_block_, &thread_cache(), options_.initial_block_size);
                                                                           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:77:5: error: 'ThreadInfo' was not declared in this scope
     ThreadInfo* info = NewThreadInfo(initial_block_);
     ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:77:17: error: 'info' was not declared in this scope
     ThreadInfo* info = NewThreadInfo(initial_block_);
                 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:77:52: error: 'NewThreadInfo' was not declared in this scope
     ThreadInfo* info = NewThreadInfo(initial_block_);
                                                    ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:82:62: error: invalid conversion from 'google::protobuf::uint64* {aka long unsigned int*}' to 'volatile Atomic64* {aka volatile long int*}' [-fpermissive]
                                   options_.initial_block_size);
                                                              ^
In file included from /home/amori/miniconda3/include/google/protobuf/stubs/atomicops.h:200:0,
                 from /home/amori/miniconda3/include/google/protobuf/stubs/atomic_sequence_num.h:33,
                 from /home/amori/miniconda3/include/google/protobuf/arena_impl.h:38,
                 from /home/amori/miniconda3/include/google/protobuf/arena.h:54,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/stubs/atomicops_internals_x86_gcc.h:222:13: note:   initializing argument 1 of 'void google::protobuf::internal::NoBarrier_Store(volatile Atomic64*, google::protobuf::internal::Atomic64)'
 inline void NoBarrier_Store(volatile Atomic64* ptr, Atomic64 value) {
             ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:85:69: error: invalid conversion from 'google::protobuf::uint64* {aka long unsigned int*}' to 'volatile Atomic64* {aka volatile long int*}' [-fpermissive]
     google::protobuf::internal::NoBarrier_Store(&space_allocated_, 0);
                                                                     ^
In file included from /home/amori/miniconda3/include/google/protobuf/stubs/atomicops.h:200:0,
                 from /home/amori/miniconda3/include/google/protobuf/stubs/atomic_sequence_num.h:33,
                 from /home/amori/miniconda3/include/google/protobuf/arena_impl.h:38,
                 from /home/amori/miniconda3/include/google/protobuf/arena.h:54,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/stubs/atomicops_internals_x86_gcc.h:222:13: note:   initializing argument 1 of 'void google::protobuf::internal::NoBarrier_Store(volatile Atomic64*, google::protobuf::internal::Atomic64)'
 inline void NoBarrier_Store(volatile Atomic64* ptr, Atomic64 value) {
             ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: In destructor 'google::protobuf::internal::ArenaImpl::~ArenaImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:92:15: error: no matching function for call to 'google::protobuf::internal::ArenaImpl::CleanupList()'
   CleanupList();
               ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:175:8: note: candidate: void google::protobuf::internal::ArenaImpl::CleanupList(google::protobuf::internal::ArenaImpl::Block*)
   void CleanupList(Block* head);
        ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:175:8: note:   candidate expects 1 argument, 0 provided
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:93:14: error: no matching function for call to 'google::protobuf::internal::ArenaImpl::FreeBlocks()'
   FreeBlocks();
              ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:170:10: note: candidate: google::protobuf::uint64 google::protobuf::internal::ArenaImpl::FreeBlocks(google::protobuf::internal::ArenaImpl::Block*)
   uint64 FreeBlocks(Block* head);
          ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:170:10: note:   candidate expects 1 argument, 0 provided
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: In member function 'google::protobuf::uint64 google::protobuf::internal::ArenaImpl::Reset()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:99:15: error: no matching function for call to 'google::protobuf::internal::ArenaImpl::CleanupList()'
   CleanupList();
               ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:175:8: note: candidate: void google::protobuf::internal::ArenaImpl::CleanupList(google::protobuf::internal::ArenaImpl::Block*)
   void CleanupList(Block* head);
        ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:175:8: note:   candidate expects 1 argument, 0 provided
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:100:39: error: no matching function for call to 'google::protobuf::internal::ArenaImpl::FreeBlocks()'
   uint64 space_allocated = FreeBlocks();
                                       ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:170:10: note: candidate: google::protobuf::uint64 google::protobuf::internal::ArenaImpl::FreeBlocks(google::protobuf::internal::ArenaImpl::Block*)
   uint64 FreeBlocks(Block* head);
          ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:170:10: note:   candidate expects 1 argument, 0 provided
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:106:19: error: prototype for 'google::protobuf::internal::ArenaImpl::Block* google::protobuf::internal::ArenaImpl::NewBlock(void*, google::protobuf::internal::ArenaImpl::Block*, size_t)' does not match any in class 'google::protobuf::internal::ArenaImpl'
 ArenaImpl::Block* ArenaImpl::NewBlock(void* me, Block* my_last_block,
                   ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:199:10: error: candidate is: google::protobuf::internal::ArenaImpl::Block* google::protobuf::internal::ArenaImpl::NewBlock(void*, google::protobuf::internal::ArenaImpl::Block*, size_t, size_t, size_t)
   Block* NewBlock(void* me, Block* my_last_block, size_t min_bytes,
          ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:125:10: error: 'struct google::protobuf::internal::ArenaImpl::Block' is private
   struct Block {
          ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:106:12: error: within this context
 ArenaImpl::Block* ArenaImpl::NewBlock(void* me, Block* my_last_block,
            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:125:58: error: no 'void google::protobuf::internal::ArenaImpl::InitBlock(google::protobuf::internal::ArenaImpl::Block*, void*, size_t)' member function declared in class 'google::protobuf::internal::ArenaImpl'
 void ArenaImpl::InitBlock(Block* b, void *me, size_t size) {
                                                          ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:125:10: error: 'struct google::protobuf::internal::ArenaImpl::Block' is private
   struct Block {
          ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:125:27: error: within this context
 void ArenaImpl::InitBlock(Block* b, void *me, size_t size) {
                           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:138:26: error: prototype for 'google::protobuf::internal::ArenaImpl::CleanupChunk* google::protobuf::internal::ArenaImpl::ExpandCleanupList(google::protobuf::internal::ArenaImpl::CleanupChunk*, google::protobuf::internal::ArenaImpl::Block*)' does not match any in class 'google::protobuf::internal::ArenaImpl'
 ArenaImpl::CleanupChunk* ArenaImpl::ExpandCleanupList(CleanupChunk* cleanup,
                          ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:173:10: error: candidate is: google::protobuf::internal::ArenaImpl::Block* google::protobuf::internal::ArenaImpl::ExpandCleanupList(google::protobuf::internal::ArenaImpl::Block*)
   Block* ExpandCleanupList(Block* b);
          ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:113:10: error: 'struct google::protobuf::internal::ArenaImpl::CleanupChunk' is private
   struct CleanupChunk {
          ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:138:12: error: within this context
 ArenaImpl::CleanupChunk* ArenaImpl::ExpandCleanupList(CleanupChunk* cleanup,
            ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:125:10: error: 'struct google::protobuf::internal::ArenaImpl::Block' is private
   struct Block {
          ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:139:55: error: within this context
                                                       Block* b) {
                                                       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:155:8: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE
        ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:189:8: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE
        ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:217:8: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE
        ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: In member function 'google::protobuf::internal::ArenaImpl::Block* google::protobuf::internal::ArenaImpl::GetBlockSlow(void*, google::protobuf::internal::ArenaImpl::Block*, size_t)':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:232:3: error: 'ThreadInfo' was not declared in this scope
   ThreadInfo* info =
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:232:15: error: 'info' was not declared in this scope
   ThreadInfo* info =
               ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:233:38: error: 'struct google::protobuf::internal::ArenaImpl::Block' has no member named 'thread_info'
       my_full_block ? my_full_block->thread_info : GetThreadInfo(me, n);
                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:233:71: error: 'GetThreadInfo' was not declared in this scope
       my_full_block ? my_full_block->thread_info : GetThreadInfo(me, n);
                                                                       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:237:37: error: no matching function for call to 'google::protobuf::internal::ArenaImpl::NewBlock(void*&, google::protobuf::internal::ArenaImpl::Block*&, size_t&)'
     Block* new_b = NewBlock(me, b, n);
                                     ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:199:10: note: candidate: google::protobuf::internal::ArenaImpl::Block* google::protobuf::internal::ArenaImpl::NewBlock(void*, google::protobuf::internal::ArenaImpl::Block*, size_t, size_t, size_t)
   Block* NewBlock(void* me, Block* my_last_block, size_t min_bytes,
          ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:199:10: note:   candidate expects 5 arguments, 3 provided
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:238:12: error: 'struct google::protobuf::internal::ArenaImpl::Block' has no member named 'thread_info'
     new_b->thread_info = info;
            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: In member function 'google::protobuf::uint64 google::protobuf::internal::ArenaImpl::SpaceAllocated() const':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:248:70: error: invalid conversion from 'const uint64* {aka const long unsigned int*}' to 'const volatile Atomic64* {aka const volatile long int*}' [-fpermissive]
   return google::protobuf::internal::NoBarrier_Load(&space_allocated_);
                                                                      ^
In file included from /home/amori/miniconda3/include/google/protobuf/stubs/atomicops.h:200:0,
                 from /home/amori/miniconda3/include/google/protobuf/stubs/atomic_sequence_num.h:33,
                 from /home/amori/miniconda3/include/google/protobuf/arena_impl.h:38,
                 from /home/amori/miniconda3/include/google/protobuf/arena.h:54,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/stubs/atomicops_internals_x86_gcc.h:252:17: note:   initializing argument 1 of 'google::protobuf::internal::Atomic64 google::protobuf::internal::NoBarrier_Load(const volatile Atomic64*)'
 inline Atomic64 NoBarrier_Load(volatile const Atomic64* ptr) {
                 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: In member function 'google::protobuf::uint64 google::protobuf::internal::ArenaImpl::SpaceUsed() const':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:252:3: error: 'ThreadInfo' was not declared in this scope
   ThreadInfo* info =
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:252:15: error: 'info' was not declared in this scope
   ThreadInfo* info =
               ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:253:24: error: 'ThreadInfo' does not name a type
       reinterpret_cast<ThreadInfo*>(google::protobuf::internal::Acquire_Load(&threads_));
                        ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:253:34: error: expected '>' before '*' token
       reinterpret_cast<ThreadInfo*>(google::protobuf::internal::Acquire_Load(&threads_));
                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:253:34: error: expected '(' before '*' token
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:253:35: error: expected primary-expression before '>' token
       reinterpret_cast<ThreadInfo*>(google::protobuf::internal::Acquire_Load(&threads_));
                                   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:253:79: error: 'threads_' was not declared in this scope
       reinterpret_cast<ThreadInfo*>(google::protobuf::internal::Acquire_Load(&threads_));
                                                                               ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:253:89: error: expected ')' before ';' token
       reinterpret_cast<ThreadInfo*>(google::protobuf::internal::Acquire_Load(&threads_));
                                                                                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:267:8: error: prototype for 'google::protobuf::uint64 google::protobuf::internal::ArenaImpl::FreeBlocks()' does not match any in class 'google::protobuf::internal::ArenaImpl'
 uint64 ArenaImpl::FreeBlocks() {
        ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:170:10: error: candidate is: google::protobuf::uint64 google::protobuf::internal::ArenaImpl::FreeBlocks(google::protobuf::internal::ArenaImpl::Block*)
   uint64 FreeBlocks(Block* head);
          ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:300:6: error: prototype for 'void google::protobuf::internal::ArenaImpl::CleanupList()' does not match any in class 'google::protobuf::internal::ArenaImpl'
 void ArenaImpl::CleanupList() {
      ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:175:8: error: candidate is: void google::protobuf::internal::ArenaImpl::CleanupList(google::protobuf::internal::ArenaImpl::Block*)
   void CleanupList(Block* head);
        ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:319:12: error: 'ThreadInfo' in 'class google::protobuf::internal::ArenaImpl' does not name a type
 ArenaImpl::ThreadInfo* ArenaImpl::NewThreadInfo(Block* b) {
            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:330:12: error: 'ThreadInfo' in 'class google::protobuf::internal::ArenaImpl' does not name a type
 ArenaImpl::ThreadInfo* ArenaImpl::FindThreadInfo(void* me) {
            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:342:12: error: 'ThreadInfo' in 'class google::protobuf::internal::ArenaImpl' does not name a type
 ArenaImpl::ThreadInfo* ArenaImpl::GetThreadInfo(void* me, size_t n) {
            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:364:33: error: no 'void google::protobuf::Arena::CallDestructorHooks()' member function declared in class 'google::protobuf::Arena'
 void Arena::CallDestructorHooks() {
                                 ^
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:62: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/io/coded_stream.cc:318:1: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/io/coded_stream.cc:356:1: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE::std::pair<bool, const uint8*>
 ^
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:182: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/coded_stream.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/coded_stream.cc.o] Error 1
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/message_lite.cc:106:1: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE bool InlineMergeFromCodedStream(
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/message_lite.cc:108:1: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE bool InlineParseFromCodedStream(
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/message_lite.cc:110:1: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE bool InlineParsePartialFromCodedStream(
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/message_lite.cc:112:1: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE bool InlineParseFromArray(
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/message_lite.cc:114:1: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE bool InlineParsePartialFromArray(
 ^
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:254: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/message_lite.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/message_lite.cc.o] Error 1
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wire_format_lite.cc:589:1: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE static bool ReadBytesToString(
 ^
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:614: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wire_format_lite.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wire_format_lite.cc.o] Error 1
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/any.pb.cc: In function 'void protobuf_google_2fprotobuf_2fany_2eproto::InitDefaultsAnyImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/any.pb.cc:45:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Any'
   ::google::protobuf::Any::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/any.pb.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/any.pb.cc:55:34: error: 'TableStruct' has not been declared
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/any.pb.cc:55:57: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/any.pb.cc:64:70: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/any.pb.cc:438:1: error: expected '}' at end of input
 }  // namespace google
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/field_mask.pb.cc: In function 'void protobuf_google_2fprotobuf_2ffield_5fmask_2eproto::InitDefaultsFieldMaskImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/field_mask.pb.cc:45:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::FieldMask'
   ::google::protobuf::FieldMask::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/field_mask.pb.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/field_mask.pb.cc:55:34: error: 'TableStruct' has not been declared
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/field_mask.pb.cc:55:57: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/field_mask.pb.cc:63:70: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/field_mask.pb.cc:371:1: error: expected '}' at end of input
 }  // namespace google
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/duration.pb.cc: In function 'void protobuf_google_2fprotobuf_2fduration_2eproto::InitDefaultsDurationImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/duration.pb.cc:45:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Duration'
   ::google::protobuf::Duration::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/duration.pb.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/duration.pb.cc:55:34: error: 'TableStruct' has not been declared
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/duration.pb.cc:55:57: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/duration.pb.cc:64:70: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/duration.pb.cc:429:1: error: expected '}' at end of input
 }  // namespace google
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:66:55: error: 'EnumDescriptorProto_EnumReservedRange' was not declared in this scope
   ::google::protobuf::internal::ExplicitlyConstructed<EnumDescriptorProto_EnumReservedRange>
                                                       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:66:92: error: template argument 1 is invalid
   ::google::protobuf::internal::ExplicitlyConstructed<EnumDescriptorProto_EnumReservedRange>
                                                                                            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc: In function 'void protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsDoubleValueImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc:85:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::DoubleValue'
   ::google::protobuf::DoubleValue::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc: In function 'void protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsFloatValueImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc:106:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::FloatValue'
   ::google::protobuf::FloatValue::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsFileDescriptorSetImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:170:3: error: 'InitDefaultsFileDescriptorProto' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsFileDescriptorProto();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc: In function 'void protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsInt64ValueImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc:127:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Int64Value'
   ::google::protobuf::Int64Value::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:176:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::FileDescriptorSet'
   ::google::protobuf::FileDescriptorSet::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsFileDescriptorProtoImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:192:3: error: 'InitDefaultsDescriptorProto' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsDescriptorProto();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:193:3: error: 'InitDefaultsEnumDescriptorProto' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsEnumDescriptorProto();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:194:3: error: 'InitDefaultsServiceDescriptorProto' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsServiceDescriptorProto();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc: In function 'void protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsUInt64ValueImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc:148:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::UInt64Value'
   ::google::protobuf::UInt64Value::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:195:3: error: 'InitDefaultsFieldDescriptorProto' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsFieldDescriptorProto();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:196:3: error: 'InitDefaultsFileOptions' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsFileOptions();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:197:3: error: 'InitDefaultsSourceCodeInfo' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsSourceCodeInfo();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/util/field_mask_util.cc:625:76: error: no 'void google::protobuf::util::FieldMaskUtil::InternalSubtract(const google::protobuf::Descriptor*, const FieldMask&, const FieldMask&, google::protobuf::util::FieldMaskUtil::FieldMask*)' member function declared in class 'google::protobuf::util::FieldMaskUtil'
                                      const FieldMask& mask2, FieldMask* out) {
                                                                            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:203:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::FileDescriptorProto'
   ::google::protobuf::FileDescriptorProto::InitAsDefaultInstance();
   ^
In file included from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/util/field_mask_util.cc:31:0:
/home/amori/miniconda3/include/google/protobuf/util/field_mask_util.h:47:39: error: 'typedef class google::protobuf::FieldMask google::protobuf::util::FieldMaskUtil::FieldMask' is private
   typedef google::protobuf::FieldMask FieldMask;
                                       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/util/field_mask_util.cc:624:44: error: within this context
                                      const FieldMask& mask1,
                                            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc: In function 'void protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsInt32ValueImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc:169:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Int32Value'
   ::google::protobuf::Int32Value::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsDescriptorProto_ExtensionRangeImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:219:3: error: 'InitDefaultsExtensionRangeOptions' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsExtensionRangeOptions();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:225:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::DescriptorProto_ExtensionRange'
   ::google::protobuf::DescriptorProto_ExtensionRange::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc: In function 'void protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsUInt32ValueImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc:190:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::UInt32Value'
   ::google::protobuf::UInt32Value::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsDescriptorProto_ReservedRangeImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:246:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::DescriptorProto_ReservedRange'
   ::google::protobuf::DescriptorProto_ReservedRange::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsDescriptorProtoImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:262:3: error: 'InitDefaultsFieldDescriptorProto' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsFieldDescriptorProto();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc: In function 'void protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsBoolValueImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc:211:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::BoolValue'
   ::google::protobuf::BoolValue::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:263:3: error: 'InitDefaultsEnumDescriptorProto' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsEnumDescriptorProto();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:265:3: error: 'InitDefaultsOneofDescriptorProto' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsOneofDescriptorProto();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:266:3: error: 'InitDefaultsMessageOptions' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsMessageOptions();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:273:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::DescriptorProto'
   ::google::protobuf::DescriptorProto::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc: In function 'void protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsStringValueImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc:232:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::StringValue'
   ::google::protobuf::StringValue::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsExtensionRangeOptionsImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:289:3: error: 'InitDefaultsUninterpretedOption' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsUninterpretedOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:295:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::ExtensionRangeOptions'
   ::google::protobuf::ExtensionRangeOptions::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsFieldDescriptorProtoImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:311:3: error: 'InitDefaultsFieldOptions' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsFieldOptions();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc: In function 'void protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsBytesValueImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc:253:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::BytesValue'
   ::google::protobuf::BytesValue::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:317:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::FieldDescriptorProto'
   ::google::protobuf::FieldDescriptorProto::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc:263:34: error: 'TableStruct' has not been declared
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc:263:57: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsOneofDescriptorProtoImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:333:3: error: 'InitDefaultsOneofOptions' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsOneofOptions();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc:319:70: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:339:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::OneofDescriptorProto'
   ::google::protobuf::OneofDescriptorProto::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsEnumDescriptorProto_EnumReservedRangeImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:357:15: error: expected type-specifier before '::' token
     new (ptr) ::google::protobuf::EnumDescriptorProto_EnumReservedRange();
               ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:360:23: error: 'google::protobuf::EnumDescriptorProto_EnumReservedRange' has not been declared
   ::google::protobuf::EnumDescriptorProto_EnumReservedRange::InitAsDefaultInstance();
                       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsEnumDescriptorProtoImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:376:3: error: 'InitDefaultsEnumValueDescriptorProto' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsEnumValueDescriptorProto();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:377:3: error: 'InitDefaultsEnumOptions' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsEnumOptions();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/wrappers.pb.cc:2794:1: error: expected '}' at end of input
 }  // namespace google
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:384:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::EnumDescriptorProto'
   ::google::protobuf::EnumDescriptorProto::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsEnumValueDescriptorProtoImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:400:3: error: 'InitDefaultsEnumValueOptions' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsEnumValueOptions();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:406:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::EnumValueDescriptorProt '
   ::google::protobuf::EnumValueDescriptorProto::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsServiceDescriptorProtoImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:422:3: error: 'InitDefaultsMethodDescriptorProto' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsMethodDescriptorProto();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:423:3: error: 'InitDefaultsServiceOptions' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsServiceOptions();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:429:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::ServiceDescriptorProto'
   ::google::protobuf::ServiceDescriptorProto::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsMethodDescriptorProtoImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:445:3: error: 'InitDefaultsMethodOptions' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsMethodOptions();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:451:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::MethodDescriptorProto'
   ::google::protobuf::MethodDescriptorProto::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsFileOptionsImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:467:3: error: 'InitDefaultsUninterpretedOption' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsUninterpretedOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:473:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::FileOptions'
   ::google::protobuf::FileOptions::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsMessageOptionsImpl( ':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:489:3: error: 'InitDefaultsUninterpretedOption' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsUninterpretedOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:495:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::MessageOptions'
   ::google::protobuf::MessageOptions::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsFieldOptionsImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:511:3: error: 'InitDefaultsUninterpretedOption' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsUninterpretedOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:517:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::FieldOptions'
   ::google::protobuf::FieldOptions::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsOneofOptionsImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:533:3: error: 'InitDefaultsUninterpretedOption' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsUninterpretedOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:539:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::OneofOptions'
   ::google::protobuf::OneofOptions::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsEnumOptionsImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:555:3: error: 'InitDefaultsUninterpretedOption' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsUninterpretedOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:561:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::EnumOptions'
   ::google::protobuf::EnumOptions::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsEnumValueOptionsImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:577:3: error: 'InitDefaultsUninterpretedOption' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsUninterpretedOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:583:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::EnumValueOptions'
   ::google::protobuf::EnumValueOptions::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsServiceOptionsImpl( ':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:599:3: error: 'InitDefaultsUninterpretedOption' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsUninterpretedOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:605:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::ServiceOptions'
   ::google::protobuf::ServiceOptions::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsMethodOptionsImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:621:3: error: 'InitDefaultsUninterpretedOption' is not a member of 'protobuf_google_2fprotobuf_2fdescriptor_2eproto'
   protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsUninterpretedOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:627:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::MethodOptions'
   ::google::protobuf::MethodOptions::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsUninterpretedOption_NamePartImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:648:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::UninterpretedOption_NamePart'
   ::google::protobuf::UninterpretedOption_NamePart::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsUninterpretedOptionImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:670:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::UninterpretedOption'
   ::google::protobuf::UninterpretedOption::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsSourceCodeInfo_LocationImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:691:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::SourceCodeInfo_Location'
   ::google::protobuf::SourceCodeInfo_Location::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsSourceCodeInfoImpl( ':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:713:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::SourceCodeInfo'
   ::google::protobuf::SourceCodeInfo::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsGeneratedCodeInfo_AnnotationImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:734:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::GeneratedCodeInfo_Annotation'
   ::google::protobuf::GeneratedCodeInfo_Annotation::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: In function 'void protobuf_google_2fprotobuf_2fdescriptor_2eproto::InitDefaultsGeneratedCodeInfoImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:756:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::GeneratedCodeInfo'
   ::google::protobuf::GeneratedCodeInfo::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:767:34: error: 'TableStruct' has not been declared
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:767:57: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:1148:70: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.pb.cc:14155:1: error: expected '}' at end of input
 }  // namespace google
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/struct.pb.cc:26:55: error: 'Struct_FieldsEntry_DoNotUse' was not declared in this scope
   ::google::protobuf::internal::ExplicitlyConstructed<Struct_FieldsEntry_DoNotUse>
                                                       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/struct.pb.cc:26:82: error: template argument 1 is invalid
   ::google::protobuf::internal::ExplicitlyConstructed<Struct_FieldsEntry_DoNotUse>
                                                                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/struct.pb.cc: In function 'void protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValueImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/struct.pb.cc:63:15: error: expected type-specifier before '::' token
     new (ptr) ::google::protobuf::Struct_FieldsEntry_DoNotUse();
               ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/struct.pb.cc:80:23: error: 'google::protobuf::Struct_FieldsEntry_DoNotUse' has not been declared
   ::google::protobuf::Struct_FieldsEntry_DoNotUse::InitAsDefaultInstance();
                       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/struct.pb.cc:81:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Struct'
   ::google::protobuf::Struct::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/struct.pb.cc:82:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Value'
   ::google::protobuf::Value::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/struct.pb.cc:83:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::ListValue'
   ::google::protobuf::ListValue::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/struct.pb.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/struct.pb.cc:94:34: error: 'TableStruct' has not been declared
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/struct.pb.cc:94:57: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/struct.pb.cc:129:70: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc: In function 'void protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaultsTypeImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:60:3: error: 'InitDefaultsField' is not a member of 'protobuf_google_2fprotobuf_2ftype_2eproto'
   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaultsField();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/struct.pb.cc:1473:1: error: expected '}' at end of input
 }  // namespace google
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:61:3: error: 'InitDefaultsOption' is not a member of 'protobuf_google_2fprotobuf_2ftype_2eproto'
   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaultsOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:62:3: error: 'protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto' has not been declared
   protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto::InitDefaultsSourceContext();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:68:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Type'
   ::google::protobuf::Type::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc: In function 'void protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaultsFieldImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:84:3: error: 'InitDefaultsOption' is not a member of 'protobuf_google_2fprotobuf_2ftype_2eproto'
   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaultsOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:90:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Field'
   ::google::protobuf::Field::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc: In function 'void protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaultsEnumImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:106:3: error: 'InitDefaultsEnumValue' is not a member of 'protobuf_google_2fprotobuf_2ftype_2eproto'
   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaultsEnumValue();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:107:3: error: 'InitDefaultsOption' is not a member of 'protobuf_google_2fprotobuf_2ftype_2eproto'
   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaultsOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:108:3: error: 'protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto' has not been declared
   protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto::InitDefaultsSourceContext();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:114:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Enum'
   ::google::protobuf::Enum::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc: In function 'void protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaultsEnumValueImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:130:3: error: 'InitDefaultsOption' is not a member of 'protobuf_google_2fprotobuf_2ftype_2eproto'
   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaultsOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:136:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::EnumValue'
   ::google::protobuf::EnumValue::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc: In function 'void protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaultsOptionImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:152:3: error: 'protobuf_google_2fprotobuf_2fany_2eproto' has not been declared
   protobuf_google_2fprotobuf_2fany_2eproto::InitDefaultsAny();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:158:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Option'
   ::google::protobuf::Option::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:169:34: error: 'TableStruct' has not been declared
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:169:57: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:222:70: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/type.pb.cc:2842:1: error: expected '}' at end of input
 }  // namespace google
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/empty.pb.cc: In function 'void protobuf_google_2fprotobuf_2fempty_2eproto::InitDefaultsEmptyImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/empty.pb.cc:45:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Empty'
   ::google::protobuf::Empty::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/empty.pb.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/empty.pb.cc:55:34: error: 'TableStruct' has not been declared
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/empty.pb.cc:55:57: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/empty.pb.cc:62:70: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/source_context.pb.cc: In function 'void protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto::InitDefaultsSourceContextImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/source_context.pb.cc:45:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::SourceContext'
   ::google::protobuf::SourceContext::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/empty.pb.cc:340:1: error: expected '}' at end of input
 }  // namespace google
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/source_context.pb.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/source_context.pb.cc:55:34: error: 'TableStruct' has not been declared
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/source_context.pb.cc:55:57: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/source_context.pb.cc:63:70: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/source_context.pb.cc:379:1: error: expected '}' at end of input
 }  // namespace google
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/timestamp.pb.cc: In function 'void protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestampImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/timestamp.pb.cc:45:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Timestamp'
   ::google::protobuf::Timestamp::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/timestamp.pb.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/timestamp.pb.cc:55:34: error: 'TableStruct' has not been declared
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/timestamp.pb.cc:55:57: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/timestamp.pb.cc:64:70: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/timestamp.pb.cc:429:1: error: expected '}' at end of input
 }  // namespace google
 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc: In function 'void protobuf_google_2fprotobuf_2fapi_2eproto::InitDefaultsApiImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc:50:3: error: 'InitDefaultsMethod' is not a member of 'protobuf_google_2fprotobuf_2fapi_2eproto'
   protobuf_google_2fprotobuf_2fapi_2eproto::InitDefaultsMethod();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc:51:3: error: 'protobuf_google_2fprotobuf_2ftype_2eproto' has not been declared
   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaultsOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc:52:3: error: 'protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto' has not been declared
   protobuf_google_2fprotobuf_2fsource_5fcontext_2eproto::InitDefaultsSourceContext();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc:53:3: error: 'InitDefaultsMixin' is not a member of 'protobuf_google_2fprotobuf_2fapi_2eproto'
   protobuf_google_2fprotobuf_2fapi_2eproto::InitDefaultsMixin();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc:59:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Api'
   ::google::protobuf::Api::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc: In function 'void protobuf_google_2fprotobuf_2fapi_2eproto::InitDefaultsMethodImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc:75:3: error: 'protobuf_google_2fprotobuf_2ftype_2eproto' has not been declared
   protobuf_google_2fprotobuf_2ftype_2eproto::InitDefaultsOption();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc:81:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Method'
   ::google::protobuf::Method::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc: In function 'void protobuf_google_2fprotobuf_2fapi_2eproto::InitDefaultsMixinImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc:102:3: error: 'InitAsDefaultInstance' is not a member of 'google::protobuf::Mixin'
   ::google::protobuf::Mixin::InitAsDefaultInstance();
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc:112:34: error: 'TableStruct' has not been declared
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc:112:57: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc:145:70: error: expected initializer before 'GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE'
 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
                                                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/api.pb.cc:1606:1: error: expected '}' at end of input
 }  // namespace google
 ^
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:662: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/any.pb.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/any.pb.cc.o] Error 1
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:734: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor.pb.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor.pb.cc.o] Error 1
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:878: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/field_mask.pb.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/field_mask.pb.cc.o] Error 1
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:782: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/duration.pb.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/duration.pb.cc.o] Error 1
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:1838: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wrappers.pb.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wrappers.pb.cc.o] Error 1
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:1310: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/type.pb.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/type.pb.cc.o] Error 1
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:830: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/empty.pb.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/empty.pb.cc.o] Error 1
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:1812:23: error: 'ReservedRange' in 'class google::protobuf::EnumDescriptor' does not name a type
 const EnumDescriptor::ReservedRange*
                       ^
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:1406: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/field_mask_util.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/field_mask_util.cc.o] Error 1
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:1929:45: error: no 'bool google::protobuf::FieldDescriptor::is_map_message_type() const' member function declared in class 'google::protobuf::FieldDescriptor'
 bool FieldDescriptor::is_map_message_type() const {
                                             ^
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:1166: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/source_context.pb.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/source_context.pb.cc.o] Error 1
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:1286: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/timestamp.pb.cc.o' failed
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc: In member function 'void google::protobuf::EnumDescriptor::CopyTo(google::protobuf::EnumDescriptorProto*) const':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:2166:44: error: 'reserved_range_count' was not declared in this scope
   for (int i = 0; i < reserved_range_count(); i++) {
                                            ^
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/timestamp.pb.cc.o] Error 1
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:2167:5: error: 'EnumReservedRange' is not a member of 'google::protobuf::EnumDescriptorProto'
     EnumDescriptorProto::EnumReservedRange* range = proto->add_reserved_range();
     ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:2167:45: error: 'range' was not declared in this scope
     EnumDescriptorProto::EnumReservedRange* range = proto->add_reserved_range();
                                             ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:2167:60: error: 'class google::protobuf::EnumDescriptorProto' has no member named 'add_reserved_range'
     EnumDescriptorProto::EnumReservedRange* range = proto->add_reserved_range();
                                                            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:2168:38: error: 'reserved_range' was not declared in this scope
     range->set_start(reserved_range(i)->start);
                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:2171:43: error: 'reserved_name_count' was not declared in this scope
   for (int i = 0; i < reserved_name_count(); i++) {
                                           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:2172:12: error: 'class google::protobuf::EnumDescriptorProto' has no member named 'add_reserved_name'
     proto->add_reserved_name(reserved_name(i));
            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:2172:45: error: 'reserved_name' was not declared in this scope
     proto->add_reserved_name(reserved_name(i));
                                             ^
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:686: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/api.pb.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/api.pb.cc.o] Error 1
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:1190: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/struct.pb.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/struct.pb.cc.o] Error 1
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc: In member function 'void google::protobuf::EnumDescriptor::DebugString(int, std::__cxx11::string*, const google::protobuf::DebugStringOptions&) const':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:2807:28: error: 'reserved_range_count' was not declared in this scope
   if (reserved_range_count() > 0) {
                            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:2810:29: error: 'ReservedRange' in 'class google::protobuf::EnumDescriptor' does not name a type
       const EnumDescriptor::ReservedRange* range = reserved_range(i);
                             ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:2811:11: error: 'range' was not declared in this scope
       if (range->end == range->start) {
           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:2821:27: error: 'reserved_name_count' was not declared in this scope
   if (reserved_name_count() > 0) {
                           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:2825:59: error: 'reserved_name' was not declared in this scope
                                    CEscape(reserved_name(i)));
                                                           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:3313:54: error: 'EnumReservedRange' in 'class google::protobuf::EnumDescriptorProto' does not name a type
   void BuildReservedRange(const EnumDescriptorProto::EnumReservedRange& proto,
                                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:3315:43: error: 'google::protobuf::EnumDescriptor::ReservedRange' has not been declared
                           EnumDescriptor::ReservedRange* result);
                                           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4954:32: error: 'EnumReservedRange' in 'class google::protobuf::EnumDescriptorProto' does not name a type
     const EnumDescriptorProto::EnumReservedRange& proto,
                                ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4955:51: error: 'google::protobuf::EnumDescriptor::ReservedRange' has not been declared
     const EnumDescriptor* parent, EnumDescriptor::ReservedRange* result) {
                                                   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc: In member function 'void google::protobuf::DescriptorBuilder::BuildReservedRange(const int&, const google::protobuf::EnumDescriptor*, int*)':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4956:11: error: request for member 'start' in '* result', which is of non-class type 'int'
   result->start = proto.start();
           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4956:25: error: request for member 'start' in 'proto', which is of non-class type 'const int'
   result->start = proto.start();
                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4957:11: error: request for member 'end' in '* result', which is of non-class type 'int'
   result->end = proto.end();
           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4957:23: error: request for member 'end' in 'proto', which is of non-class type 'const int'
   result->end = proto.end();
                       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4959:15: error: request for member 'start' in '* result', which is of non-class type 'int'
   if (result->start > result->end) {
               ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4959:31: error: request for member 'end' in '* result', which is of non-class type 'int'
   if (result->start > result->end) {
                               ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4962:76: error: no matching function for call to 'google::protobuf::DescriptorBuilder::AddError(const string&, const int&, google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation, const char [61])'
              "Reserved range end number must be greater than start number.");
                                                                            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:3585:6: note: candidate: void google::protobuf::DescriptorBuilder::AddError(const string&, const google::protobuf::Message&, google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation, const string&)
 void DescriptorBuilder::AddError(
      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:3585:6: note:   no known conversion for argument 2 from 'const int' to 'const google::protobuf::Message&'
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:3603:6: note: candidate: void google::protobuf::DescriptorBuilder::AddError(const string&, const google::protobuf::Message&, google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation, const char*)
 void DescriptorBuilder::AddError(
      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:3603:6: note:   no known conversion for argument 2 from 'const int' to 'const google::protobuf::Message&'
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc: In member function 'void google::protobuf::DescriptorBuilder::BuildEnum(const google::protobuf::EnumDescriptorProto&, const google::protobuf::Descriptor*, google::protobuf::EnumDescriptor*)':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5087:30: error: 'class google::protobuf::EnumDescriptor' has no member named 'reserved_range_count_'
   BUILD_ARRAY(proto, result, reserved_range, BuildReservedRange, result);
                              ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4121:11: note: in definition of macro 'BUILD_ARRAY'
   OUTPUT->NAME##_count_ = INPUT.NAME##_size();                       \
           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5087:30: error: 'const class google::protobuf::EnumDescriptorProto' has no member named 'reserved_range_size'
   BUILD_ARRAY(proto, result, reserved_range, BuildReservedRange, result);
                              ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4121:33: note: in definition of macro 'BUILD_ARRAY'
   OUTPUT->NAME##_count_ = INPUT.NAME##_size();                       \
                                 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5087:30: error: 'const class google::protobuf::EnumDescriptorProto' has no member named 'reserved_range_size'
   BUILD_ARRAY(proto, result, reserved_range, BuildReservedRange, result);
                              ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4122:23: note: in definition of macro 'BUILD_ARRAY'
   AllocateArray(INPUT.NAME##_size(), &OUTPUT->NAME##s_);             \
                       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5087:30: error: 'class google::protobuf::EnumDescriptor' has no member named 'reserved_ranges_'
   BUILD_ARRAY(proto, result, reserved_range, BuildReservedRange, result);
                              ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4122:47: note: in definition of macro 'BUILD_ARRAY'
   AllocateArray(INPUT.NAME##_size(), &OUTPUT->NAME##s_);             \
                                               ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5087:30: error: 'const class google::protobuf::EnumDescriptorProto' has no member named 'reserved_range_size'
   BUILD_ARRAY(proto, result, reserved_range, BuildReservedRange, result);
                              ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4123:29: note: in definition of macro 'BUILD_ARRAY'
   for (int i = 0; i < INPUT.NAME##_size(); i++) {                    \
                             ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5087:30: error: 'const class google::protobuf::EnumDescriptorProto' has no member named 'reserved_rang '
   BUILD_ARRAY(proto, result, reserved_range, BuildReservedRange, result);
                              ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4124:18: note: in definition of macro 'BUILD_ARRAY'
     METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i);             \
                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5087:30: error: 'class google::protobuf::EnumDescriptor' has no member named 'reserved_ranges_'
   BUILD_ARRAY(proto, result, reserved_range, BuildReservedRange, result);
                              ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:4124:43: note: in definition of macro 'BUILD_ARRAY'
     METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i);             \
                                           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5090:35: error: 'const class google::protobuf::EnumDescriptorProto' has no member named 'reserved_name_size'
   int reserved_name_count = proto.reserved_name_size();
                                   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5091:11: error: 'class google::protobuf::EnumDescriptor' has no member named 'reserved_name_count_'
   result->reserved_name_count_ = reserved_name_count;
           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5092:11: error: 'class google::protobuf::EnumDescriptor' has no member named 'reserved_names_'
   result->reserved_names_ =
           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5095:13: error: 'class google::protobuf::EnumDescriptor' has no member named 'reserved_names_'
     result->reserved_names_[i] =
             ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5096:39: error: 'const class google::protobuf::EnumDescriptorProto' has no member named 'reserved_name'
         tables_->AllocateString(proto.reserved_name(i));
                                       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5111:29: error: 'const class google::protobuf::EnumDescriptorProto' has no member named 'reserved_range_size'
   for (int i = 0; i < proto.reserved_range_size(); i++) {
                             ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5112:11: error: 'EnumDescriptorProto_EnumReservedRange' does not name a type
     const EnumDescriptorProto_EnumReservedRange& range1 =
           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5114:35: error: 'const class google::protobuf::EnumDescriptorProto' has no member named 'reserved_range_size'
     for (int j = i + 1; j < proto.reserved_range_size(); j++) {
                                   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5115:13: error: 'EnumDescriptorProto_EnumReservedRange' does not name a type
       const EnumDescriptorProto_EnumReservedRange& range2 =
             ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5117:11: error: 'range1' was not declared in this scope
       if (range1.end() > range2.start() && range2.end() > range1.start()) {
           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5117:26: error: 'range2' was not declared in this scope
       if (range1.end() > range2.start() && range2.end() > range1.start()) {
                          ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5118:45: error: 'const class google::protobuf::EnumDescriptorProto' has no member named 'reserved_rang '
         AddError(result->full_name(), proto.reserved_range(i),
                                             ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5129:29: error: 'const class google::protobuf::EnumDescriptorProto' has no member named 'reserved_name_size'
   for (int i = 0; i < proto.reserved_name_size(); i++) {
                             ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5130:32: error: 'const class google::protobuf::EnumDescriptorProto' has no member named 'reserved_name'
     const string& name = proto.reserved_name(i);
                                ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5143:33: error: 'class google::protobuf::EnumDescriptor' has no member named 'reserved_range_count'
     for (int j = 0; j < result->reserved_range_count(); j++) {
                                 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5144:29: error: 'ReservedRange' in 'class google::protobuf::EnumDescriptor' does not name a type
       const EnumDescriptor::ReservedRange* range = result->reserved_range(j);
                             ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5145:11: error: 'range' was not declared in this scope
       if (range->start <= value->number() && value->number() <= range->end) {
           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/descriptor.cc:5146:44: error: 'const class google::protobuf::EnumDescriptorProto' has no member named 'reserved_rang '
         AddError(value->full_name(), proto.reserved_range(j),
                                            ^
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:710: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor.cc.o] Error 1
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
CMakeFiles/Makefile2:385: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all' failed
make[2]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(59): error: name followed by "::" must be a class or namespace name

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(64): error: namespace "cv::cuda::device" has no member class "ThrustAllocator"

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(64): error: not a class or struct name

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(86): error: namespace "cv::cuda::device" has no member "ThrustAllocator"

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(90): error: namespace "cv::cuda::device" has no member "ThrustAllocator"

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(90): error: name followed by "::" must be a class or namespace name

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(95): error: name followed by "::" must be a class or namespace name

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(95): error: incomplete type is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(95): error: namespace "cv::cuda::device" has no member "ThrustAllocator"

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(95): error: identifier "allocator" is undefined

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(96): error: expected a ";"

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(125): warning: parsing restarts here after previous syntax error

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(127): error: expected a declaration

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(128): error: expected a declaration

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(136): warning: parsing restarts here after previous syntax error

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(137): error: identifier "cudaDefaultAllocator" is undefined

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(138): error: expected a declaration

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(185): warning: parsing restarts here after previous syntax error

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(187): error: identifier "step" is undefined

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(187): error: identifier "rows" is undefined

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(190): error: this declaration has no storage class or type specifier

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(190): error: identifier "data" is undefined

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(191): error: this declaration has no storage class or type specifier

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(193): error: expected a declaration

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(195): error: expected a declaration

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(341): warning: parsing restarts here after previous syntax error

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(343): error: expected a declaration

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(414): warning: parsing restarts here after previous syntax error

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(415): error: identifier "func_t" is undefined

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(417): error: identifier "setToWithOutMask" is undefined

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(417): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(417): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(417): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(417): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(417): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(417): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(417): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(417): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(418): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(418): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(418): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(418): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(418): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(418): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(418): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(418): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(419): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(419): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(419): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(419): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(419): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(419): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(419): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(419): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(420): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(420): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(420): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(420): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(420): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(420): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(420): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(420): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(421): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(421): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(421): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(421): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(421): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(421): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(421): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(421): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(422): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(422): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(422): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(422): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(422): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(422): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(422): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(422): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(423): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(423): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(423): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(423): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(423): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(423): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(423): error: type name is not allowed

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(423): error: expected an expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(426): error: identifier "depth" is undefined

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(426): error: function call is not allowed in a constant expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(426): error: identifier "channels" is undefined

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(426): error: function call is not allowed in a constant expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(426): error: variable "funcs" has already been defined

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(426): error: "this" may only be used inside a nonstatic member function

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(426): error: expected a ")"

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(428): error: expected a declaration

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(429): error: expected a declaration

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(455): warning: parsing restarts here after previous syntax error

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(457): error: function call is not allowed in a constant expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(457): error: function call is not allowed in a constant expression

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(457): error: variable "funcs" has already been defined

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(457): error: "this" may only be used inside a nonstatic member function

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(457): error: expected a ")"

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(459): error: expected a declaration

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(460): error: expected a declaration

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(497): warning: parsing restarts here after previous syntax error

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(524): error: expected a declaration

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(549): warning: parsing restarts here after previous syntax error

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(550): error: identifier "_dst" is undefined

/tmp/opencv/opencv-3.4.1/modules/core/src/cuda/gpu_mat.cu(553): error: variable "funcs" has already been defined

Error limit reached.
100 errors detected in the compilation of "/tmp/tmpxft_00000aa3_00000000-21_gpu_mat.compute_61.cpp1.ii".
Compilation terminated.
CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:266 (message):
  Error generating file
  /tmp/opencv/opencv-3.4.1/build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o

modules/core/CMakeFiles/opencv_core.dir/build.make:404: recipe for target 'modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o' failed
make[3]: *** [modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o] Error 1
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
CMakeFiles/Makefile2:2367: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make[2]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
Makefile:160: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[1]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[2]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  0%] Built target gen-pkgconfig
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  5%] Built target IlmImf
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
[  8%] Built target ippiw
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
make[3]: Entering directory '/tmp/opencv/opencv-3.4.1/build'
[  8%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.o
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: In member function 'void google::protobuf::internal::ArenaImpl::Init()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:70:48: error: 'threads_' was not declared in this scope
   google::protobuf::internal::NoBarrier_Store(&threads_, 0);
                                                ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:72:7: error: 'initial_block_' was not declared in this scope
   if (initial_block_) {
       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:76:75: error: 'InitBlock' was not declared in this scope
     InitBlock(initial_block_, &thread_cache(), options_.initial_block_size);
                                                                           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:77:5: error: 'ThreadInfo' was not declared in this scope
     ThreadInfo* info = NewThreadInfo(initial_block_);
     ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:77:17: error: 'info' was not declared in this scope
     ThreadInfo* info = NewThreadInfo(initial_block_);
                 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:77:52: error: 'NewThreadInfo' was not declared in this scope
     ThreadInfo* info = NewThreadInfo(initial_block_);
                                                    ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:82:62: error: invalid conversion from 'google::protobuf::uint64* {aka long unsigned int*}' to 'volatile Atomic64* {aka volatile long int*}' [-fpermissive]
                                   options_.initial_block_size);
                                                              ^
In file included from /home/amori/miniconda3/include/google/protobuf/stubs/atomicops.h:200:0,
                 from /home/amori/miniconda3/include/google/protobuf/stubs/atomic_sequence_num.h:33,
                 from /home/amori/miniconda3/include/google/protobuf/arena_impl.h:38,
                 from /home/amori/miniconda3/include/google/protobuf/arena.h:54,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/stubs/atomicops_internals_x86_gcc.h:222:13: note:   initializing argument 1 of 'void google::protobuf::internal::NoBarrier_Store(volatile Atomic64*, google::protobuf::internal::Atomic64)'
 inline void NoBarrier_Store(volatile Atomic64* ptr, Atomic64 value) {
             ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:85:69: error: invalid conversion from 'google::protobuf::uint64* {aka long unsigned int*}' to 'volatile Atomic64* {aka volatile long int*}' [-fpermissive]
     google::protobuf::internal::NoBarrier_Store(&space_allocated_, 0);
                                                                     ^
In file included from /home/amori/miniconda3/include/google/protobuf/stubs/atomicops.h:200:0,
                 from /home/amori/miniconda3/include/google/protobuf/stubs/atomic_sequence_num.h:33,
                 from /home/amori/miniconda3/include/google/protobuf/arena_impl.h:38,
                 from /home/amori/miniconda3/include/google/protobuf/arena.h:54,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/stubs/atomicops_internals_x86_gcc.h:222:13: note:   initializing argument 1 of 'void google::protobuf::internal::NoBarrier_Store(volatile Atomic64*, google::protobuf::internal::Atomic64)'
 inline void NoBarrier_Store(volatile Atomic64* ptr, Atomic64 value) {
             ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: In destructor 'google::protobuf::internal::ArenaImpl::~ArenaImpl()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:92:15: error: no matching function for call to 'google::protobuf::internal::ArenaImpl::CleanupList()'
   CleanupList();
               ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:175:8: note: candidate: void google::protobuf::internal::ArenaImpl::CleanupList(google::protobuf::internal::ArenaImpl::Block*)
   void CleanupList(Block* head);
        ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:175:8: note:   candidate expects 1 argument, 0 provided
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:93:14: error: no matching function for call to 'google::protobuf::internal::ArenaImpl::FreeBlocks()'
   FreeBlocks();
              ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:170:10: note: candidate: google::protobuf::uint64 google::protobuf::internal::ArenaImpl::FreeBlocks(google::protobuf::internal::ArenaImpl::Block*)
   uint64 FreeBlocks(Block* head);
          ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:170:10: note:   candidate expects 1 argument, 0 provided
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: In member function 'google::protobuf::uint64 google::protobuf::internal::ArenaImpl::Reset()':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:99:15: error: no matching function for call to 'google::protobuf::internal::ArenaImpl::CleanupList()'
   CleanupList();
               ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:175:8: note: candidate: void google::protobuf::internal::ArenaImpl::CleanupList(google::protobuf::internal::ArenaImpl::Block*)
   void CleanupList(Block* head);
        ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:175:8: note:   candidate expects 1 argument, 0 provided
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:100:39: error: no matching function for call to 'google::protobuf::internal::ArenaImpl::FreeBlocks()'
   uint64 space_allocated = FreeBlocks();
                                       ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:170:10: note: candidate: google::protobuf::uint64 google::protobuf::internal::ArenaImpl::FreeBlocks(google::protobuf::internal::ArenaImpl::Block*)
   uint64 FreeBlocks(Block* head);
          ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:170:10: note:   candidate expects 1 argument, 0 provided
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:106:19: error: prototype for 'google::protobuf::internal::ArenaImpl::Block* google::protobuf::internal::ArenaImpl::NewBlock(void*, google::protobuf::internal::ArenaImpl::Block*, size_t)' does not match any in class 'google::protobuf::internal::ArenaImpl'
 ArenaImpl::Block* ArenaImpl::NewBlock(void* me, Block* my_last_block,
                   ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:199:10: error: candidate is: google::protobuf::internal::ArenaImpl::Block* google::protobuf::internal::ArenaImpl::NewBlock(void*, google::protobuf::internal::ArenaImpl::Block*, size_t, size_t, size_t)
   Block* NewBlock(void* me, Block* my_last_block, size_t min_bytes,
          ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:125:10: error: 'struct google::protobuf::internal::ArenaImpl::Block' is private
   struct Block {
          ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:106:12: error: within this context
 ArenaImpl::Block* ArenaImpl::NewBlock(void* me, Block* my_last_block,
            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:125:58: error: no 'void google::protobuf::internal::ArenaImpl::InitBlock(google::protobuf::internal::ArenaImpl::Block*, void*, size_t)' member function declared in class 'google::protobuf::internal::ArenaImpl'
 void ArenaImpl::InitBlock(Block* b, void *me, size_t size) {
                                                          ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:125:10: error: 'struct google::protobuf::internal::ArenaImpl::Block' is private
   struct Block {
          ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:125:27: error: within this context
 void ArenaImpl::InitBlock(Block* b, void *me, size_t size) {
                           ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:138:26: error: prototype for 'google::protobuf::internal::ArenaImpl::CleanupChunk* google::protobuf::internal::ArenaImpl::ExpandCleanupList(google::protobuf::internal::ArenaImpl::CleanupChunk*, google::protobuf::internal::ArenaImpl::Block*)' does not match any in class 'google::protobuf::internal::ArenaImpl'
 ArenaImpl::CleanupChunk* ArenaImpl::ExpandCleanupList(CleanupChunk* cleanup,
                          ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:173:10: error: candidate is: google::protobuf::internal::ArenaImpl::Block* google::protobuf::internal::ArenaImpl::ExpandCleanupList(google::protobuf::internal::ArenaImpl::Block*)
   Block* ExpandCleanupList(Block* b);
          ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:113:10: error: 'struct google::protobuf::internal::ArenaImpl::CleanupChunk' is private
   struct CleanupChunk {
          ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:138:12: error: within this context
 ArenaImpl::CleanupChunk* ArenaImpl::ExpandCleanupList(CleanupChunk* cleanup,
            ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:125:10: error: 'struct google::protobuf::internal::ArenaImpl::Block' is private
   struct Block {
          ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:139:55: error: within this context
                                                       Block* b) {
                                                       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:155:8: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE
        ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:189:8: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE
        ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:217:8: error: 'GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE' does not name a type
 inline GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE
        ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: In member function 'google::protobuf::internal::ArenaImpl::Block* google::protobuf::internal::ArenaImpl::GetBlockSlow(void*, google::protobuf::internal::ArenaImpl::Block*, size_t)':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:232:3: error: 'ThreadInfo' was not declared in this scope
   ThreadInfo* info =
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:232:15: error: 'info' was not declared in this scope
   ThreadInfo* info =
               ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:233:38: error: 'struct google::protobuf::internal::ArenaImpl::Block' has no member named 'thread_info'
       my_full_block ? my_full_block->thread_info : GetThreadInfo(me, n);
                                      ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:233:71: error: 'GetThreadInfo' was not declared in this scope
       my_full_block ? my_full_block->thread_info : GetThreadInfo(me, n);
                                                                       ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:237:37: error: no matching function for call to 'google::protobuf::internal::ArenaImpl::NewBlock(void*&, google::protobuf::internal::ArenaImpl::Block*&, size_t&)'
     Block* new_b = NewBlock(me, b, n);
                                     ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:199:10: note: candidate: google::protobuf::internal::ArenaImpl::Block* google::protobuf::internal::ArenaImpl::NewBlock(void*, google::protobuf::internal::ArenaImpl::Block*, size_t, size_t, size_t)
   Block* NewBlock(void* me, Block* my_last_block, size_t min_bytes,
          ^
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:199:10: note:   candidate expects 5 arguments, 3 provided
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:238:12: error: 'struct google::protobuf::internal::ArenaImpl::Block' has no member named 'thread_info'
     new_b->thread_info = info;
            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: In member function 'google::protobuf::uint64 google::protobuf::internal::ArenaImpl::SpaceAllocated() const':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:248:70: error: invalid conversion from 'const uint64* {aka const long unsigned int*}' to 'const volatile Atomic64* {aka const volatile long int*}' [-fpermissive]
   return google::protobuf::internal::NoBarrier_Load(&space_allocated_);
                                                                      ^
In file included from /home/amori/miniconda3/include/google/protobuf/stubs/atomicops.h:200:0,
                 from /home/amori/miniconda3/include/google/protobuf/stubs/atomic_sequence_num.h:33,
                 from /home/amori/miniconda3/include/google/protobuf/arena_impl.h:38,
                 from /home/amori/miniconda3/include/google/protobuf/arena.h:54,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/stubs/atomicops_internals_x86_gcc.h:252:17: note:   initializing argument 1 of 'google::protobuf::internal::Atomic64 google::protobuf::internal::NoBarrier_Load(const volatile Atomic64*)'
 inline Atomic64 NoBarrier_Load(volatile const Atomic64* ptr) {
                 ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: In member function 'google::protobuf::uint64 google::protobuf::internal::ArenaImpl::SpaceUsed() const':
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:252:3: error: 'ThreadInfo' was not declared in this scope
   ThreadInfo* info =
   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:252:15: error: 'info' was not declared in this scope
   ThreadInfo* info =
               ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:253:24: error: 'ThreadInfo' does not name a type
       reinterpret_cast<ThreadInfo*>(google::protobuf::internal::Acquire_Load(&threads_));
                        ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:253:34: error: expected '>' before '*' token
       reinterpret_cast<ThreadInfo*>(google::protobuf::internal::Acquire_Load(&threads_));
                                  ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:253:34: error: expected '(' before '*' token
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:253:35: error: expected primary-expression before '>' token
       reinterpret_cast<ThreadInfo*>(google::protobuf::internal::Acquire_Load(&threads_));
                                   ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:253:79: error: 'threads_' was not declared in this scope
       reinterpret_cast<ThreadInfo*>(google::protobuf::internal::Acquire_Load(&threads_));
                                                                               ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:253:89: error: expected ')' before ';' token
       reinterpret_cast<ThreadInfo*>(google::protobuf::internal::Acquire_Load(&threads_));
                                                                                         ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: At global scope:
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:267:8: error: prototype for 'google::protobuf::uint64 google::protobuf::internal::ArenaImpl::FreeBlocks()' does not match any in class 'google::protobuf::internal::ArenaImpl'
 uint64 ArenaImpl::FreeBlocks() {
        ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:170:10: error: candidate is: google::protobuf::uint64 google::protobuf::internal::ArenaImpl::FreeBlocks(google::protobuf::internal::ArenaImpl::Block*)
   uint64 FreeBlocks(Block* head);
          ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:300:6: error: prototype for 'void google::protobuf::internal::ArenaImpl::CleanupList()' does not match any in class 'google::protobuf::internal::ArenaImpl'
 void ArenaImpl::CleanupList() {
      ^
In file included from /home/amori/miniconda3/include/google/protobuf/arena.h:54:0,
                 from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
/home/amori/miniconda3/include/google/protobuf/arena_impl.h:175:8: error: candidate is: void google::protobuf::internal::ArenaImpl::CleanupList(google::protobuf::internal::ArenaImpl::Block*)
   void CleanupList(Block* head);
        ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:319:12: error: 'ThreadInfo' in 'class google::protobuf::internal::ArenaImpl' does not name a type
 ArenaImpl::ThreadInfo* ArenaImpl::NewThreadInfo(Block* b) {
            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:330:12: error: 'ThreadInfo' in 'class google::protobuf::internal::ArenaImpl' does not name a type
 ArenaImpl::ThreadInfo* ArenaImpl::FindThreadInfo(void* me) {
            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:342:12: error: 'ThreadInfo' in 'class google::protobuf::internal::ArenaImpl' does not name a type
 ArenaImpl::ThreadInfo* ArenaImpl::GetThreadInfo(void* me, size_t n) {
            ^
/tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:364:33: error: no 'void google::protobuf::Arena::CallDestructorHooks()' member function declared in class 'google::protobuf::Arena'
 void Arena::CallDestructorHooks() {
                                 ^
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:62: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.o] Error 1
make[3]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
CMakeFiles/Makefile2:385: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all' failed
make[2]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all] Error 2
make[2]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
Makefile:160: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/tmp/opencv/opencv-3.4.1/build'
/tmp/opencv/opencv-3.4.1

Your Environment

deadprogram commented 6 years ago

Hello @akihirom2017 please see #230

akihirom2017 commented 6 years ago

Thanks for your suggestion.

Actually, I have tried both ways: quick and complete installs. But neither of them are not successfully installed gocv.

Any help would be appreacited.

best

On Mon, Jun 18, 2018 at 12:42 PM Ron Evans notifications@github.com wrote:

Hello @akihirom2017 https://github.com/akihirom2017 please see #230 https://github.com/hybridgroup/gocv/issues/230

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hybridgroup/gocv/issues/236#issuecomment-398026852, or mute the thread https://github.com/notifications/unsubscribe-auth/AbZ31SfiwQ0UmuOV5OFfHBQSTQXB2eitks5t95IqgaJpZM4UrkZu .

deadprogram commented 6 years ago

You will need to be using the dev branch, not master for it to work. Hope that helps!

akihirom2017 commented 6 years ago

Thanks for your tips.

I have downloaded gocv-dev and follow the make * commands. Unfortunately, the issue still remained and the same error message come out.

The first error message is: [ 8%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.o /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc: In member function 'void google::protobuf::internal::ArenaImpl::Init()': /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:70:48: error: 'threads_' was not declared in this scope google::protobuf::internal::NoBarrierStore(&threads, 0); ^ /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:72:7: error: 'initialblock' was not declared in this scope if (initialblock) { ^ /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:76:75: error: 'InitBlock' was not declared in this scope InitBlock(initialblock, &threadcache(), options.initial_block_size); ^ /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:77:5: error: 'ThreadInfo' was not declared in this scope ThreadInfo info = NewThreadInfo(initialblock); ^ /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:77:17: error: 'info' was not declared in this scope ThreadInfo info = NewThreadInfo(initialblock); ^ /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:77:52: error: 'NewThreadInfo' was not declared in this scope ThreadInfo info = NewThreadInfo(initialblock); ^ /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:82:62: error: invalid conversion from 'google::protobuf::uint64 {aka long unsigned int}' to 'volatile Atomic64 {aka volatile long int}' [-fpermissive] options_.initial_block_size); ^ In file included from /home/amori/miniconda3/include/google/protobuf/stubs/atomicops.h:200:0, from /home/amori/miniconda3/include/google/protobuf/stubs/atomic_sequence_num.h:33, from /home/amori/miniconda3/include/google/protobuf/arena_impl.h:38, from /home/amori/miniconda3/include/google/protobuf/arena.h:54, from /tmp/opencv/opencv-3.4.1/3rdparty/protobuf/src/google/protobuf/arena.cc:31: /home/amori/miniconda3/include/google/protobuf/stubs/atomicops_internals_x86_gcc.h:222:13: note: initializing argument 1 of 'void google::protobuf::internal::NoBarrier_Store(volatile Atomic64, google::protobuf::internal::Atomic64)' inline void NoBarrier_Store(volatile Atomic64* ptr, Atomic64 value) {

this type of error is so weired because I am pretty sure that you have checked those basic issues before releasing this package.

I wonder this issue related to my miniconda3, which I used openCV for different purpose?

Please let me know. Thanks

Best

On Mon, Jun 18, 2018 at 1:00 PM Ron Evans notifications@github.com wrote:

You will need to be using the dev branch, not master for it to work. Hope that helps!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hybridgroup/gocv/issues/236#issuecomment-398030739, or mute the thread https://github.com/notifications/unsubscribe-auth/AbZ31VIRBaO7J3ROV2LiXtXOpc_WPZndks5t95ZKgaJpZM4UrkZu .

deadprogram commented 6 years ago

I have no experience with that package manager, but it is not supported in the current Makefile:

https://github.com/hybridgroup/gocv/blob/dev/Makefile#L31-L39

You might want to look over the Makefile and try to install the dependencies yourself using miniconda3 or whatever package manager you are using.

akihirom2017 commented 6 years ago

Thanks, finally, it could install.

deadprogram commented 6 years ago

OK, glad you got it working.

Now closing, please reopen if needed.