Bonjour tout le monde.

Je viens d'installer fedora14 sur une nouvelle machine et j'ai aussi tente d'installer opencv 2.1.0 . le cmake passe sans problemes mais au niveau du make et plus precisement a 63% j'ai des erreurs visiblement c'est un probleme avec ffmpeg. celui installe est: ffmpeg-devel-0.6-4.20100704svn.fc14.i686

pour evite les problemes de fichiers .h introvale j'ai fait cp */*.h /usr/include/ffmpeg pour obtenire tous les .h dans /usr/include/ffmpeg et aussi dans /usr/include/ffmpeg/lib*/

plus bas voici les erreures en question:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
/src/highgui/cvcap_ffmpeg.cpp:1233:31: warning: `AVFormatContext*
av_alloc_format_context()' is deprecated (declared at
/usr/include/ffmpeg/libavformat/avformat.h:951)
make[2]: *** [src/highgui/CMakeFiles/highgui.dir/cvcap_ffmpeg.o] Error 1
make[1]: *** [src/highgui/CMakeFiles/highgui.dir/all] Error 2
make: *** [all] Error 2

j'ai aussi essayer de passer a opencv2.0 puisque ca marche sur une autr machine sous fedora 13 avec la version : ffmpeg-devel-0.6-3.fc13.x64
installee et la j'ai pas ffmpeg a l'installation voici les avertissement avec ./configure
./configure --prefix=/home/Intel/OpenCV --enable-shared=yes --enable-apps --with-ffmpeg --with-gnu-ld --with-x --without-quicktime --with-ts CXXFLAGS=-fno-strict-aliasing CFLAGS="-I/usr/include/ffmpeg" CPPFLAGS="-I/usr/include/ffmpeg"

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
checking ffmpeg/avcodec.h usability... no 
checking ffmpeg/avcodec.h presence... yes
configure: WARNING: ffmpeg/avcodec.h: present but cannot be compiled
configure: WARNING: ffmpeg/avcodec.h:     check for missing prerequisite
headers?
configure: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation
configure: WARNING: ffmpeg/avcodec.h:     section "Present But Cannot Be
Compiled"
configure: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result
checking for ffmpeg/avcodec.h... no
checking libavcodec/avcodec.h usability... no
checking libavcodec/avcodec.h presence... yes
configure: WARNING: libavcodec/avcodec.h: present but cannot be compiled
configure: WARNING: libavcodec/avcodec.h:     check for missing prerequisite
headers?
configure: WARNING: libavcodec/avcodec.h: see the Autoconf documentation
configure: WARNING: libavcodec/avcodec.h:     section "Present But Cannot Be
Compiled"
configure: WARNING: libavcodec/avcodec.h: proceeding with the compiler's result
checking for libavcodec/avcodec.h... no
checking ffmpeg/avformat.h usability... no
checking ffmpeg/avformat.h presence... yes
configure: WARNING: ffmpeg/avformat.h: present but cannot be compiled
configure: WARNING: ffmpeg/avformat.h:     check for missing prerequisite
headers?
configure: WARNING: ffmpeg/avformat.h: see the Autoconf documentation
configure: WARNING: ffmpeg/avformat.h:     section "Present But Cannot Be
Compiled"
configure: WARNING: ffmpeg/avformat.h: proceeding with the compiler's result
checking for ffmpeg/avformat.h... no
checking libavformat/avformat.h usability... no
checking libavformat/avformat.h presence... yes
configure: WARNING: libavformat/avformat.h: present but cannot be compiled
configure: WARNING: libavformat/avformat.h:     check for missing prerequisite
headers?
configure: WARNING: libavformat/avformat.h: see the Autoconf documentation
configure: WARNING: libavformat/avformat.h:     section "Present But Cannot Be
Compiled"
configure: WARNING: libavformat/avformat.h: proceeding with the compiler's
result
je n'ai donc pas ffmpeg quand j'installe opencv2.0 et la compilation echoue avec 2.1.
quelqu'un a t il une solution au probleme merci d'avance.

je pense que le probleme viens de ffmpeg et que si une solution marche avec un cas ca marchera aussi avec un autre. merci de votre aide.