Ask Your Question

Revision history [back]

Error while compiling my code using opencv 4.0.1

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)&gt;')<="" p="">

/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'

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 .

click to hide/show revision 2
None

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

berak gravatar image

Error while compiling my code using opencv 4.0.1

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"

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)&gt;')<="" p=""> (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>, 'cv::sfinae::has_parenthesis_operator<cv::DefaultDeleter<cv::detail::PlaneWarper>, void, cv::detail::PlaneWarper *>' requested here

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="">, typename enable_if<sfinae::has_parenthesis_operator<DefaultDeleter<T>, void, T *>::value, void>::type>' [with T = cv::detail::PlaneWarper]

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="">' 'cv::makePtr<cv::detail::PlaneWarper, float>' requested here

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'

provided'

Seems like something to do with compiler? Any help? help?

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