0

Today I have upgrade from osx 10.8 to 10.9, now I'm trying to compile opencv master from github but I have some issues

[ 21%] Built target IlmImf
Linking CXX shared library ../../lib/libopencv_core.dylib
Undefined symbols for architecture x86_64:
  "___sincos_stret", referenced from:
      cv::RotatedRect::points(cv::Point_<float>*) const in matrix.cpp.o
      cv::RotatedRect::boundingRect() const in matrix.cpp.o
ld: symbol(s) not found for architecture x86_64

Can anyone give me an hand?

Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
user2913322
  • 9
  • 1
  • 3

4 Answers4

2

You need to update to Xcode 5.0.1 through the App Store and download the Command-line Tools for Mavericks from the developer site: https://developer.apple.com/downloads/index.action. Finally, make sure you clean up your cmake cache.

Navid
  • 384
  • 2
  • 7
1

Use g++ to compile your c++ code instead of gcc. This actually solved my similar issue.

0

I solved this by using the -mmacosx-version-min=10.8 option when compiling with g++. It might not be a permanent solution, but at least my code compiles again.

  • Please try to avoid posting [exact duplicate answers](http://stackoverflow.com/a/19662430/474189). If you think the question is a duplicate (which it seems to be), flag it as such. – Duncan Jones Oct 29 '13 at 16:46
0

I met the above error too. After I install the command line tool and cmake and make again, above error disappears.