Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 22/11/2008, à 13:45

samplaid

installation opencv1.0.0

Bonjour, 

J'ai installé opencv1.0.0.tar.gz et j'ai effectué les opérations suivantes :
- tar xvf opencv1.0.0.tar.gz
- cd opencv1.0.0
- ./configure
- make
- make install

J'ai compilé  un programme, pas de problème, mais lorsque je l'ai exécuté j'ai eu cette erreur :
OpenCV ERROR: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support)


Sur un forum, j'ai lu qu'il fallait installé libgtk2.0-dev avant, ce que j'ai fait.

entre tps j'ai exécuté :
- sudo apt-get install libcv-dev libcv1 libcvaux-dev libcvaux1 libhighgui-dev libhighgui1 opencv-doc python-opencv

mais lorsque je fait un make (apres ./configure), j'ai ceci comme erreur : 

cvcap_ffmpeg.cpp:218: warning: 'int img_convert(AVPicture*, int, const AVPicture*, int, int, int)' is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2463)
cvcap_ffmpeg.cpp:222: warning: 'int img_convert(AVPicture*, int, const AVPicture*, int, int, int)' is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2463)
cvcap_ffmpeg.cpp: In function 'int cvWriteFrame(CvVideoWriter*, const IplImage*)':
cvcap_ffmpeg.cpp:716: warning: 'int img_convert(AVPicture*, int, const AVPicture*, int, int, int)' is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2463)
cvcap_ffmpeg.cpp:718: warning: 'int img_convert(AVPicture*, int, const AVPicture*, int, int, int)' is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2463)
cvcap_ffmpeg.cpp: In function 'void cvReleaseVideoWriter(CvVideoWriter**)':
cvcap_ffmpeg.cpp:777: warning: comparison between signed and unsigned integer expressions
cvcap_ffmpeg.cpp:784: error: cannot convert 'ByteIOContext**' to 'ByteIOContext*' for argument '1' to 'int url_fclose(ByteIOContext*)'
make[3]: *** [cvcap_ffmpeg.lo] Erreur 1
make[3]: quittant le répertoire « /home/sam/Cours/Tni/opencv-1.0.0/otherlibs/highgui »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/sam/Cours/Tni/opencv-1.0.0/otherlibs »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/sam/Cours/Tni/opencv-1.0.0 »
make: *** [all] Erreur 2

Que faire svp?

#2 Le 22/11/2008, à 13:46

samplaid

Re : installation opencv1.0.0

samplaid a écrit :

Bonjour, 

J'ai installé opencv1.0.0.tar.gz et j'ai effectué les opérations suivantes :
- tar xvf opencv1.0.0.tar.gz
- cd opencv1.0.0
- ./configure
- make
- make install

J'ai compilé  un programme, pas de problème, mais lorsque je l'ai exécuté j'ai eu cette erreur :
OpenCV ERROR: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support)


Sur un forum, j'ai lu qu'il fallait installé libgtk2.0-dev avant, ce que j'ai fait.

entre tps j'ai exécuté :
- sudo apt-get install libcv-dev libcv1 libcvaux-dev libcvaux1 libhighgui-dev libhighgui1 opencv-doc python-opencv

mais lorsque je fait un make de opencv1.0.0 (apres ./configure), j'ai ceci comme erreur : 

cvcap_ffmpeg.cpp:218: warning: 'int img_convert(AVPicture*, int, const AVPicture*, int, int, int)' is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2463)
cvcap_ffmpeg.cpp:222: warning: 'int img_convert(AVPicture*, int, const AVPicture*, int, int, int)' is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2463)
cvcap_ffmpeg.cpp: In function 'int cvWriteFrame(CvVideoWriter*, const IplImage*)':
cvcap_ffmpeg.cpp:716: warning: 'int img_convert(AVPicture*, int, const AVPicture*, int, int, int)' is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2463)
cvcap_ffmpeg.cpp:718: warning: 'int img_convert(AVPicture*, int, const AVPicture*, int, int, int)' is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2463)
cvcap_ffmpeg.cpp: In function 'void cvReleaseVideoWriter(CvVideoWriter**)':
cvcap_ffmpeg.cpp:777: warning: comparison between signed and unsigned integer expressions
cvcap_ffmpeg.cpp:784: error: cannot convert 'ByteIOContext**' to 'ByteIOContext*' for argument '1' to 'int url_fclose(ByteIOContext*)'
make[3]: *** [cvcap_ffmpeg.lo] Erreur 1
make[3]: quittant le répertoire « /home/sam/Cours/Tni/opencv-1.0.0/otherlibs/highgui »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/sam/Cours/Tni/opencv-1.0.0/otherlibs »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/sam/Cours/Tni/opencv-1.0.0 »
make: *** [all] Erreur 2

Que faire svp?