Installing OpenCV in Ubuntu 14.10 -


I am trying to install OpenCV according to Ubuntu 14.10. I have installed all the notable dependencies, but when I'm trying to run create , I get such errors:

/ home / ilia / opencv- 2.4.8 / modules / highgui / src / ffmpeg_codecs.hpp: 114: 7: error: 'CODEC_ID_H261' was declared in this scope not {CODEC_ID_H261, MKTAG ( 'H', '2', '6', '1 ')}

for all the codecs, as I think and these errors:

  in the file /home/ilia/opencv-2.4.8 /modules/highgui/src/cap_ffmpeg.cpp:45cript includes: / home / iLia / opencv- 2.4.8 / modu / Highgui / src / cap_ffmpeg_impl.hpp: member function 'double CvCapture_FFMPEG :: getProperty (int)': /home/ilia/opencv-2.4.8/modules/highgui/src/cap_ffmpeg_impl.hpp:773: 33: error: There is no member named after 'AVStream' 'r_frame_rate' returns av_q2d (video_st- & gt; r_frame_rate); ^ /home/ilia/opencv-2.4.8/modules/highgui/src/cap_ffmpeg_impl.hpp: member function 'double CvCapture_FFMPEG :: get_fps ()': /home/ilia/opencv-2.4.8/modules/highgui/ src / cap_ffmpeg_impl.hpp: 820: 49: error: 'AVStream' called members 'r_frame_rate' double FPS = r2d (; currents [video_stream] - & gt; & gt ic- r_frame_rate); ^ In file included /home/ilia/opencv-2.4.8/modules/highgui/src/cap_ffmpeg.cpp:45:0: /home/ilia/opencv-2.4.8/modules/highgui/src/cap_ffmpeg_impl. hpp: in function 'int Icv_av_write_frame_FFMPEG (AVFormatContext *, AVStream *, uint8_t *, uint32_t, AVFrame *)': /home/ilia/opencv-2.4.8/modules/highgui/src/cap_ffmpeg_impl.hpp:1236:72: error : 'Avcodec_encode_video' was not declared in out_size = avcodec_encode_video (c, outbuf, outbuf_size, images) in this area; ^  

It seems that it has not received some header files, but I have all necessary Dev packages in libswscc-dev, libavdevice-dev, libavfilter-dev, libavformat-dev, libavcodec-dev Has installed. What do I need to do to solve these problems?

Unless you have special reasons, I suggest setting OpenCVV already already in the Ubuntu repository I am suggesting for the video codec that is trying to set up all the PhpG and GStreamer codec packages: sudo apt-get install libopencv-dev


Comments