Ask Your Question
0

Errors with installing OpenCV 3.0.0 on Ubuntu 12.04.

asked 2015-07-23 17:58:22 -0600

genaro gravatar image

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$

edit retag flag offensive close merge delete

Comments

I have the same error on debian 7. But i trying install emgucv 3:

[ 19%] Building CXX object opencv/modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o
In file included from /root/opencv/emgucv/opencv/modules/videoio/src/cap_ffmpeg.cpp:45:0:
/root/opencv/emgucv/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1546:71: error: use of enum ‘AVCodecID’ without previous declaration
/root/opencv/emgucv/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:1556:83: error: use of enum ‘AVCodecID’ without previous declaration
make[2]: *** [opencv/modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o] Error 1
make[1]: *** [opencv/modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
make: *** [all] Error 2
berkut gravatar imageberkut ( 2015-07-24 00:08:29 -0600 )edit

not an answer.

berak gravatar imageberak ( 2015-07-24 00:22:51 -0600 )edit
2

fixed) Thanks.

berkut gravatar imageberkut ( 2015-07-24 00:50:14 -0600 )edit

So it was a flag that was not set?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-07-24 04:10:11 -0600 )edit

-not an answer. -fixed) Thanks.

I only convert "answer" to comment.

berkut gravatar imageberkut ( 2015-07-24 05:18:03 -0600 )edit
1

@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 gravatar imageberak ( 2015-07-24 06:54:05 -0600 )edit

@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?

genaro gravatar imagegenaro ( 2015-07-25 18:50:26 -0600 )edit

Everyone, I'm still hoping someone in the community can help me get past the installation of OpenCV.

genaro gravatar imagegenaro ( 2015-07-28 23:53:35 -0600 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2015-07-30 12:33:18 -0600

yvess gravatar image

one work around to solve this issue is to set the WITH_FFMPEG = OFF when building. It worked in my case.

edit flag offensive delete link more
0

answered 2015-08-06 09:07:48 -0600

Ulrich Stern gravatar image

I posted what worked for me on stackoverflow, where I also have a link to my OpenCV issue tracker post.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-07-23 17:46:47 -0600

Seen: 4,416 times

Last updated: Aug 06 '15