I am trying to build OpenCV 2.4.9.1 under ubuntu 14.10, following the provided instructions.
I have cloned the git repository on my disk, checked out tag 2.4.9.1 and run cmake as per instructions.
Then, when I run make, I get errors, beginning with:
In file included from /home/fanta/eclipse-workspace/3rd_party/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:60:0,
from /home/fanta/eclipse-workspace/3rd_party/opencv/modules/highgui/src/cap_ffmpeg.cpp:45:
/home/fanta/eclipse-workspace/3rd_party/opencv/modules/highgui/src/ffmpeg_codecs.hpp:104:7: error: ‘CODEC_ID_H264’ was not declared in this scope
{ CODEC_ID_H264, MKTAG('H', '2', '6', '4') },
^
/home/fanta/eclipse-workspace/3rd_party/opencv/modules/highgui/src/ffmpeg_codecs.hpp:105:7: error: ‘CODEC_ID_H264’ was not declared in this scope
{ CODEC_ID_H264, MKTAG('h', '2', '6', '4') },
^
/home/fanta/eclipse-workspace/3rd_party/opencv/modules/highgui/src/ffmpeg_codecs.hpp:106:7: error: ‘CODEC_ID_H264’ was not declared in this scope
{ CODEC_ID_H264, MKTAG('X', '2', '6', '4') },
^
I am also getting similar errors when trying to build 3.0.0-beta.
Any clue what I am doing wrong?
Thanks!