question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New build error appeared in branch 3.4

See original GitHub issue

I’m running a CI for a docker image that clones the repository and compiles both opencv and opencvsharp.

Recently the build for opencvsharp started failing with the following error:

Scanning dependencies of target OpenCvSharpExtern
[  3%] Building CXX object OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/aruco.cpp.o
[ 10%] Building CXX object OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/bgsegm.cpp.o
[ 10%] Building CXX object OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/calib3d.cpp.o
[ 13%] Building CXX object OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/core.cpp.o
In file included from /opencvsharp/src/OpenCvSharpExtern/core.cpp:2:0:
/opencvsharp/src/OpenCvSharpExtern/core.h: In function 'void core_minMaxLoc2(cv::_InputArray*, double*, double*, CvPoint*, CvPoint*, cv::_InputArray*)':
/opencvsharp/src/OpenCvSharpExtern/core.h:227:15: error: no match for 'operator=' (operand types are 'CvPoint' and 'cv::Point {aka cv::Point_<int>}')
     *minLoc = minLoc0;
               ^~~~~~~
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/core.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/core.cpp:2:
/usr/local/include/opencv2/core/types_c.h:946:16: note: candidate: CvPoint& CvPoint::operator=(const CvPoint&)
 typedef struct CvPoint
                ^~~~~~~
/usr/local/include/opencv2/core/types_c.h:946:16: note:   no known conversion for argument 1 from 'cv::Point {aka cv::Point_<int>}' to 'const CvPoint&'
/usr/local/include/opencv2/core/types_c.h:946:16: note: candidate: CvPoint& CvPoint::operator=(CvPoint&&)
/usr/local/include/opencv2/core/types_c.h:946:16: note:   no known conversion for argument 1 from 'cv::Point {aka cv::Point_<int>}' to 'CvPoint&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/core.cpp:2:0:
/opencvsharp/src/OpenCvSharpExtern/core.h:228:15: error: no match for 'operator=' (operand types are 'CvPoint' and 'cv::Point {aka cv::Point_<int>}')
     *maxLoc = maxLoc0;
               ^~~~~~~
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/core.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/core.cpp:2:
/usr/local/include/opencv2/core/types_c.h:946:16: note: candidate: CvPoint& CvPoint::operator=(const CvPoint&)
 typedef struct CvPoint
                ^~~~~~~
/usr/local/include/opencv2/core/types_c.h:946:16: note:   no known conversion for argument 1 from 'cv::Point {aka cv::Point_<int>}' to 'const CvPoint&'
/usr/local/include/opencv2/core/types_c.h:946:16: note: candidate: CvPoint& CvPoint::operator=(CvPoint&&)
/usr/local/include/opencv2/core/types_c.h:946:16: note:   no known conversion for argument 1 from 'cv::Point {aka cv::Point_<int>}' to 'CvPoint&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/core.cpp:2:0:
/opencvsharp/src/OpenCvSharpExtern/core.h: In function 'int core_checkRange(cv::_InputArray*, int, CvPoint*, double, double)':
/opencvsharp/src/OpenCvSharpExtern/core.h:424:12: error: no match for 'operator=' (operand types are 'CvPoint' and 'cv::Point {aka cv::Point_<int>}')
     *pos = pos0;
            ^~~~
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/core.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/core.cpp:2:
/usr/local/include/opencv2/core/types_c.h:946:16: note: candidate: CvPoint& CvPoint::operator=(const CvPoint&)
 typedef struct CvPoint
                ^~~~~~~
/usr/local/include/opencv2/core/types_c.h:946:16: note:   no known conversion for argument 1 from 'cv::Point {aka cv::Point_<int>}' to 'const CvPoint&'
/usr/local/include/opencv2/core/types_c.h:946:16: note: candidate: CvPoint& CvPoint::operator=(CvPoint&&)
/usr/local/include/opencv2/core/types_c.h:946:16: note:   no known conversion for argument 1 from 'cv::Point {aka cv::Point_<int>}' to 'CvPoint&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:0:
/opencvsharp/src/OpenCvSharpExtern/calib3d.h: In function 'void calib3d_stereoRectify_InputArray(cv::_InputArray*, cv::_InputArray*, cv::_InputArray*, cv::_InputArray*, MyCvSize, cv::_InputArray*, cv::_InputArray*, cv::_OutputArray*, cv::_OutputArray*, cv::_OutputArray*, cv::_OutputArray*, cv::_OutputArray*, int, double, CvSize, CvRect*, CvRect*)':
/opencvsharp/src/OpenCvSharpExtern/calib3d.h:407:21: error: no match for 'operator=' (operand types are 'CvRect' and 'cv::Rect {aka cv::Rect_<int>}')
     *validPixROI1 = _validPixROI1;
                     ^~~~~~~~~~~~~
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(const CvRect&)
 typedef struct CvRect
                ^~~~~~
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'const CvRect&'
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(CvRect&&)
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'CvRect&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:0:
/opencvsharp/src/OpenCvSharpExtern/calib3d.h:408:21: error: no match for 'operator=' (operand types are 'CvRect' and 'cv::Rect {aka cv::Rect_<int>}')
     *validPixROI2 = _validPixROI2;
                     ^~~~~~~~~~~~~
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(const CvRect&)
 typedef struct CvRect
                ^~~~~~
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'const CvRect&'
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(CvRect&&)
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'CvRect&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:0:
/opencvsharp/src/OpenCvSharpExtern/calib3d.h: In function 'void calib3d_stereoRectify_array(double*, double*, int, double*, double*, int, MyCvSize, double*, double*, double*, double*, double*, double*, double*, int, double, MyCvSize, CvRect*, CvRect*)':
/opencvsharp/src/OpenCvSharpExtern/calib3d.h:437:21: error: no match for 'operator=' (operand types are 'CvRect' and 'cv::Rect {aka cv::Rect_<int>}')
     *validPixROI1 = _validPixROI1;
                     ^~~~~~~~~~~~~
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(const CvRect&)
 typedef struct CvRect
                ^~~~~~
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'const CvRect&'
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(CvRect&&)
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'CvRect&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:0:
/opencvsharp/src/OpenCvSharpExtern/calib3d.h:438:21: error: no match for 'operator=' (operand types are 'CvRect' and 'cv::Rect {aka cv::Rect_<int>}')
     *validPixROI2 = _validPixROI2;
                     ^~~~~~~~~~~~~
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(const CvRect&)
 typedef struct CvRect
                ^~~~~~
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'const CvRect&'
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(CvRect&&)
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'CvRect&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:0:
/opencvsharp/src/OpenCvSharpExtern/calib3d.h: In function 'float calib3d_rectify3Collinear_InputArray(cv::_InputArray*, cv::_InputArray*, cv::_InputArray*, cv::_InputArray*, cv::_InputArray*, cv::_InputArray*, cv::_InputArray**, int, cv::_InputArray**, int, CvSize, cv::_InputArray*, cv::_InputArray*, cv::_InputArray*, cv::_InputArray*, cv::_OutputArray*, cv::_OutputArray*, cv::_OutputArray*, cv::_OutputArray*, cv::_OutputArray*, cv::_OutputArray*, cv::_OutputArray*, double, CvSize, CvRect*, CvRect*, int)':
/opencvsharp/src/OpenCvSharpExtern/calib3d.h:487:13: error: no match for 'operator=' (operand types are 'CvRect' and 'cv::Rect {aka cv::Rect_<int>}')
     *roi1 = _roi1;
             ^~~~~
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(const CvRect&)
 typedef struct CvRect
                ^~~~~~
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'const CvRect&'
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(CvRect&&)
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'CvRect&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:0:
/opencvsharp/src/OpenCvSharpExtern/calib3d.h:488:13: error: no match for 'operator=' (operand types are 'CvRect' and 'cv::Rect {aka cv::Rect_<int>}')
     *roi2 = _roi2;
             ^~~~~
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(const CvRect&)
 typedef struct CvRect
                ^~~~~~
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'const CvRect&'
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(CvRect&&)
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'CvRect&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:0:
/opencvsharp/src/OpenCvSharpExtern/calib3d.h: In function 'cv::Mat* calib3d_getOptimalNewCameraMatrix_InputArray(cv::_InputArray*, cv::_InputArray*, MyCvSize, double, MyCvSize, CvRect*, int)':
/opencvsharp/src/OpenCvSharpExtern/calib3d.h:500:20: error: no match for 'operator=' (operand types are 'CvRect' and 'cv::Rect {aka cv::Rect_<int>}')
     *validPixROI = _validPixROI;
                    ^~~~~~~~~~~~
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(const CvRect&)
 typedef struct CvRect
                ^~~~~~
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'const CvRect&'
/usr/local/include/opencv2/core/types_c.h:843:16: note: candidate: CvRect& CvRect::operator=(CvRect&&)
/usr/local/include/opencv2/core/types_c.h:843:16: note:   no known conversion for argument 1 from 'cv::Rect {aka cv::Rect_<int>}' to 'CvRect&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/calib3d.cpp:2:0:
/opencvsharp/src/OpenCvSharpExtern/calib3d.h: In function 'void calib3d_getOptimalNewCameraMatrix_array(double*, double*, int, MyCvSize, double, MyCvSize, CvRect*, int, double*)':
/opencvsharp/src/OpenCvSharpExtern/calib3d.h:515:66: error: could not convert 'cpp(MyCvSize)()' from 'cv::Size {aka cv::Size_<int>}' to 'CvSize'
     cvGetOptimalNewCameraMatrix(&cameraMatrixM, pdistCoeffsM, cpp(imageSize),
                                                               ~~~^~~~~~~~~~~
In file included from /opencvsharp/src/OpenCvSharpExtern/core.cpp:8:0:
/opencvsharp/src/OpenCvSharpExtern/core_Mat.h: In function 'void core_Mat_IplImage(cv::Mat*, IplImage*)':
/opencvsharp/src/OpenCvSharpExtern/core_Mat.h:523:40: error: no matching function for call to '_IplImage::_IplImage(cv::Mat&)'
     IplImage inImage = (IplImage)(*self);
                                        ^
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/core.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/core.cpp:2:
/usr/local/include/opencv2/core/types_c.h:327:1: note: candidate: _IplImage::_IplImage()
 _IplImage
 ^~~~~~~~~
/usr/local/include/opencv2/core/types_c.h:327:1: note:   candidate expects 0 arguments, 1 provided
/usr/local/include/opencv2/core/types_c.h:327:1: note: candidate: constexpr _IplImage::_IplImage(const _IplImage&)
/usr/local/include/opencv2/core/types_c.h:327:1: note:   no known conversion for argument 1 from 'cv::Mat' to 'const _IplImage&'
/usr/local/include/opencv2/core/types_c.h:327:1: note: candidate: constexpr _IplImage::_IplImage(_IplImage&&)
/usr/local/include/opencv2/core/types_c.h:327:1: note:   no known conversion for argument 1 from 'cv::Mat' to '_IplImage&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/core.cpp:8:0:
/opencvsharp/src/OpenCvSharpExtern/core_Mat.h: In function 'void core_Mat_IplImage_alignment(cv::Mat*, IplImage**)':
/opencvsharp/src/OpenCvSharpExtern/core_Mat.h:530:38: error: no matching function for call to '_IplImage::_IplImage(cv::Mat&)'
     IplImage dummy = (IplImage)(*self);
                                      ^
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/core.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/core.cpp:2:
/usr/local/include/opencv2/core/types_c.h:327:1: note: candidate: _IplImage::_IplImage()
 _IplImage
 ^~~~~~~~~
/usr/local/include/opencv2/core/types_c.h:327:1: note:   candidate expects 0 arguments, 1 provided
/usr/local/include/opencv2/core/types_c.h:327:1: note: candidate: constexpr _IplImage::_IplImage(const _IplImage&)
/usr/local/include/opencv2/core/types_c.h:327:1: note:   no known conversion for argument 1 from 'cv::Mat' to 'const _IplImage&'
/usr/local/include/opencv2/core/types_c.h:327:1: note: candidate: constexpr _IplImage::_IplImage(_IplImage&&)
/usr/local/include/opencv2/core/types_c.h:327:1: note:   no known conversion for argument 1 from 'cv::Mat' to '_IplImage&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/core.cpp:8:0:
/opencvsharp/src/OpenCvSharpExtern/core_Mat.h: In function 'void core_Mat_CvMat(cv::Mat*, CvMat*)':
/opencvsharp/src/OpenCvSharpExtern/core_Mat.h:548:32: error: no matching function for call to 'CvMat::CvMat(cv::Mat&)'
     CvMat inMat = (CvMat)(*self);
                                ^
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/core.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/core.cpp:2:
/usr/local/include/opencv2/core/types_c.h:464:16: note: candidate: CvMat::CvMat()
 typedef struct CvMat
                ^~~~~
/usr/local/include/opencv2/core/types_c.h:464:16: note:   candidate expects 0 arguments, 1 provided
/usr/local/include/opencv2/core/types_c.h:464:16: note: candidate: constexpr CvMat::CvMat(const CvMat&)
/usr/local/include/opencv2/core/types_c.h:464:16: note:   no known conversion for argument 1 from 'cv::Mat' to 'const CvMat&'
/usr/local/include/opencv2/core/types_c.h:464:16: note: candidate: constexpr CvMat::CvMat(CvMat&&)
/usr/local/include/opencv2/core/types_c.h:464:16: note:   no known conversion for argument 1 from 'cv::Mat' to 'CvMat&&'
OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/build.make:110: recipe for target 'OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/calib3d.cpp.o' failed
make[2]: *** [OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/calib3d.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 16%] Building CXX object OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/cuda.cpp.o
OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/build.make:134: recipe for target 'OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/core.cpp.o' failed
make[2]: *** [OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/core.cpp.o] Error 1
In file included from /opencvsharp/src/OpenCvSharpExtern/cuda.cpp:3:0:
/opencvsharp/src/OpenCvSharpExtern/cuda_GpuMat.h: In function 'cv::cuda::GpuMat* cuda_GpuMat_new9(cv::cuda::GpuMat*, CvSlice, CvSlice)':
/opencvsharp/src/OpenCvSharpExtern/cuda_GpuMat.h:48:38: error: no matching function for call to 'cv::Range::Range(CvSlice&)'
     return new GpuMat(*m, (cv::Range)rowRange, (cv::Range)colRange);
                                      ^~~~~~~~
In file included from /usr/local/include/opencv2/core.hpp:58:0,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/cuda.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/cuda.cpp:2:
/usr/local/include/opencv2/core/types.hpp:2019:1: note: candidate: cv::Range::Range(int, int)
 Range::Range(int _start, int _end)
 ^~~~~
/usr/local/include/opencv2/core/types.hpp:2019:1: note:   candidate expects 2 arguments, 1 provided
/usr/local/include/opencv2/core/types.hpp:2015:1: note: candidate: cv::Range::Range()
 Range::Range()
 ^~~~~
/usr/local/include/opencv2/core/types.hpp:2015:1: note:   candidate expects 0 arguments, 1 provided
/usr/local/include/opencv2/core/types.hpp:583:18: note: candidate: constexpr cv::Range::Range(const cv::Range&)
 class CV_EXPORTS Range
                  ^~~~~
/usr/local/include/opencv2/core/types.hpp:583:18: note:   no known conversion for argument 1 from 'CvSlice' to 'const cv::Range&'
/usr/local/include/opencv2/core/types.hpp:583:18: note: candidate: constexpr cv::Range::Range(cv::Range&&)
/usr/local/include/opencv2/core/types.hpp:583:18: note:   no known conversion for argument 1 from 'CvSlice' to 'cv::Range&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/cuda.cpp:3:0:
/opencvsharp/src/OpenCvSharpExtern/cuda_GpuMat.h:48:59: error: no matching function for call to 'cv::Range::Range(CvSlice&)'
     return new GpuMat(*m, (cv::Range)rowRange, (cv::Range)colRange);
                                                           ^~~~~~~~
In file included from /usr/local/include/opencv2/core.hpp:58:0,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/cuda.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/cuda.cpp:2:
/usr/local/include/opencv2/core/types.hpp:2019:1: note: candidate: cv::Range::Range(int, int)
 Range::Range(int _start, int _end)
 ^~~~~
/usr/local/include/opencv2/core/types.hpp:2019:1: note:   candidate expects 2 arguments, 1 provided
/usr/local/include/opencv2/core/types.hpp:2015:1: note: candidate: cv::Range::Range()
 Range::Range()
 ^~~~~
/usr/local/include/opencv2/core/types.hpp:2015:1: note:   candidate expects 0 arguments, 1 provided
/usr/local/include/opencv2/core/types.hpp:583:18: note: candidate: constexpr cv::Range::Range(const cv::Range&)
 class CV_EXPORTS Range
                  ^~~~~
/usr/local/include/opencv2/core/types.hpp:583:18: note:   no known conversion for argument 1 from 'CvSlice' to 'const cv::Range&'
/usr/local/include/opencv2/core/types.hpp:583:18: note: candidate: constexpr cv::Range::Range(cv::Range&&)
/usr/local/include/opencv2/core/types.hpp:583:18: note:   no known conversion for argument 1 from 'CvSlice' to 'cv::Range&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/cuda.cpp:3:0:
/opencvsharp/src/OpenCvSharpExtern/cuda_GpuMat.h: In function 'cv::cuda::GpuMat* cuda_GpuMat_opRange2(cv::cuda::GpuMat*, CvSlice, CvSlice)':
/opencvsharp/src/OpenCvSharpExtern/cuda_GpuMat.h:108:42: error: no match for call to '(cv::cuda::GpuMat) (CvSlice&, CvSlice&)'
     GpuMat gm = (*src)(rowRange, colRange);
                                          ^
In file included from /usr/local/include/opencv2/core/cuda.hpp:1047:0,
                 from /usr/local/include/opencv2/stitching/detail/warpers.hpp:47,
                 from /usr/local/include/opencv2/stitching/warpers.hpp:46,
                 from /usr/local/include/opencv2/stitching.hpp:48,
                 from /usr/local/include/opencv2/opencv.hpp:89,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/cuda.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/cuda.cpp:2:
/usr/local/include/opencv2/core/cuda.inl.hpp:281:8: note: candidate: cv::cuda::GpuMat cv::cuda::GpuMat::operator()(cv::Range, cv::Range) const
 GpuMat GpuMat::operator ()(Range rowRange_, Range colRange_) const
        ^~~~~~
/usr/local/include/opencv2/core/cuda.inl.hpp:281:8: note:   no known conversion for argument 1 from 'CvSlice' to 'cv::Range'
/usr/local/include/opencv2/core/cuda.inl.hpp:287:8: note: candidate: cv::cuda::GpuMat cv::cuda::GpuMat::operator()(cv::Rect) const
 GpuMat GpuMat::operator ()(Rect roi) const
        ^~~~~~
/usr/local/include/opencv2/core/cuda.inl.hpp:287:8: note:   candidate expects 1 argument, 2 provided
In file included from /opencvsharp/src/OpenCvSharpExtern/cuda.cpp:3:0:
/opencvsharp/src/OpenCvSharpExtern/cuda_GpuMat.h: In function 'void cuda_GpuMat_locateROI(cv::cuda::GpuMat*, CvSize*, CvPoint*)':
/opencvsharp/src/OpenCvSharpExtern/cuda_GpuMat.h:210:26: error: no matching function for call to 'CvSize::CvSize(cv::Size&)'
     *wholeSize = (CvSize)_wholeSize;
                          ^~~~~~~~~~
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/cuda.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/cuda.cpp:2:
/usr/local/include/opencv2/core/types_c.h:1169:16: note: candidate: CvSize::CvSize()
 typedef struct CvSize
                ^~~~~~
/usr/local/include/opencv2/core/types_c.h:1169:16: note:   candidate expects 0 arguments, 1 provided
/usr/local/include/opencv2/core/types_c.h:1169:16: note: candidate: constexpr CvSize::CvSize(const CvSize&)
/usr/local/include/opencv2/core/types_c.h:1169:16: note:   no known conversion for argument 1 from 'cv::Size {aka cv::Size_<int>}' to 'const CvSize&'
/usr/local/include/opencv2/core/types_c.h:1169:16: note: candidate: constexpr CvSize::CvSize(CvSize&&)
/usr/local/include/opencv2/core/types_c.h:1169:16: note:   no known conversion for argument 1 from 'cv::Size {aka cv::Size_<int>}' to 'CvSize&&'
In file included from /opencvsharp/src/OpenCvSharpExtern/cuda.cpp:3:0:
/opencvsharp/src/OpenCvSharpExtern/cuda_GpuMat.h:211:21: error: no matching function for call to 'CvPoint::CvPoint(cv::Point&)'
     *ofs = (CvPoint)_ofs;
                     ^~~~
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
                 from /usr/local/include/opencv2/core/utility.hpp:1205,
                 from /usr/local/include/opencv2/core.hpp:3284,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /opencvsharp/src/OpenCvSharpExtern/include_opencv.h:17,
                 from /opencvsharp/src/OpenCvSharpExtern/cuda.h:4,
                 from /opencvsharp/src/OpenCvSharpExtern/cuda.cpp:2:
/usr/local/include/opencv2/core/types_c.h:946:16: note: candidate: CvPoint::CvPoint()
 typedef struct CvPoint
                ^~~~~~~
/usr/local/include/opencv2/core/types_c.h:946:16: note:   candidate expects 0 arguments, 1 provided
/usr/local/include/opencv2/core/types_c.h:946:16: note: candidate: constexpr CvPoint::CvPoint(const CvPoint&)
/usr/local/include/opencv2/core/types_c.h:946:16: note:   no known conversion for argument 1 from 'cv::Point {aka cv::Point_<int>}' to 'const CvPoint&'
/usr/local/include/opencv2/core/types_c.h:946:16: note: candidate: constexpr CvPoint::CvPoint(CvPoint&&)
/usr/local/include/opencv2/core/types_c.h:946:16: note:   no known conversion for argument 1 from 'cv::Point {aka cv::Point_<int>}' to 'CvPoint&&'
OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/build.make:158: recipe for target 'OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/cuda.cpp.o' failed
make[2]: *** [OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/cuda.cpp.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/all' failed
make[1]: *** [OpenCvSharpExtern/CMakeFiles/OpenCvSharpExtern.dir/all] Error 2
make: *** [all] Error 2
Makefile:129: recipe for target 'all' failed
The command '/bin/sh -c cmake ../src && make -j 4 && make install' returned a non-zero code: 2
##[error]The command '/bin/sh -c cmake ../src && make -j 4 && make install' returned a non-zero code: 2

Build steps:

...

# Install OpenCVSharp
WORKDIR /
RUN git clone --single-branch -b 3.4 https://github.com/shimat/opencvsharp.git
WORKDIR /opencvsharp/make
RUN cmake ../src && make -j 4 && make install
RUN cp /opencvsharp/make/OpenCvSharpExtern/libOpenCvSharpExtern.so /usr/lib

WORKDIR /
RUN rm -rf opencvsharp

cc @shimat

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
turowiczcommented, Dec 17, 2019

I’m running a build with opencv 3.4.4 and opencvsharp at 3.4.4.20181118

Will keep you posted

0reactions
turowiczcommented, Dec 17, 2019

We will be migrating to OpenCV 4.x in near future. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blender 3.6 Alpha 3.6.0-usd.200 branches installation error ...
Hello! I can't seem to install the newer USD Branch 3.6.0 which has the error below Error occurred during installation of Blender 3.6...
Read more >
Rosetta 3.4 build error with
I've been trying to build Rosetta 3.4 on Ubuntu 10.04. I've tried compiling with both gcc 4.4.3 and 4.3.4. Both give me the...
Read more >
[LLVMdev] 3.4 branch gcc 4.9 build error
Using gcc 4.9 to build the llvm 3.4 branch fails with the following error: llvm[1]: Compiling APFloat.cpp for Release build
Read more >
RRF 3.4.2 RC3+ SBC apt upgrade error
I've been on the unstable branch for eternity and haven't had any issues until trying to upgrade to RC3+. "The following packages have...
Read more >
git push local branch with same name as remote tag
In my case, I had a tag with the same name of the branch. ... git push origin master error: src refspec master...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found