使用opencv 4.0.1编译时出错

时间:2019-03-04 06:02:19

标签: c++ opencv image-processing

我正在尝试使用opencv 4.0.1编译代码,现在突然出现错误,


"/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/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:264:31: Candidate function not viable: requires 0 arguments, but 1 was provided

但是错误在opencv文件中。该怎么办?

0 个答案:

没有答案