Compile opencv2.3.1 in ubuntu 11.10
Here is the tutorial I followed: http://thebitbangtheory.wordpress.com/2011/10/23/how-to-install-opencv-2-3-1-in-ubuntu-11-10-oneiric-ocelot-with -python-support /
I think the problem is ffmpeg, the version I was using is 0.8.10 and I installed it in / usr and enabled sharing, but when I ran opencv the result was filled in
./../lib/libopencv_highgui.so.2.3.1: undefined reference to
av_codec_get_id' ../../lib/libopencv_highgui.so.2.3.1: undefined reference to
av_seek_frame '
../../lib/libopencv_highgui.so.2.3.1: undefined reference to `avpicture_get_size
source to share
Thanks to @karlphillip and @ Appleman1234 I finally got my problem resolved. The switch removes the / release directory containing the cmake information and recompiles from scratch, i.e. Mkdir./release, cd./release, cmake, make and make install. BTW, ffmpeg requires 0.8+ and mine requires 0.8.1.
source to share