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/....
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$
I have the same error on debian 7. But i trying install emgucv 3:
not an answer.
fixed) Thanks.
So it was a flag that was not set?
-not an answer. -fixed) Thanks.
I only convert "answer" to comment.
@berkut , @genaro , - it's probably a good idea now, to find out, which AV* releated libs you're trying to use, and which version of it is the correct one.
@berak, how can I do that? That is, how can I figure out which AV* related libs I'm trying to use, and which version of it is the correct one?
Everyone, I'm still hoping someone in the community can help me get past the installation of OpenCV.