2014-04-12 11:02:48 -0600 | commented answer | CascadeClassifier strangely not linkin (my last post apparently did not work) you were right, I was using the v3.0 without knowing it, because of git... I donwload the 2.4 branch, re-compil and got still some problems but the above linking errors are gone ! thanks a lot ! (concerning cv_bgr2gray I included only imgproc and contrib... didn't get any problem with that...) cheers |
2014-04-12 06:08:15 -0600 | asked a question | CascadeClassifier strangely not linkin Hi there I tried to search via google and this forum for an equivalent problem, did not found... I'm trying to make a facedetector program using opencv and qt, using some tutorials code (I'm quite new to C++)... problem is with the methods of CascadeClassifier, apparently and for a strange reason, it's not linking correctly with the library here's the code : I get those unique debug errors : "undefined reference to `cv::CascadeClassifier::load(std::string const&)' "undefined reference to `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>)' Libraries included are : libopencv_core300d.dll.a libopencv_objdetect300d.dll.a libopencv_imgproc300d.dll.a libopencv_highgui300d.dll.a Strange thing is when I remove the libopencv_objdetec300d.dll.a library, I get more errors like : undefined reference to `cv::CascadeClassifier::CascadeClassifier()' ...and when I put this library again, I only, but still, get the errors described above... like the compiler finds the library for the CascadeClassifier class, but not for its methods!!! I guess I'm missing some basics, as I said I'm pretty new to C++ so I don't think it's a bug... Got stucked for 3 days now, so any help or idea would be veeerryyyy helpful !!! Thanks in advance ! Codeblocks 13.12 on win7 Qt Qt5.2.1.minGw48.openGL openCV 2.4.8 build via CMAKE in DEBUG mode MinGW32 |