Ask Your Question
0

fail to compile opencv 2.4.10

asked 2015-05-01 11:21:48 -0600

tzxu gravatar image

I have followed the instruction from this website http://docs.opencv.org/doc/tutorials/... but I ran into the following problems: [ 27%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o In file included from ~/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:65:0, from ~/opencv/modules/videoio/src/cap_ffmpeg.cpp:45: ~/opencv/modules/videoio/src/ffmpeg_codecs.hpp:171:7: error: ‘AV_CODEC_ID_H263I’ was not declared in this scope ~/opencv/modules/videoio/src/ffmpeg_codecs.hpp:287:7: error: ‘AV_CODEC_ID_WNV1’ was not declared in this scope 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

I have searched internet and can't find a solution for that. any comments? thanks.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-05-02 12:41:16 -0600

If you had used "bleeding edge" version, try using the latest stable :)

edit flag offensive delete link more

Comments

actually my Ubuntu 12.04 only works with opencv 2.4.9 (not 2.4.10). now compilation successes. thanks.

tzxu gravatar imagetzxu ( 2015-05-03 11:14:01 -0600 )edit

@tzxu that is simply untrue, we have multiple 12.04 ubuntu systems here running the 2.4 latest branch perfectly. Could you please upgrade, because else your next question will be about bugs that are already solved ...

StevenPuttemans gravatar imageStevenPuttemans ( 2015-05-04 04:09:08 -0600 )edit

Question Tools

Stats

Asked: 2015-05-01 11:21:48 -0600

Seen: 360 times

Last updated: May 01 '15