Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Errors with installing OpenCV 3.0.0 on Ubuntu 12.04.

Hi. I have no experience with OpenCV. I'm trying to install OpenCV on Ubuntu 12.04 but am encountering errors.

To install OpenCV, I am following instructions at http://karytech.blogspot.com/2012/05/opencv-24-on-ubuntu-1204.html.

I get errors after I issue the 'make' command. I haven't been able to figure out how to get past these errors. Can someone help me?

Here are the errors I am getting:

...@Caterina:~/Downloads/opencv-3.0.0/build$ make

[ 5%] Built target libwebp

[ 6%] Built target opencv_hal_pch_dephelp

[ 7%] Built target pch_Generate_opencv_hal

[ 7%] Built target opencv_hal

[ 7%] Built target opencv_core_pch_dephelp

[ 7%] Built target pch_Generate_opencv_core

[ 12%] Built target opencv_core

[ 12%] Built target opencv_ts_pch_dephelp

[ 12%] Built target pch_Generate_opencv_ts

[ 12%] Built target opencv_imgproc_pch_dephelp

[ 12%] Built target pch_Generate_opencv_imgproc

[ 18%] Built target opencv_imgproc

[ 18%] Built target opencv_imgcodecs_pch_dephelp

[ 18%] Built target pch_Generate_opencv_imgcodecs

[ 20%] Built target opencv_imgcodecs

[ 20%] Built target opencv_videoio_pch_dephelp

[ 21%] Built target pch_Generate_opencv_videoio

[ 21%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o

In file included from /home/.../Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45:0:

/home/.../Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1546:71: error: use of enum ‘AVCodecID’ without previous declaration

/home/.../Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1556:83: error: use of enum ‘AVCodecID’ without previous declaration

make[2]: * [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o] Error 1

make[1]: * [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2

make: * [all] Error 2

...@Caterina:~/Downloads/opencv-3.0.0/build$