make 报告的错误,请高手求解

编译打包和其他
回复
头像
见特但
帖子: 105
注册时间: 2009-10-11 14:43

make 报告的错误,请高手求解

#1

帖子 见特但 » 2012-09-22 18:05

In file included from /home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg.cpp:45:0:
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘void CvCapture_FFMPEG::close()’:
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:405:9: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:405:31: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvCapture_FFMPEG::reopen()’:
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:437:5: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:437:27: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:440:5: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:440:52: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:441:5: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:441:27: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:448:5: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:448:28: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvCapture_FFMPEG::open(const char*)’:
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:475:15: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:475:63: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:480:11: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:480:33: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:495:13: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:495:36: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘double CvCapture_FFMPEG::getProperty(int)’:
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:668:13: warning: variable ‘timestamp’ set but not used [-Wunused-but-set-variable]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp: In function ‘AVStream* icv_add_video_stream_FFMPEG(AVFormatContext*, CodecID, int, int, int, double, int)’:
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:919:7: warning: ‘AVStream* av_new_stream(AVFormatContext*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:919:26: warning: ‘AVStream* av_new_stream(AVFormatContext*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
In file included from /home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg.cpp:45:0:
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp: In function ‘int icv_av_write_frame_FFMPEG(AVFormatContext*, AVStream*, uint8_t*, uint32_t, AVFrame*)’:
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1044:90: error: ‘av_rescale_q’ was not declared in this scope
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘void CvVideoWriter_FFMPEG::close()’:
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1214:3: warning: ‘int url_fclose(AVIOContext*)’ is deprecated (declared at /usr/include/libavformat/avio.h:317) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1214:20: warning: ‘int url_fclose(AVIOContext*)’ is deprecated (declared at /usr/include/libavformat/avio.h:317) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvVideoWriter_FFMPEG::open(const char*, int, double, int, int, bool)’:
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1317:9: warning: ‘int av_set_parameters(AVFormatContext*, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1640) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1317:35: warning: ‘int av_set_parameters(AVFormatContext*, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1640) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1321:5: warning: ‘void dump_format(AVFormatContext*, int, const char*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1902) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1321:35: warning: ‘void dump_format(AVFormatContext*, int, const char*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1902) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1348:15: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1348:36: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1350:81: warning: format ‘%s’ expects argument of type ‘char*’, but argument 4 has type ‘int’ [-Wformat]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1385:13: warning: ‘int url_fopen(AVIOContext**, const char*, int)’ is deprecated (declared at /usr/include/libavformat/avio.h:316) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1385:52: warning: ‘int url_fopen(AVIOContext**, const char*, int)’ is deprecated (declared at /usr/include/libavformat/avio.h:316) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1391:5: warning: ‘int av_write_header(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1676) [-Wdeprecated-declarations]
/home/ubuntu/OpenCV-2.3.0/modules/highgui/src/cap_ffmpeg_impl.hpp:1391:25: warning: ‘int av_write_header(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1676) [-Wdeprecated-declarations]
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.o] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
头像
cuihao
帖子: 4793
注册时间: 2008-07-24 11:33
来自: 郑州
联系:

Re: make 报告的错误,请高手求解

#2

帖子 cuihao » 2012-09-22 19:25

我是来纠正病句的……
请高手求解
兴许换个版本gcc就好了……
求人不如求它仨: 天蓝的Wiki 屎黄的Wiki 绿
Site: CUIHAO.TK    Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~
头像
见特但
帖子: 105
注册时间: 2009-10-11 14:43

Re: make 报告的错误,请高手求解

#3

帖子 见特但 » 2012-09-22 21:43

cuihao 写了:我是来纠正病句的……
请高手求解
兴许换个版本gcc就好了……
版本太高了是吧,
那会想到了, 和编译器的编译选项是无关的
能否给个具体的版本号
回复