-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Hi, I have been having this issue when I perform the make step on Ubuntu 14.04, I would appreciate any help:
[ 59%] Building CXX object CMakeFiles/displaycluster.dir/src/Movie.o
/opt/DisplayCluster/src/Movie.cpp: In constructor ‘Movie::Movie(std::string)’:
/opt/DisplayCluster/src/Movie.cpp:91:42: warning: ‘AVStream::codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if(avFormatContext_->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO)
^
/opt/DisplayCluster/src/Movie.cpp:91:42: warning: ‘AVStream::codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
/opt/DisplayCluster/src/Movie.cpp:105:64: warning: ‘AVStream::codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
avCodecContext_ = avFormatContext_->streams[videoStream_]->codec;
^
/opt/DisplayCluster/src/Movie.cpp:105:64: warning: ‘AVStream::codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
/opt/DisplayCluster/src/Movie.cpp:143:36: error: ‘avcodec_alloc_frame’ was not declared in this scope
avFrame_ = avcodec_alloc_frame();
^
/opt/DisplayCluster/src/Movie.cpp:156:20: warning: ‘int avpicture_get_size(AVPixelFormat, int, int)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:5487) [-Wdeprecated-declarations]
int numBytes = avpicture_get_size(PIX_FMT_RGBA, avCodecContext_->width, avCodecContext_->height);
^
/opt/DisplayCluster/src/Movie.cpp:156:39: error: ‘PIX_FMT_RGBA’ was not declared in this scope
int numBytes = avpicture_get_size(PIX_FMT_RGBA, avCodecContext_->width, avCodecContext_->height);
^
/opt/DisplayCluster/src/Movie.cpp:160:5: warning: ‘int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:5472) [-Wdeprecated-declarations]
avpicture_fill((AVPicture )avFrameRGB_, buffer, PIX_FMT_RGBA, avCodecContext_->width, avCodecContext_->height);
^
/opt/DisplayCluster/src/Movie.cpp: In member function ‘void Movie::nextFrame(bool)’:
/opt/DisplayCluster/src/Movie.cpp:308:13: warning: ‘int avcodec_decode_video2(AVCodecContext, AVFrame*, int*, const AVPacket*)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4831) [-Wdeprecated-declarations]
avcodec_decode_video2(avCodecContext_, avFrame_, &frameFinished, &packet);
^
/opt/DisplayCluster/src/Movie.cpp:308:85: warning: ‘int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4831) [-Wdeprecated-declarations]
avcodec_decode_video2(avCodecContext_, avFrame_, &frameFinished, &packet);
^
/opt/DisplayCluster/src/Movie.cpp:327:21: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4492) [-Wdeprecated-declarations]
av_free_packet(&packet);
^
/opt/DisplayCluster/src/Movie.cpp:327:43: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4492) [-Wdeprecated-declarations]
av_free_packet(&packet);
^
/opt/DisplayCluster/src/Movie.cpp:335:9: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4492) [-Wdeprecated-declarations]
av_free_packet(&packet);
^
/opt/DisplayCluster/src/Movie.cpp:335:31: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4492) [-Wdeprecated-declarations]
av_free_packet(&packet);
^
make[2]: *** [CMakeFiles/displaycluster.dir/src/Movie.o] Error 1
make[1]: *** [CMakeFiles/displaycluster.dir/all] Error 2
make: *** [all] Error 2