opencv 2.4.3 os x

asked 2012-12-29 00:47:56 -0500

doddy gravatar image


i have installed opencv 2.4.3 from source on 10.6.5 os x intel machine. for the last 2 weeks have been trying to get any of the samples to compile without any success. all the headers are in /usr/local/include/opencv2 and all the libraries are in /usr/local/lib. the install was done using the usual procedure with cmake.

every time i'm trying something like:

machine$ gcc -Wall -I/usr/local/include -L/usr/local/lib stitching.cpp -o stich

i get a huge amount of errors starting with:

Undefined symbols: "std::__throw_length_error(char const)", referenced from: std::vector<cv::mat, std::allocator<cv::mat=""> >::_M_insert_aux(__gnu_cxx::__normal_iterator<cv::mat*, std::vector<cv::mat,="" std::allocator<cv::mat=""> > >, cv::Mat const&)in cc0XxWVA.o "operator delete(void)", referenced from: __gnu_cxx::new_allocator<cv::mat>::deallocate(cv::Mat, unsigned long)in cc0XxWVA.o __gnu_cxx::new_allocator<int>::deallocate(int, unsigned long)in cc0XxWVA.o ................. etc...

i can't find any reference to __throw_length_error - certainly not in the headers. getting a bit tired of poking around..

i 'd appreciate some help...


edit retag flag offensive close merge delete