Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos CMake与OpenCV Mac(小牛)_Macos_Opencv_Installation - Fatal编程技术网

Macos CMake与OpenCV Mac(小牛)

Macos CMake与OpenCV Mac(小牛),macos,opencv,installation,Macos,Opencv,Installation,我想在不使用Macports的情况下安装opencv。此外,我不希望文件位于local文件夹中。我所做的如下 cd opencv-2.4.8 mkdir _build _install cd _build cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=../_install .. make 我犯了以下错误 [ 34%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui

我想在不使用Macports的情况下安装opencv。此外,我不希望文件位于
local
文件夹中。我所做的如下

cd opencv-2.4.8
mkdir _build _install
cd _build
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=../_install ..
make 
我犯了以下错误

[ 34%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/bitstrm.cpp.o
Linking CXX shared library ../../lib/libopencv_highgui.dylib
Undefined symbols for architecture x86_64:
  "_ModPlug_GetCurrentOrder", referenced from:
      _modplug_read_packet in libavformat.a(libmodplug.o)
  "_ModPlug_GetCurrentPattern", referenced from:
      _modplug_read_packet in libavformat.a(libmodplug.o)
  "_ModPlug_GetCurrentRow", referenced from:
      _modplug_read_packet in libavformat.a(libmodplug.o)
  "_ModPlug_GetCurrentSpeed", referenced from:
最后呢

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]: *** [lib/libopencv_highgui.2.4.8.dylib] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
我的方法有什么问题

信息:

MacOSX10.9.3(OSXMavericks)

OpenCV-2.4.8


我已经为OSX小牛更新了命令行工具

如果不使用ffmpeg,请安装ffmpeg或在不使用ffmpeg的情况下构建opencv。 -D,且_FFMPEG=OFF