[FFmpeg-user] Problem building with OpenCV support

Misha Penkov misha.penkov at gmail.com
Wed Jun 27 06:07:30 CEST 2012


Hi,

I wanted to use the ocv filters
(http://ffmpeg.org/libavfilter.html#ocv), so I tried:

mpenkov at misha-desktop:~/git-ext/ffmpeg$ git pull origin
Already up-to-date.
mpenkov at misha-desktop:~/git-ext/ffmpeg$ ./configure --enable-gpl
--enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libtheora --enable-libvorbis
--enable-libx264 --enable-nonfree --enable-postproc --enable-version3
--enable-x11grab --enable-libvpx --enable-shared --enable-pic
--enable-libopencv
ERROR: opencv not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.

I'm attaching the full config.log.  I had a look at it -- it's
appearing to have problems linking with OpenCV code.  I don't have any
problems compiling OpenCV apps from the command line by myself:

mpenkov at misha-desktop:~/Desktop$ gcc `pkg-config --cflags --libs
opencv` imshow.c -o imshow.out
mpenkov at misha-desktop:~/Desktop$ ./imshow.out Lenna.png

will show Lenna.png correctly.

For the record, here's what pkg-config outputs:

mpenkov at misha-desktop:~/Desktop$ pkg-config --cflags --libs opencv
-I/usr/local/include/opencv -I/usr/local/include
/usr/local/lib/libopencv_calib3d.so
/usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so
/usr/local/lib/libopencv_features2d.so
/usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so
/usr/local/lib/libopencv_highgui.so
/usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so
/usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so
/usr/local/lib/libopencv_objdetect.so
/usr/local/lib/libopencv_photo.so
/usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_ts.so
/usr/local/lib/libopencv_video.so
/usr/local/lib/libopencv_videostab.so

What could be the problem, and how can I fix it?

Cheers,
Misha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 166759 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20120627/4d808a8b/attachment.obj>


More information about the ffmpeg-user mailing list