How to install OpenCV-2.0.0 with ffmpeg

hanam
Hello!
I'm trying to install opencv-2.0.0 with ffmpeg for writing and reading
video for mini2440. 
I'm successful in compiling ffmpeg for mini2440, but when I configure
opencv-2.0.0, I always receive a result in config.log that: 

...warning: libavutil.so.49, needed by
<path-to-lib-ffmpeg>/lib/libavcodec.so, not found (try using -rpath or
-rpath-link)

This is configure for OpenCV:

./configure --prefix=/home/mini2440/armOpenCV --host=arm-linux
CPPFLAGS=-I/home/ffmpeg/include LDFLAGS=-L/home/ffmpeg/lib --with-ffmpeg
--without-quicktime CFLAGS=-I/home/ffmpeg/include

And the result:
    Video I/O ---------------------
    Use QuickTime / Mac OS X: no
    Use xine:                 no
    Use gstreamer:            no
    Use ffmpeg:               no  <=== ???
    Use dc1394 & raw1394:     no
    Use dc1394_v2 & raw1394:  no
    Use v4l:                  yes
    Use v4l2:                 yes
    Use unicap:               no

I can't solve this problem! So anyone can help me?
Thank you so much!

Legath
opencv have use cmake. where are you did found configure?

Anvesh Manne
Hi Hanam,

I also get the same error when i run configure(ffmpeg=no). Were you able to
solve the issue?

kramer
what are the commande you used to compile ffmpeg