2013-01-25 83 views
3

我一直在嘗試在最近版本的openCV(2.4.3)上運行make,但我一直有問題。我創建了一個OpenCV的目錄下生成文件夾,然後運行以下命令:openCV使錯誤

cmake -G "Unix Makefiles" .. 
make -js 

我收到以下錯誤:

Linking CXX shared library ../../lib/libopencv_highgui.dylib 
[ 35%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_gaussmix.cpp.o 
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: 
    _modplug_read_packet in libavformat.a(libmodplug.o) 
    "_ModPlug_GetCurrentTempo", referenced from: 
    _modplug_read_packet in libavformat.a(libmodplug.o) 
    "_ModPlug_GetLength", referenced from: 
    _modplug_read_header in libavformat.a(libmodplug.o) 
    "_ModPlug_GetMessage", referenced from: 
    _modplug_read_header in libavformat.a(libmodplug.o) 
    "_ModPlug_GetName", referenced from: 
    _modplug_read_header in libavformat.a(libmodplug.o) 

還有更精彩的,但該消息的其餘部分是類似於。 它看起來像鏈接器與highgui很難。

嘗試使用的XCode

任何想法來運行代碼,當我收到的時候我(奇蹟般地)以前安裝的OpenCV(我刪除了以前的安裝)類似的錯誤?

回答

3

我不知道這個問題的原因。但是,我發現了一種適用於我的情況的解決方法。我禁用ffmpeg,它似乎編譯好。我清理了我的build目錄,並用選項-DWITH_FFMPEG = OFF運行cmake

+0

圖靈ffmpeg關閉的後果是什麼? – CroCo