Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Link error for only CascadeClassifier under 2.4.3 for iOS

I've been trying to get my project CVFunhouse to build under OpenCV 2.4.3. I'm using the drop-in opencv.framework downloaded from the opencv.org home page, replacing the older version of the framework.

I've already dealt with the libstdc++ to libc++ change.

Now I'm getting link errors for a single module, CascadeClassifier.

Undefined symbols for architecture armv7: "cv::CascadeClassifier::detectMultiScale(cv::Mat const&, std::vector<cv::rect_<int>, std::allocator<cv::rect_<int> > >&, double, int, int, cv::Size_<int>, cv::Size_<int>)", referenced from: -[CVFFaceDetect processIplImage:] in CVFFaceDetect.o "cv::CascadeClassifier::load(std::string const&)", referenced from: -[CVFFaceDetect processIplImage:] in CVFFaceDetect.o

This is weird because CVFunhouse uses lots of other OpenCV modules, and the code using those modules compiles fine. Has something changed about CascadeClassifier in 2.4.3?

The complete source for CVFunhouse can be found at:

https://github.com/jeradesign/CVFunhouse

in case that helps.

Link error for only CascadeClassifier under 2.4.3 for iOS

I've been trying to get my project CVFunhouse to build under OpenCV 2.4.3. I'm using the drop-in opencv.framework downloaded from the opencv.org home page, replacing the older version of the framework.

I've already dealt with the libstdc++ to libc++ change.

Now I'm getting link errors for a single module, CascadeClassifier.

Undefined symbols for architecture armv7: "cv::CascadeClassifier::detectMultiScale(cv::Mat const&, std::vector<cv::rect_<int>, std::allocator<cv::rect_<int> > >&, double, int, int, cv::Size_<int>, cv::Size_<int>)", referenced from: -[CVFFaceDetect processIplImage:] in CVFFaceDetect.o "cv::CascadeClassifier::load(std::string const&)", referenced from: -[CVFFaceDetect processIplImage:] in CVFFaceDetect.o

This is weird because CVFunhouse uses lots of other OpenCV modules, and all the code using those other OpenCV modules compiles links fine. Has something changed about CascadeClassifier in 2.4.3?

The complete source for CVFunhouse can be found at:

https://github.com/jeradesign/CVFunhouse

in case that helps.