linux - Errors while installing OpenCV and FFMPEG through Rightscripts -


i writing rightscript install opencv-2.3.1 on linux server. using ffmpeg package: ffmpeg-0.7-rc1

i doing whatever did while installing manually on server, getting errors when try booting box using rightscripts. opencv installs , works fine when built manually through bash.

the errors getting are:

in file included /opencv-2.3.1/modules/highgui/src/cap_ffmpeg.cpp:45: /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: in member function 'void cvcapture_ffmpeg::close()': /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:451: warning: 'void av_close_input_file(avformatcontext*)' deprecated (declared @ /usr/local/include/libavformat/avformat.h:1533) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:451: warning: 'void av_close_input_file(avformatcontext*)' deprecated (declared @ /usr/local/include/libavformat/avformat.h:1533) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: in member function 'bool cvcapture_ffmpeg::reopen()': /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:483: warning: 'void av_close_input_file(avformatcontext*)' deprecated (declared @ /usr/local/include/libavformat/avformat.h:1533) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:483: warning: 'void av_close_input_file(avformatcontext*)' deprecated (declared @ /usr/local/include/libavformat/avformat.h:1533) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:486: error: 'av_open_input_file' not declared in scope /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:487: warning: 'int av_find_stream_info(avformatcontext*)' deprecated (declared @ /usr/local/include/libavformat/avformat.h:1357) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:487: warning: 'int av_find_stream_info(avformatcontext*)' deprecated (declared @ /usr/local/include/libavformat/avformat.h:1357) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:494: error: 'avcodec_thread_init' not declared in scope /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:497: warning: 'int avcodec_open(avcodeccontext*, avcodec*)' deprecated (declared @ /usr/local/include/libavcodec/avcodec.h:3380) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:497: warning: 'int avcodec_open(avcodeccontext*, avcodec*)' deprecated (declared @ /usr/local/include/libavcodec/avcodec.h:3380) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: in member function 'bool cvcapture_ffmpeg::open(const char*)': /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:524: error: 'av_open_input_file' not declared in scope /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:529: warning: 'int av_find_stream_info(avformatcontext*)' deprecated (declared @ /usr/local/include/libavformat/avformat.h:1357) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:529: warning: 'int av_find_stream_info(avformatcontext*)' deprecated (declared @ /usr/local/include/libavformat/avformat.h:1357) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:541: error: 'avcodec_thread_init' not declared in scope /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:550: warning: 'int avcodec_open(avcodeccontext*, avcodec*)' deprecated (declared @ /usr/local/include/libavcodec/avcodec.h:3380) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:550: warning: 'int avcodec_open(avcodeccontext*, avcodec*)' deprecated (declared @ /usr/local/include/libavcodec/avcodec.h:3380) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: in function 'avstream* icv_add_video_stream_ffmpeg(avformatcontext*, codecid, int, int, int, double, int)': /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:999: warning: 'avstream* av_new_stream(avformatcontext*, int)' deprecated (declared @ /usr/local/include/libavformat/avformat.h:1557) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:999: warning: 'avstream* av_new_stream(avformatcontext*, int)' deprecated (declared @ /usr/local/include/libavformat/avformat.h:1557) in file included /opencv-2.3.1/modules/highgui/src/cap_ffmpeg.cpp:45: /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: in function 'int icv_av_write_frame_ffmpeg(avformatcontext*, avstream*, uint8_t*, uint32_t, avframe*)': /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1121: warning: 'int avcodec_encode_video(avcodeccontext*, uint8_t*, int, const avframe*)' deprecated (declared @ /usr/local/include/libavcodec/avcodec.h:4077) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1121: warning: 'int avcodec_encode_video(avcodeccontext*, uint8_t*, int, const avframe*)' deprecated (declared @ /usr/local/include/libavcodec/avcodec.h:4077) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: in member function 'void cvvideowriter_ffmpeg::close()': /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1298: error: 'url_fclose' not declared in scope /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: in member function 'bool cvvideowriter_ffmpeg::open(const char*, int, double, int, int, bool)': /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1411: error: 'av_set_parameters' not declared in scope /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1415: error: 'dump_format' not declared in scope /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1442: warning: 'int avcodec_open(avcodeccontext*, avcodec*)' deprecated (declared @ /usr/local/include/libavcodec/avcodec.h:3380) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1442: warning: 'int avcodec_open(avcodeccontext*, avcodec*)' deprecated (declared @ /usr/local/include/libavcodec/avcodec.h:3380) /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1479: error: 'url_wronly' not declared in scope /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1479: error: 'url_fopen' not declared in scope /opencv-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1485: error: 'av_write_header' not declared in scope 20:09:04: make[2]: *** [modules/highgui/cmakefiles/opencv_highgui.dir/src/cap_ffmpeg.o] error 1 20:09:04: make[1]: *** [modules/highgui/cmakefiles/opencv_highgui.dir/all] error 2 20:09:04: make: *** [all] error 2 20:09:04: cd: 23: can't cd /root/opencv-2.3.1/samples/c 20:09:04: chmod: cannot access `build_all.sh': no such file or directory 20:09:04: /var/cache/rightscale/right_scripts/right_scripts_cookbook/recipes/cvscripts___install_opencv: 25: ./build_all.sh: not found *error> chef converge failed *error> external command returned error during execution of chef: 

i did google search , understand of ffmpeg functions deprecated now. have tried installing latest ffmpeg package well, , getting same errors. also, wondering why don't these errors when install manually on server via bash, , when install using rightscripts.

using ffmpeg package ffmpeg-0.8 solves issue. works fine opencv-2.3.1 there has been number of recent fixes ffmpeg giving rise clashes. ffmpeg-0.8 stable , works fine.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -