Updated by Andrey Kamaev almost 12 years ago

Hello,

There's a build error when using CMake on OSX 10.8.3, with GPU and FFMPEG, during the compilation of OpenCV 2.4.4a

Here is the error message during 'make'.

<pre>
> Linking CXX shared library ../../lib/libopencv_gpu.dylib
> ld: library not found for -lavcodec
> collect2: ld returned 1 exit status
> make[2]: *** [lib/libopencv_gpu.2.4.4.dylib] Error 1
> make[1]: *** [modules/gpu/CMakeFiles/opencv_gpu.dir/all] Error 2
> make: *** [all] Error 2
</pre>


Below is the CMake Configuration.

Any suggestions on what I may have done wrong?

<pre>
> Detected version of GNU GCC: 42 (402)
> checking for module 'libdc1394-2'
> package 'libdc1394-2' not found
> checking for module 'libdc1394'
> package 'libdc1394' not found
> checking for module 'libv4l1'
> package 'libv4l1' not found
> Looking for linux/videodev.h
> Looking for linux/videodev.h - not found
> Looking for linux/videodev2.h
> Looking for linux/videodev2.h - not found
> Looking for sys/videoio.h
> Looking for sys/videoio.h - not found
> Looking for libavformat/avformat.h
> Looking for libavformat/avformat.h - not found
> Looking for ffmpeg/avformat.h
> Looking for ffmpeg/avformat.h - not found
> CUDA detected: 5.0
> CUDA NVCC target flags: -gencode;arch=compute_11,code=sm_11;-gencode;arch=compute_12,code=sm_12;-gencode;arch=compute_13,code=sm_13;-gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_20,code=compute_20;-gencode;arch=compute_30,code=compute_30
> Found apache ant 1.8.2: /usr/bin/ant


>
>
General configuration for OpenCV 2.4.4 =====================================
> Version control: unknown


>
>
Platform:
> Host: Darwin 12.3.0 i386
> CMake: 2.8.10.2
> CMake generator: Unix Makefiles
> CMake build tool: /opt/local/bin/gmake
> Configuration: Release


>
>
C/C++:
> Built as dynamic libs?: YES
> C++ Compiler: /usr/bin/g++ (ver 4.2.1)
> C++ flags (Release): -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -fdiagnostics-show-option -pthread -fomit-frame-pointer -msse -msse2 -msse3 -O3 -DNDEBUG -DNDEBUG
> C++ flags (Debug): -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -fdiagnostics-show-option -pthread -fomit-frame-pointer -msse -msse2 -msse3 -g -O0 -DDEBUG -D_DEBUG -ggdb3
> C Compiler: /usr/bin/gcc
> C flags (Release): -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -pthread -fomit-frame-pointer -msse -msse2 -msse3 -O3 -DNDEBUG -DNDEBUG
> C flags (Debug): -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -pthread -fomit-frame-pointer -msse -msse2 -msse3 -g -O0 -DDEBUG -D_DEBUG -ggdb3
> Linker flags (Release):

>
Linker flags (Debug):

>
Precompiled headers: NO


>
>
OpenCV modules:
> To be built: core imgproc flann highgui features2d calib3d ml video objdetect contrib nonfree photo legacy gpu java python stitching ts videostab
> Disabled: world
> Disabled by dependency: -
> Unavailable: androidcamera ocl


>
>
GUI:

>
QT 4.x: NO
> Cocoa: YES
> OpenGL support: NO


>
>
Media I/O:

>
ZLib: build (ver 1.2.7)
> JPEG: build (ver 62)
> PNG: build (ver 1.5.12)
> TIFF: build (ver 42 - 4.0.2)
> JPEG 2000: build (ver 1.900.1)
> OpenEXR: build (ver 1.7.1)


>
>
Video I/O:
> DC1394 1.x: NO
> DC1394 2.x: NO
> FFMPEG: YES
> codec: YES (ver Unknown)
> format: YES (ver Unknown)
> util: YES (ver Unknown)
> swscale: YES (ver Unknown)
> gentoo-style: YES
> OpenNI: NO
> OpenNI PrimeSensor Modules: NO
> PvAPI: NO
> GigEVisionSDK: NO
> QuickTime: NO
> QTKit: YES
> V4L/V4L2: NO/NO


>
>
Other third-party libraries:
> Use IPP: NO
> Use Eigen: NO
> Use TBB: NO
> Use OpenMP: NO
> Use GCD YES
> Use Concurrency NO
> Use C=: NO
> Use Cuda: YES (ver 5.0)
> Use OpenCL: NO


>
>
NVIDIA CUDA
> Use CUFFT: YES
> Use CUBLAS: NO
> USE NVCUVID: NO
> NVIDIA GPU arch: 11 12 13 20 21 30
> NVIDIA PTX archs: 20 30
> Use fast math: NO


>
>
Python:
> Interpreter: /opt/local/bin/python2 (ver 2.7.3)
> Libraries: /usr/lib/libpython2.7.dylib (ver 2.7.3)
> numpy: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include (ver 1.7.0)
> packages path: lib/python2.7/site-packages


>
>
Java:
> ant: /usr/bin/ant (ver 1.8.2)
> JNI: /System/Library/Frameworks/JavaVM.framework/Headers /System/Library/Frameworks/JavaVM.framework/Headers /System/Library/Frameworks/JavaVM.framework/Headers
> Java tests: YES


>
>
Documentation:
> Build Documentation: NO
> Sphinx: NO
> PdfLaTeX compiler: NO


>
>
Tests and samples:
> Tests: YES
> Performance tests: YES
> C/C++ Examples: YES


>
>
Install path: /usr/local


>
>
cvconfig.h is in: /Users/Moddy/opencv/build
> -----------------------------------------------------------------


>
>
Configuring done
</pre>

Back