opencv cmake没有';找不到最新的ffmpeg库

opencv cmake没有';找不到最新的ffmpeg库,opencv,linker,ffmpeg,cmake,Opencv,Linker,Ffmpeg,Cmake,这里是ffmpeg命令的输出: ffmpeg version git-2014-01-20-4014b40 Copyright (c) 2000-2014 the FFmpeg developers built on Jan 20 2014 14:18:13 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9) configuration: --extra-libs=-ldl --enable-gpl --enable-libass --enable-libf

这里是
ffmpeg
命令的输出:

ffmpeg version git-2014-01-20-4014b40 Copyright (c) 2000-2014 the FFmpeg developers
built on Jan 20 2014 14:18:13 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
configuration: --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --    enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --  enable-libx264 --enable-nonfree --enable-x11grab
libavutil      52. 63.100 / 52. 63.100
libavcodec     55. 48.101 / 55. 48.101
libavformat    55. 25.100 / 55. 25.100
libavdevice    55.  5.102 / 55.  5.102
libavfilter     4.  1.100 /  4.  1.100
libswscale      2.  5.101 /  2.  5.101
libswresample   0. 17.104 /  0. 17.104
libpostproc    52.  3.100 / 52.  3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
为Opencv 2.4.8安装运行CmakeLists.txt时:

cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_NEW_PYTHON_SUPPORT=ON -DWITH_TBB=ON -DWITH_V4L=ON -DWITH_QT=ON -DWITH_OPENGL=ON -DWITH_EIGEN=ON -DWITH_OPENEXR=ON ..
我得到:

--   Video I/O:
--     DC1394 1.x:                  NO
--     DC1394 2.x:                  YES (ver 2.2.1)
--     FFMPEG:                      YES
--       codec:                     YES (ver 53.35.0)
--       format:                    YES (ver 53.21.1)
--       util:                      YES (ver 51.22.1)
--       swscale:                   YES (ver 2.1.0)
--       gentoo-style:              YES
--     GStreamer:                   
--       base:                      YES (ver 0.10.36)
--       app:                       YES (ver 0.10.36)
--       video:                     YES (ver 0.10.36)

我的问题:为什么opencv没有链接到最新的libavutil,libavcodec,等等。

下面是答案:在再次运行
CMakeCache
命令之前,千万不要忘记
rm CMakeCache.txt

下面是答案:在再次运行
cmake
命令之前,千万不要忘记
rm CMakeCache.txt

下面是答案:在再次运行之前,千万不要忘记
rm CMakeCache.txt
cmake
命令。

答案如下:在再次运行
cmake
命令之前,不要忘记
rm CMakeCache.txt