Error while compiling my code using opencv 4.0.1

asked 2019-03-04 03:56:04 -0500

muraad gravatar image

updated 2019-03-04 03:57:55 -0500

berak gravatar image

I am trying to compile code with opencv 4.0.1, now suddenly errors come up,

"/usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:45:40: Declaration of constexpr static data member 'check' requires an initializer"

/usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:49:22: No matching function for call to object of type 'const std::true_type' (aka 'const integral_constant<bool, (true)>')

/usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:61:62: In instantiation of template class 'cv::sfinae::has_parenthesis_operator<cv::DefaultDeleter<cv::detail::PlaneWarper>, void, cv::detail::PlaneWarper *>' requested here

/usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp:138:21: During template argument deduction for class template partial specialization 'has_custom_delete<type-parameter-0-0, typename enable_if<sfinae::has_parenthesis_operator<DefaultDeleter<T>, void, T *>::value, void>::type>' [with T = cv::detail::PlaneWarper]

/usr/local/include/opencv4/opencv2/stitching/warpers.hpp:137:80: In instantiation of function template specialization 'cv::makePtr<cv::detail::PlaneWarper, float>' requested here

/Applications/ Candidate function not viable: requires 0 arguments, but 1 was provided'

Seems like something to do with compiler? Any help?

I am using LLVM 8.1 and uses libc++(LLVM C++ standard library with c++ 11 support) as c++ standard library .

edit retag flag offensive close merge delete