Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV compilation issues on Mac OSX Mavericks

Hi,

I updated my computer and now OpenCV is no longer working on my OSX Mavericks.

I have a C++ algorithm, a CMakesList.txt and a picture on the folder. So, on the terminal I just navigate to the folder, type cmake . and then make, resulting on the following message:

Undefined symbols for architecture x86_64:
  "cv::imread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int)", referenced from:
      _main in histogramcomp.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]: *** [histogramcomp] Error 1
make[1]: *** [CMakeFiles/histogramcomp.dir/all] Error 2
make: *** [all] Error 2

I really tried a lot of things! I was using Homebrew, then updated but it didn't work, so uninstall everything and started with macports, but after everything installed it still didn't work!

What should I do to have this finally working?

Thank you!