Ask Your Question

Revision history [back]

Why mac cannot build opencv file ?

Hi there,

I have mac El Capitan 10.11.2. I installed opencv 2.4.11 I follow many tutorials and non of them working. When I build my program like this cmake . make It generate the following errors. Can anybody guid me with a lot of thanks. sss:NewNetwork salemalqahtani$ make [ 50%] Linking CXX executable NewNetwork Undefined symbols for architecture x86_64: "cv::CascadeClassifier::detectMultiScale(cv::_InputArray const&, std::__1::vector<cv::rect_<int>, std::__1::allocator<cv::rect_<int> > >&, double, int, int, cv::Size_<int>, cv::Size_<int>)", referenced from: input_option() in server.cpp.o thread_comm(void) in server.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [NewNetwork] Error 1 make[1]: [CMakeFiles/NewNetwork.dir/all] Error 2 make: ** [all] Error 2