problemas na instalacao o OpenCV2.1 no ubuntu11.04

1. problemas na instalacao o OpenCV2.1 no ubuntu11.04

daniel enos cavalcanti rodrigues de macedo
denosmacedo

(usa Outra)

Enviado em 12/06/2011 - 07:50h

Pessoal, apesar de ter encontrado em outros foruns o mesmo problemas que eu encontrei, nenhuma das solucoes sugeridas me serviu.

Olhem so o que acontencer quando eu dou um "make"

In file included from /usr/include/libavutil/avutil.h:81:0,
from /usr/include/libavcodec/avcodec.h:30,
from /usr/include/libavformat/avformat.h:56,
from /home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:97:
/usr/include/libavutil/common.h: In function ‘int32_t av_clipl_int32(int64_t)’:
/usr/include/libavutil/common.h:154:47: error: ‘UINT64_C’ was not declared in this scope
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp: In member function ‘virtual bool CvCapture_FFMPEG::grabFrame()’:
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:546:9: warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3452)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:548:54: warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3452)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp: In member function ‘virtual bool CvVideoWriter_FFMPEG::open(const char*, int, double, CvSize, bool)’:
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1210:8: warning: ‘AVOutputFormat* guess_format(const char*, const char*, const char*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:787)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1210:41: warning: ‘AVOutputFormat* guess_format(const char*, const char*, const char*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:787)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1233:7: warning: ‘AVFormatContext* av_alloc_format_context()’ is deprecated (declared at /usr/include/libavformat/avformat.h:947)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1233:31: warning: ‘AVFormatContext* av_alloc_format_context()’ is deprecated (declared at /usr/include/libavformat/avformat.h:947)
make[2]: ** [src/highgui/CMakeFiles/highgui.dir/cvcap_ffmpeg.o] Erro 1
make[1]: ** [src/highgui/CMakeFiles/highgui.dir/all] Erro 2
make: ** [all] Erro 2






Alguem pode me ajudar? ja nao tenho mais alternativas


  


2. ffmpeg

Rossano Huf
millemiglia

(usa Slackware)

Enviado em 12/06/2011 - 13:39h

Me parece que o seu problema está em que você tem uma versão antiga do ffmpeg. Tente instalar uma versão mais recente que pode ser que resolva seu problema.


3. milemiquila

daniel enos cavalcanti rodrigues de macedo
denosmacedo

(usa Outra)

Enviado em 12/06/2011 - 14:31h

Quando tento insdtalr o pacote mais novo, ocoree o seguinte erro:

dpkg: problemas de dependência impedem a configuração de ffmpeg:
ffmpeg depende de libdc1394-13; porém:
Pacote libdc1394-13 não está instalado.
ffmpeg depende de libimlib2; porém:
Pacote libimlib2 não está instalado.
ffmpeg depende de libraw1394-5; porém:
Pacote libraw1394-5 não está instalado.
dpkg: erro processando ffmpeg (--install):
problemas de dependência - deixando desconfigurado
Processando gatilhos para man-db ...
Erros foram encontrados durante o processamento de:
ffmpeg


Entao dou um "apt-get -f install" para instalar as depedencias... mas os erros persistem.!


4. usando ffmpeg-0.7-rc1

daniel enos cavalcanti rodrigues de macedo
denosmacedo

(usa Outra)

Enviado em 12/06/2011 - 15:28h

Instalei o ffmpeg-0.7-rc1 e esses foram o erros quando tentei da o "make" no Opencv.2.1

In file included from /usr/local/include/libavutil/avutil.h:109:0,
from /usr/local/include/libavutil/samplefmt.h:22,
from /usr/local/include/libavcodec/avcodec.h:30,
from /usr/local/include/libavformat/avformat.h:43,
from /home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:97:
/usr/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’:
/usr/local/include/libavutil/common.h:168:47: error: ‘UINT64_C’ was not declared in this scope
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp: In member function ‘virtual bool CvCapture_FFMPEG::grabFrame()’:
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:546:9: warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3835)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:548:54: warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3835)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp: In member function ‘virtual void CvVideoWriter_FFMPEG::close()’:
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1177:3: warning: ‘int url_fclose(AVIOContext*)’ is deprecated (declared at /usr/local/include/libavformat/avio.h:282)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1177:20: warning: ‘int url_fclose(AVIOContext*)’ is deprecated (declared at /usr/local/include/libavformat/avio.h:282)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp: In member function ‘virtual bool CvVideoWriter_FFMPEG::open(const char*, int, double, CvSize, bool)’:
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1210:8: warning: ‘AVOutputFormat* guess_format(const char*, const char*, const char*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:930)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1210:41: warning: ‘AVOutputFormat* guess_format(const char*, const char*, const char*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:930)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1233:7: warning: ‘AVFormatContext* av_alloc_format_context()’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1128)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1233:31: warning: ‘AVFormatContext* av_alloc_format_context()’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1128)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1278:5: warning: ‘void dump_format(AVFormatContext*, int, const char*, int)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1486)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1278:35: warning: ‘void dump_format(AVFormatContext*, int, const char*, int)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1486)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1340:13: warning: ‘int url_fopen(AVIOContext**, const char*, int)’ is deprecated (declared at /usr/local/include/libavformat/avio.h:281)
/home/daniel/Downloads/OpenCV-2.1.0/src/highgui/cvcap_ffmpeg.cpp:1340:52: warning: ‘int url_fopen(AVIOContext**, const char*, int)’ is deprecated (declared at /usr/local/include/libavformat/avio.h:281)
make[2]: ** [src/highgui/CMakeFiles/highgui.dir/cvcap_ffmpeg.o] Erro 1
make[1]: ** [src/highgui/CMakeFiles/highgui.dir/all] Erro 2
make: ** [all] Erro 2



5. Re: problemas na instalacao o OpenCV2.1 no ubuntu11.04

Rossano Huf
millemiglia

(usa Slackware)

Enviado em 13/06/2011 - 08:46h

Macedo, achei uma página que ensina a instalação correta do OpenCV no Ubuntu 11.04 e acho que pode te ajudar. Veja ela aqui:
http://leandrocarlosfernandes.blogspot.com/2011/05/instalando-o-opencv-no-ubuntu-1104.html






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts