Code: Select all
[ 80%] Building CXX object CMakeFiles/vegastrike.dir/src/gfx/vid_file.cpp.o
/home/hack/VegaStrike/vegastrike/src/gfx/vid_file.cpp: In destructor ‘VidFileImpl::~VidFileImpl()’:
/home/hack/VegaStrike/vegastrike/src/gfx/vid_file.cpp:204:13: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
av_close_input_file( pFormatCtx );
^
/home/hack/VegaStrike/vegastrike/src/gfx/vid_file.cpp:204:45: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
av_close_input_file( pFormatCtx );
^
/home/hack/VegaStrike/vegastrike/src/gfx/vid_file.cpp: In member function ‘void VidFileImpl::open(const string&)’:
/home/hack/VegaStrike/vegastrike/src/gfx/vid_file.cpp:217:54: error: ‘av_find_stream_info’ was not declared in this scope
|| ( 0 > av_find_stream_info( pFormatCtx ) ) ) throw VidFile::FileOpenException( errbase+" (wrong format or)" );
^
/home/hack/VegaStrike/vegastrike/src/gfx/vid_file.cpp:244:45: error: ‘avcodec_open’ was not declared in this scope
if (avcodec_open( pCodecCtx, pCodec ) < 0) throw VidFile::UnsupportedCodecException( errbase+" (unsupported codec)" );
^
/home/hack/VegaStrike/vegastrike/src/gfx/vid_file.cpp:258:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (width < pCodecCtx->width && width <= (fbDimensionLimit/2)) width *= 2;
^
/home/hack/VegaStrike/vegastrike/src/gfx/vid_file.cpp:259:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (height < pCodecCtx->height && height <= (fbDimensionLimit/2)) height *= 2;
^
/home/hack/VegaStrike/vegastrike/src/gfx/vid_file.cpp: In member function ‘bool VidFileImpl::seek(float)’:
/home/hack/VegaStrike/vegastrike/src/gfx/vid_file.cpp:301:68: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (targetPTS >= prevPTS) && (targetPTS < pNextFrameYUV->pts) ) {
^
/home/hack/VegaStrike/vegastrike/src/gfx/vid_file.cpp:331:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pNextFrameYUV->pts < targetPTS) {
^
/home/hack/VegaStrike/vegastrike/src/gfx/vid_file.cpp:337:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (packet.dts < targetPTS) {
^
/home/hack/VegaStrike/vegastrike/src/gfx/vid_file.cpp:343:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pNextFrameYUV->pts < targetPTS) {
^
make[2]: *** [CMakeFiles/vegastrike.dir/src/gfx/vid_file.cpp.o] Error 1
make[1]: *** [CMakeFiles/vegastrike.dir/all] Error 2
make: *** [all] Error 2
Would somebody care to tell me why this happened and how I can fix it? Now that I finally have a nice system I really, really wanna play VS again!