1 | initial version |
helo...
i'm having the same Undefined symbols for architecture x86_64 problem. like this:
Undefined symbols for architecture x86_64:
"cv::fastMalloc(unsigned long)", referenced from:
cv::Ptr<_IplImage>::Ptr(_IplImage*) in main.o
"cv::Mat::deallocate()", referenced from:
cv::Mat::release() in main.o
"cv::Mat::Mat(_IplImage const*, bool)", referenced from:
_main in main.o
"cv::Ptr<_IplImage>::delete_obj()", referenced from:
cv::Ptr<_IplImage>::release() in main.o
"cv::fastFree(void*)", referenced from:
cv::Ptr<_IplImage>::release() in main.o
cv::Mat::~Mat() in main.o
"_cvLoadImage", referenced from:
_main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
this i get when trying to compile an example opencv2 code from the 2.4.5 page. just installed it via cmake on os x 10.8.3. was trying xcode by setting up the build settings: using stdlib and correct include and lib paths. linker is complaining about - apparently according to the answer here above - a 32 bit system. but it's wrong:
$ file libopencv_photo.2.4.5.dylib
libopencv_photo.2.4.5.dylib: Mach-O 64-bit dynamically linked shared library x86_64
i'm really getting tired of trying to compile a simple opencv example on os x with xcode. or without xcode. i built and rebuilt everything a few times. had 2.4.2 and now 2.4.5 and always the same crap: Undefined symbols for architecture x86_64
i'd appreciate some help with this. thanks....