First time here? Check out the FAQ!

Ask Your Question
0

[Solved] Linking on Mac OSX

asked Jun 26 '15

updated Sep 27 '15

When I try to link the program on Mac OSX I obtain the error Undefined symbol for architecture x86_64: "cv::CascadeClassifier::detectMultiscale..."

On Linu I haven't got any error.

Can someone suggest me the solution?

Preview: (hide)

Comments

None can help me?

Denis Gottardello gravatar imageDenis Gottardello (Sep 20 '15)edit

2 answers

Sort by » oldest newest most voted
0

answered Sep 21 '15

JeanPaulBarddal gravatar image

I'm not sure how you've installed and added opencv to your project. But I've followed what's stated in here: [youtube - opencv + xcode] (https://www.youtube.com/watch?v=XJeP1...) and everything turned out ok.

Cheers

Preview: (hide)

Comments

I'm using Qt instead of xCode. The problem happens only if I have to use the function "cv::CascadeClassifier::detectMultiscale" Are you using that function with xCode? Can you try to use it only to verify if you have a link problem as I?

Denis Gottardello gravatar imageDenis Gottardello (Sep 23 '15)edit

I used it earlier with a cascade classifier I had. It worked fine. Can you detail a little better the error obtained?

JeanPaulBarddal gravatar imageJeanPaulBarddal (Sep 23 '15)edit

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 ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Denis Gottardello gravatar imageDenis Gottardello (Sep 24 '15)edit
0

answered Sep 24 '15

updated Sep 27 '15

Solved by using QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.10

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Jun 26 '15

Seen: 1,075 times

Last updated: Sep 27 '15