Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Protobuf build error OpenCV 3.4.2

Cuda: 9.2 Gcc: 5.4.0 Ubuntu 16.04 Kernel: 4.15.0-24-generic When building OpenCV 3.4.2 with opencv_contrib-3.4.2 I encounter an error which I can't seem to get around.

cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D WITH_CUDA=ON \
    -D INSTALL_PYTHON_EXAMPLES=ON \
    -D BUILD_EXAMPLES=ON ..

Log:

[  4%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/text_format.cc.o
/home/mikeyr/opencv/opencv-3.4.2/3rdparty/protobuf/src/google/protobuf/text_format.cc:1309:1: error: prototype for ‘google::protobuf::TextFormat::Parser::Parser(bool)’ does not match any in class ‘google::protobuf::TextFormat::Parser’
 TextFormat::Parser::Parser(bool allow_unknown_field)
 ^
In file included from /home/mikeyr/opencv/opencv-3.4.2/3rdparty/protobuf/src/google/protobuf/text_format.cc:43:0:
/home/mikeyr/anaconda3/include/google/protobuf/text_format.h:458:28: error: candidates are: google::protobuf::TextFormat::Parser::Parser(const google::protobuf::TextFormat::Parser&)
   class LIBPROTOBUF_EXPORT Parser {
                            ^
/home/mikeyr/anaconda3/include/google/protobuf/text_format.h:460:5: error:                 google::protobuf::TextFormat::Parser::Parser()
     Parser();
     ^
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:1262: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/text_format.cc.o' failed
make[2]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/text_format.cc.o] Error 1
CMakeFiles/Makefile2:543: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all' failed
make[1]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

When I run with "-D WITH_PROTOBUF=OFF" I run into another error

[ 29%] Building NVCC (Device) object modules/cudawarping/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_warp.cu.o
In file included from /usr/local/cuda/include/cuda_runtime.h:86:0,
                 from <command-line>:0:
/usr/local/cuda/include/builtin_types.h:56:26: fatal error: /usr/local/cuda/include/device_types.h: Operation not permitted
compilation terminated.
CMake Error at cuda_compile_generated_remap.cu.o.cmake:208 (message):
  Error generating
  /home/mikeyr/opencv/opencv-3.4.2/build/modules/cudawarping/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_remap.cu.o


modules/cudawarping/CMakeFiles/opencv_cudawarping.dir/build.make:288: recipe for target 'modules/cudawarping/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_remap.cu.o' failed
make[2]: *** [modules/cudawarping/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_remap.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 29%] Built target opencv_freetype
[ 29%] Built target opencv_fuzzy
[ 29%] Linking CXX shared library ../../lib/libopencv_hfs.so
[ 30%] Built target opencv_cudaarithm
[ 30%] Built target opencv_img_hash
[ 30%] Copy Java(JAR) source files
COPYFILES: ... 1 entries (JAVA_SRC_COPY)
COPYFILES:     ... directory '.../gen/java' with 221 files
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/Moments.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/CLAHE.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/LineSegmentDetector.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/Imgproc.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/Subdiv2D.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/highgui/HighGui.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/highgui/ImageWindow.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/structured_light/StructuredLightPattern.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/structured_light/GrayCodePattern.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/structured_light/SinusoidalPattern.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/structured_light/Params.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/structured_light/Structured_light.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/Point.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/CvException.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/DMatch.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfPoint3f.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/Range.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfDMatch.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/Algorithm.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/Rect.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/Core.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/TermCriteria.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/Rect2d.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfFloat.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/Size.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfInt.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/Scalar.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfInt4.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/KeyPoint.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfFloat4.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfPoint3.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfKeyPoint.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfDouble.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/CvType.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/Point3.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfPoint2f.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfByte.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/RotatedRect.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfFloat6.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/Mat.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfRect2d.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfPoint.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/TickMeter.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfRect.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/MergeRobertson.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/MergeExposures.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/AlignExposures.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/CalibrateDebevec.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/CalibrateRobertson.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/AlignMTB.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/TonemapDrago.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/TonemapDurand.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/Tonemap.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/TonemapMantiuk.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/MergeMertens.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/CalibrateCRF.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/TonemapReinhard.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/Photo.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/photo/MergeDebevec.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/videoio/Videoio.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/videoio/VideoCapture.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/videoio/VideoWriter.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/imgcodecs/Imgcodecs.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/Objdetect.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/BaseCascadeClassifier.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/HOGDescriptor.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/CascadeClassifier.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/plot/Plot.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/plot/Plot2d.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/DisparityWLSFilter.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SuperpixelSEEDS.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/RFFeatureGetter.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyTexture.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/GuidedFilter.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/EdgeAwareInterpolator.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/DisparityFilter.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/FastGlobalSmootherFilter.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SuperpixelSLIC.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/GraphSegmentation.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentation.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategy.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/EdgeBoxes.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/FastLineDetector.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyColor.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SparseMatchInterpolator.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/ContourFitting.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/AdaptiveManifoldFilter.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyFill.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/StructuredEdgeDetection.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/RidgeDetectionFilter.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/DTFilter.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyMultiple.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategySize.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SuperpixelLSC.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/Ximgproc.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xphoto/GrayworldWB.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xphoto/LearningBasedWB.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xphoto/Xphoto.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xphoto/WhiteBalancer.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xphoto/SimpleWB.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/calib3d/StereoSGBM.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/calib3d/StereoMatcher.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/calib3d/StereoBM.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/calib3d/Calib3d.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/utils/Converters.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/phase_unwrapping/HistogramPhaseUnwrapping.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/phase_unwrapping/PhaseUnwrapping.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/phase_unwrapping/Phase_unwrapping.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/aruco/DetectorParameters.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/aruco/CharucoBoard.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/aruco/Board.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/aruco/Dictionary.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/aruco/GridBoard.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/aruco/Aruco.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/osgi/OpenCVInterface.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/osgi/OpenCVNativeLoader.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/GFTTDetector.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/DescriptorExtractor.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/AgastFeatureDetector.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/BOWKMeansTrainer.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/FlannBasedMatcher.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/BOWTrainer.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/Feature2D.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/AKAZE.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/ORB.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/BRISK.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/BOWImgDescriptorExtractor.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/MSER.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/FastFeatureDetector.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/FeatureDetector.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/Params.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/Features2d.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/BFMatcher.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/KAZE.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/DescriptorMatcher.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/PCTSignatures.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/BoostDesc.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/SIFT.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/PCTSignaturesSQFD.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/Xfeatures2d.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/SURF.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/HarrisLaplaceFeatureDetector.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/FREAK.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/VGG.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/DAISY.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/LUCID.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/MSDDetector.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/StarDetector.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/LATCH.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/xfeatures2d/BriefDescriptorExtractor.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/NormalBayesClassifier.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/ANN_MLP_ANNEAL.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/SVMSGD.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/Boost.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/Ml.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/ANN_MLP.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/RTrees.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/EM.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/KNearest.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/DTrees.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/SVM.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/LogisticRegression.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/StatModel.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/ParamGrid.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/ml/TrainData.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/FisherFaceRecognizer.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/Face.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/BasicFaceRecognizer.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/FaceRecognizer.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/FacemarkKazemi.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/Facemark.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/FacemarkTrain.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/LBPHFaceRecognizer.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/BIF.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/MACE.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/PredictCollector.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/StandardCollector.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/EigenFaceRecognizer.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/FacemarkAAM.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/face/FacemarkLBF.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/tracking/TrackerTLD.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/tracking/Tracker.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/tracking/TrackerKCF.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/tracking/TrackerMOSSE.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/tracking/TrackerCSRT.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/tracking/TrackerGOTURN.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/tracking/TrackerMedianFlow.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/tracking/MultiTracker.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/tracking/TrackerMIL.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/tracking/TrackerBoosting.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/tracking/Tracking.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/bgsegm/SyntheticSequenceGenerator.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/bgsegm/Bgsegm.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/bgsegm/BackgroundSubtractorGMG.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/bgsegm/BackgroundSubtractorMOG.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/bgsegm/BackgroundSubtractorLSBP.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/bgsegm/BackgroundSubtractorGSOC.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/bgsegm/BackgroundSubtractorLSBPDesc.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/bgsegm/BackgroundSubtractorCNT.java' ...
In file included from /usr/include/c++/5/algorithm:61:0,
                 from /home/mikeyr/opencv/opencv-3.4.2/modules/core/include/opencv2/core/base.hpp:55,
                 from /home/mikeyr/opencv/opencv-3.4.2/modules/core/include/opencv2/core/cuda/common.hpp:49,
                 from /home/mikeyr/opencv/opencv-3.4.2/modules/cudawarping/src/cuda/warp.cu:45:
/usr/include/c++/5/bits/stl_algobase.h:67:31: fatal error: /usr/include/c++/5/bits/stl_iterator.h: Operation not permitted
compilation terminated.
CMake Error at cuda_compile_generated_warp.cu.o.cmake:208 (message):
  Error generating
  /home/mikeyr/opencv/opencv-3.4.2/build/modules/cudawarping/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_warp.cu.o


modules/cudawarping/CMakeFiles/opencv_cudawarping.dir/build.make:295: recipe for target 'modules/cudawarping/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_warp.cu.o' failed
make[2]: *** [modules/cudawarping/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_warp.cu.o] Error 1
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/bioinspired/TransientAreasSegmentationModule.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/bioinspired/RetinaFastToneMapping.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/bioinspired/Bioinspired.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/bioinspired/Retina.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/video/BackgroundSubtractorMOG2.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/video/BackgroundSubtractor.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/video/DualTVL1OpticalFlow.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/video/SparseOpticalFlow.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/video/KalmanFilter.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/video/SparsePyrLKOpticalFlow.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/video/DenseOpticalFlow.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/video/FarnebackOpticalFlow.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/video/Video.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/video/BackgroundSubtractorKNN.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/img_hash/BlockMeanHash.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/img_hash/AverageHash.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/img_hash/ImgHashBase.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/img_hash/RadialVarianceHash.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/img_hash/MarrHildrethHash.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/img_hash/Img_hash.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/img_hash/PHash.java' ...
COPYFILES:         Copying: 'modules/java/jar/opencv/java/org/opencv/img_hash/ColorMomentHash.java' ...
COPYFILES: Updated!
[ 30%] Built target opencv_java_jar_source_copy
[ 30%] Copying res/drawable/chessboard.jpg
[ 30%] Copying res/drawable/icon.png
[ 31%] Built target opencv_hfs
[ 31%] Copying res/drawable/lena.png
[ 31%] Built target opencv_version
[ 31%] Copying res/raw/lbpcascade_frontalface.xml
[ 31%] Copying res/values/strings.xml
[ 31%] Copying res/layout/main.xml
[ 32%] Built target opencv_imgcodecs
[ 32%] Copying src/org/opencv/test/utils/ConvertersTest.java
[ 33%] Built target opencv_objdetect
[ 33%] Copy Java(Test) source files
[ 33%] Built target opencv_phase_unwrapping
COPYFILES: ... 1 entries (JAVA_TEST_SRC_COPY)
COPYFILES:     ... directory '.../gen/test' with 51 files
COPYFILES:         Copying: 'java_test/src/org/opencv/test/imgproc/MomentsTest.java' ...
[ 34%] Built target opencv_plot
COPYFILES:         Copying: 'java_test/src/org/opencv/test/imgproc/Subdiv2DTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/imgproc/ImgprocTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/SizeTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/ScalarTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/MatTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/CoreTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/MatOfByteTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/PointTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/RangeTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/TermCriteriaTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/Point3Test.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/RectTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/KeyPointTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/DMatchTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/CvTypeTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/core/RotatedRectTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/photo/PhotoTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/videoio/VideoCaptureTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/imgcodecs/ImgcodecsTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/objdetect/ObjdetectTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/objdetect/CascadeClassifierTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/objdetect/HOGDescriptorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/calib3d/StereoSGBMTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/calib3d/Calib3dTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/calib3d/StereoBMTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/BruteForceDescriptorMatcherTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/Features2dTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/ORBDescriptorExtractorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/SIFTFeatureDetectorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/SIFTDescriptorExtractorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/HARRISFeatureDetectorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/BruteForceHammingLUTDescriptorMatcherTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/MSERFeatureDetectorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/SIMPLEBLOBFeatureDetectorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/DENSEFeatureDetectorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/STARFeatureDetectorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/BruteForceL1DescriptorMatcherTest.java' ...
[ 34%] Built target opencv_reg
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/FlannBasedDescriptorMatcherTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/ORBFeatureDetectorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/SURFDescriptorExtractorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/BruteForceSL2DescriptorMatcherTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/BRIEFDescriptorExtractorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/BruteForceHammingDescriptorMatcherTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/FASTFeatureDetectorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/SURFFeatureDetectorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/features2d/GFTTFeatureDetectorTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/ml/MLTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/video/BackgroundSubtractorMOGTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/video/VideoTest.java' ...
COPYFILES:         Copying: 'java_test/src/org/opencv/test/video/KalmanFilterTest.java' ...
COPYFILES: Updated!
[ 34%] Built target opencv_video
[ 34%] Built target opencv_java_test_source_copy
[ 34%] Built target opencv_xobjdetect
[ 34%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.8uc3.cu.o
[ 34%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.32sc1.cu.o
[ 35%] Built target opencv_datasets
[ 35%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_row_filter.16uc3.cu.o
CMakeFiles/Makefile2:8554: recipe for target 'modules/cudawarping/CMakeFiles/opencv_cudawarping.dir/all' failed
make[1]: *** [modules/cudawarping/CMakeFiles/opencv_cudawarping.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 35%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_column_filter.32fc3.cu.o
Scanning dependencies of target opencv_cudafilters
[ 35%] Building CXX object modules/cudafilters/CMakeFiles/opencv_cudafilters.dir/src/filtering.cpp.o
cc1plus: warning: /home/mikeyr/opencv/opencv-3.4.2/build/modules/cudafilters/precomp.hpp.gch/opencv_cudafilters_RELEASE.gch: not used because `OPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch]
[ 35%] Linking CXX shared library ../../lib/libopencv_cudafilters.so
[ 36%] Built target opencv_cudafilters
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2