Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV 2.4.3 build on MacOS 10.6.8 fails

Hi, I'm trying to build OpenCV on a Mac following the standard

mkdir build
cd build
cmake -G "Unix Makefiles" ..
make -j8
make install

Cmake runs fine, but reports only cocoa as found GUI (although QT is installed as well). Then make fails at

Linking CXX shared library ../../lib/libopencv_highgui.dylib
[ 46%] Built target opencv_photo
[ 47%] Built target opencv_video
Undefined symbols:
  "_av_get_channel_layout_string", referenced from:
      _avcodec_string in libavcodec.a(utils.o)
      _avcodec_get_channel_layout_string in libavcodec.a(audioconvert.o)

and a lot of other undefined symbols like


and so on. What am I doing wrong? Does anyone recognize those symbols? In which library should they be defined?

Thanks, Chaos