Unable to link a program in Mac OSX if using cv::CascadeClassifier::detectMultiScale (Bug #4451)


Added by Denis Gottardello over 9 years ago. Updated over 9 years ago.


Status:New Start date:2015-06-30
Priority:Blocker Due date:
Assignee:- % Done:

0%

Category:objdetect
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Mac OSX
Difficulty: HW Platform:x64
Pull request:

Description

The error is:
Undefined symbols for architecture x86_64:
"cv::CascadeClassifier::detectMultiScale(cv::_InputArray const&, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >&, double, int, int, cv::Size_<int>, cv::Size_<int>)", referenced from:
QThMatchPeople::run() in qthmatchpeople.o
QThProcessImage::DetectObjects(cv::Mat, cv::CascadeClassifier&, cv::CascadeClassifier&, QString) in qthprocessimage.o
"cv::imread(cv::String const&, int)", referenced from:
QFMainForm::on_QPBMediaStart_clicked() in qfmainform.o
QThMatchPeople::run() in qthmatchpeople.o
Training() in qthmatchlicenseplates.o
COCR::Training() in cocr.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

OpenCv build with

cmake -DWITH_FFMPEG=OFF -DOPENCV_EXTRA_MODULES_PATH=modules/opencv_contrib-master/modules .

I have tried to link all libraries without resolve.

In linux all works well.


History

Updated by Maksim Shabunin over 9 years ago

Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/5051

Also available in: Atom PDF