OpenCV for iOS framework Build Error

asked 2014-12-25 04:21:34 -0600

icqliu gravatar image

Hi all, I'm use OpenCV for iOS framework which version is 2.4.10. In Xcode, "C++ Standard Libraray" select "libstdc++(GNU C++ Standard Libraray)"; Our Project is just Old, we have many third library so we can not select "libc++(llvm C++ Standard Libraray with c++ 11 supoort)" but Build Error, the error is like this:

(null): "std::__1::__vector_base_common<true>::__throw_length_error() const", referenced from:

(null): Cv::medianBlur(cv::_InputArray const&, cv::_OutputArray const&, int) in opencv2(smooth.o)

(null): Cv::bilateralFilter(cv::_InputArray const&, cv::_OutputArray const&, int, double, double, int) in opencv2(smooth.o)

(null): Std::__1::vector<double, std::__1::allocator<double> >::__append(unsigned long) in opencv2(smooth.o)

(null): Std::__1::vector<int, std::__1::allocator<int> >::__append(unsigned long) in opencv2(smooth.o)

(null): Std::__1::vector<float, std::__1::allocator<float> >::__append(unsigned long) in opencv2(smooth.o)

(null): Cv::kmeans(cv::_InputArray const&, int, cv::_OutputArray const&, cv::TermCriteria, int, int, cv::_OutputArray const&) in opencv2(matrix.o)

(null): Cv::SparseMat::resizeHashTab(unsigned long) in opencv2(matrix.o)

Anyone has any idea?

edit retag flag offensive close merge delete