mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
397 stars 115 forks source link

ffmpeg 4.0 support #442

Closed kyrios123 closed 6 years ago

kyrios123 commented 6 years ago

attract fails to build against ffmpeg4.

+ make -j4 prefix=/usr
flags: -Wl,--export-dynamic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_PATH=\"/usr/share/attract/\" -O2 -DNDEBUG -Iextlibs/audio/include -D__STDC_CONSTANT_MACROS -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/AL -Iextlibs/squirrel/include -Iextlibs/sqrat/include -Iextlibs/gameswf  -DUSE_XLIB -DUSE_XINERAMA -DUSE_FONTCONFIG -DUSE_LIBARCHIVE -DUSE_SWRESAMPLE
make: git: Command not found
mkdir -p obj
mkdir -p obj/squirrel
mkdir -p obj/sqstdlib
mkdir -p obj/gsbaselib
mkdir -p obj/gameswflib
mkdir -p obj/gameswflib/gameswf_as_classes
mkdir -p obj/audiolib
Compiling obj/fe_base.o...
Compiling obj/fe_util.o...
Compiling obj/fe_util_sq.o...
Compiling obj/fe_cmdline.o...
In file included from /usr/include/c++/7.3.0/backward/hash_map:60:0,
                 from extlibs/gameswf/base/container.h:75,
                 from extlibs/gameswf/base/image.h:14,
                 from extlibs/gameswf/gameswf/gameswf.h:21,
                 from src/fe_base.cpp:34:
/usr/include/c++/7.3.0/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
 #warning \
  ^~~~~~~
Compiling obj/fe_info.o...
Compiling obj/fe_input.o...
Compiling obj/fe_romlist.o...
Compiling obj/fe_settings.o...
Compiling obj/scraper_xml.o...
Compiling obj/scraper_general.o...
Compiling obj/scraper_net.o...
Compiling obj/fe_config.o...
Compiling obj/fe_presentable.o...
Compiling obj/fe_present.o...
Compiling obj/sprite.o...
Compiling obj/fe_image.o...
Compiling obj/fe_sound.o...
Compiling obj/fe_shader.o...
Compiling obj/fe_overlay.o...
Compiling obj/fe_window.o...
src/fe_shader.cpp: In member function ‘void FeShader::set_param(const char*, float)’:
src/fe_shader.cpp:84:34: warning: ‘void sf::Shader::setParameter(const string&, float)’ is deprecated [-Wdeprecated-declarations]
   m_shader.setParameter( name, x );
                                  ^
In file included from src/fe_shader.hpp:26:0,
                 from src/fe_shader.cpp:23:
/usr/include/SFML/Graphics/Shader.hpp:554:26: note: declared here
     SFML_DEPRECATED void setParameter(const std::string& name, float x);
                          ^~~~~~~~~~~~
src/fe_shader.cpp: In member function ‘void FeShader::set_param(const char*, float, float)’:
src/fe_shader.cpp:93:37: warning: ‘void sf::Shader::setParameter(const string&, float, float)’ is deprecated [-Wdeprecated-declarations]
   m_shader.setParameter( name, x, y );
                                     ^
In file included from src/fe_shader.hpp:26:0,
                 from src/fe_shader.cpp:23:
/usr/include/SFML/Graphics/Shader.hpp:562:26: note: declared here
     SFML_DEPRECATED void setParameter(const std::string& name, float x, float y);
                          ^~~~~~~~~~~~
src/fe_shader.cpp: In member function ‘void FeShader::set_param(const char*, float, float, float)’:
src/fe_shader.cpp:102:40: warning: ‘void sf::Shader::setParameter(const string&, float, float, float)’ is deprecated [-Wdeprecated-declarations]
   m_shader.setParameter( name, x, y, z );
                                        ^
In file included from src/fe_shader.hpp:26:0,
                 from src/fe_shader.cpp:23:
/usr/include/SFML/Graphics/Shader.hpp:570:26: note: declared here
     SFML_DEPRECATED void setParameter(const std::string& name, float x, float y, float z);
                          ^~~~~~~~~~~~
src/fe_shader.cpp: In member function ‘void FeShader::set_param(const char*, float, float, float, float)’:
src/fe_shader.cpp:111:43: warning: ‘void sf::Shader::setParameter(const string&, float, float, float, float)’ is deprecated [-Wdeprecated-declarations]
   m_shader.setParameter( name, x, y, z, w );
                                           ^
In file included from src/fe_shader.hpp:26:0,
                 from src/fe_shader.cpp:23:
/usr/include/SFML/Graphics/Shader.hpp:578:26: note: declared here
     SFML_DEPRECATED void setParameter(const std::string& name, float x, float y, float z, float w);
                          ^~~~~~~~~~~~
src/fe_shader.cpp: In member function ‘void FeShader::set_texture_param(const char*)’:
src/fe_shader.cpp:120:59: warning: ‘void sf::Shader::setParameter(const string&, sf::Shader::CurrentTextureType)’ is deprecated [-Wdeprecated-declarations]
   m_shader.setParameter( name, sf::Shader::CurrentTexture );
                                                           ^
In file included from src/fe_shader.hpp:26:0,
                 from src/fe_shader.cpp:23:
/usr/include/SFML/Graphics/Shader.hpp:626:26: note: declared here
     SFML_DEPRECATED void setParameter(const std::string& name, CurrentTextureType);
                          ^~~~~~~~~~~~
src/fe_shader.cpp: In member function ‘void FeShader::set_texture_param(const char*, FeImage*)’:
src/fe_shader.cpp:133:42: warning: ‘void sf::Shader::setParameter(const string&, const sf::Texture&)’ is deprecated [-Wdeprecated-declarations]
    m_shader.setParameter( name, *texture );
                                          ^
In file included from src/fe_shader.hpp:26:0,
                 from src/fe_shader.cpp:23:
/usr/include/SFML/Graphics/Shader.hpp:618:26: note: declared here
     SFML_DEPRECATED void setParameter(const std::string& name, const Texture& texture);
                          ^~~~~~~~~~~~
Compiling obj/tp.o...
Compiling obj/fe_text.o...
Compiling obj/fe_listbox.o...
src/tp.cpp: In member function ‘void FeTextPrimative::setColor(const sf::Color&)’:
src/tp.cpp:71:26: warning: ‘void sf::Text::setColor(const sf::Color&)’ is deprecated [-Wdeprecated-declarations]
   m_texts[i].setColor( c );
                          ^
In file included from /usr/include/SFML/Graphics.hpp:51:0,
                 from src/tp.hpp:26,
                 from src/tp.cpp:23:
/usr/include/SFML/Graphics/Text.hpp:177:26: note: declared here
     SFML_DEPRECATED void setColor(const Color& color);
                          ^~~~~~~~
src/tp.cpp: In member function ‘const sf::Color& FeTextPrimative::getColor() const’:
src/tp.cpp:76:29: warning: ‘const sf::Color& sf::Text::getColor() const’ is deprecated [-Wdeprecated-declarations]
  return m_texts[0].getColor();
                             ^
In file included from /usr/include/SFML/Graphics.hpp:51:0,
                 from src/tp.hpp:26,
                 from src/tp.cpp:23:
/usr/include/SFML/Graphics/Text.hpp:285:34: note: declared here
     SFML_DEPRECATED const Color& getColor() const;
                                  ^~~~~~~~
Compiling obj/fe_vm.o...
src/fe_overlay.cpp: In member function ‘bool FeOverlay::edit_loop(std::vector<sf::Drawable*>, std::__cxx11::basic_string<unsigned int>&, FeTextPrimative*)’:
src/fe_overlay.cpp:1575:34: warning: ‘void sf::Text::setColor(const sf::Color&)’ is deprecated [-Wdeprecated-declarations]
  cursor.setColor( tp->getColor() );
                                  ^
In file included from /usr/include/SFML/Graphics.hpp:51:0,
                 from src/fe_overlay.hpp:26,
                 from src/fe_overlay.cpp:23:
/usr/include/SFML/Graphics/Text.hpp:177:26: note: declared here
     SFML_DEPRECATED void setColor(const Color& color);
                          ^~~~~~~~
Compiling obj/zip.o...
Compiling obj/main.o...
Compiling obj/fe_net.o...
Compiling obj/swf.o...
Compiling obj/media.o...
src/main.cpp: In function ‘int main(int, char**)’:
src/main.cpp:561:44: warning: ‘sf::Image sf::RenderWindow::capture() const’ is deprecated [-Wdeprecated-declarations]
       sf::Image sshot_img = window.capture();
                                            ^
In file included from /usr/include/SFML/Graphics.hpp:47:0,
                 from src/fe_present.hpp:26,
                 from src/main.cpp:24:
/usr/include/SFML/Graphics/RenderWindow.hpp:140:27: note: declared here
     SFML_DEPRECATED Image capture() const;
                           ^~~~~~~
Compiling obj/squirrel/sqapi.o...
src/media.cpp: In member function ‘void FeVideoImp::preload()’:
src/media.cpp:526:15: warning: ‘AVCodecContext::refcounted_frames’ is deprecated [-Wdeprecated-declarations]
    codec_ctx->refcounted_frames = 1;
               ^~~~~~~~~~~~~~~~~
In file included from src/media.cpp:31:0:
/usr/include/libavcodec/avcodec.h:2344:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
src/media.cpp:526:15: warning: ‘AVCodecContext::refcounted_frames’ is deprecated [-Wdeprecated-declarations]
    codec_ctx->refcounted_frames = 1;
               ^~~~~~~~~~~~~~~~~
In file included from src/media.cpp:31:0:
/usr/include/libavcodec/avcodec.h:2344:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
src/media.cpp:526:15: warning: ‘AVCodecContext::refcounted_frames’ is deprecated [-Wdeprecated-declarations]
    codec_ctx->refcounted_frames = 1;
               ^~~~~~~~~~~~~~~~~
In file included from src/media.cpp:31:0:
/usr/include/libavcodec/avcodec.h:2344:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
src/media.cpp:532:24: warning: ‘int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
     &got_frame, packet );
                        ^
In file included from src/media.cpp:31:0:
/usr/include/libavcodec/avcodec.h:4755:5: note: declared here
 int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
     ^~~~~~~~~~~~~~~~~~~~~
src/media.cpp: In member function ‘void FeVideoImp::video_thread()’:
src/media.cpp:698:17: warning: ‘AVCodecContext::refcounted_frames’ is deprecated [-Wdeprecated-declarations]
      codec_ctx->refcounted_frames = 1;
                 ^~~~~~~~~~~~~~~~~
In file included from src/media.cpp:31:0:
/usr/include/libavcodec/avcodec.h:2344:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
src/media.cpp:698:17: warning: ‘AVCodecContext::refcounted_frames’ is deprecated [-Wdeprecated-declarations]
      codec_ctx->refcounted_frames = 1;
                 ^~~~~~~~~~~~~~~~~
In file included from src/media.cpp:31:0:
/usr/include/libavcodec/avcodec.h:2344:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
src/media.cpp:698:17: warning: ‘AVCodecContext::refcounted_frames’ is deprecated [-Wdeprecated-declarations]
      codec_ctx->refcounted_frames = 1;
                 ^~~~~~~~~~~~~~~~~
In file included from src/media.cpp:31:0:
/usr/include/libavcodec/avcodec.h:2344:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
src/media.cpp:704:27: warning: ‘int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
        &got_frame, packet );
                           ^
In file included from src/media.cpp:31:0:
/usr/include/libavcodec/avcodec.h:4755:5: note: declared here
 int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
     ^~~~~~~~~~~~~~~~~~~~~
src/media.cpp:710:35: warning: ‘AVFrame::pkt_pts’ is deprecated [-Wdeprecated-declarations]
       raw_frame->pts = raw_frame->pkt_pts;
                                   ^~~~~~~
In file included from /usr/include/libavcodec/avcodec.h:38:0,
                 from src/media.cpp:31:
/usr/include/libavutil/frame.h:319:13: note: declared here
     int64_t pkt_pts;
             ^~~~~~~
src/media.cpp:710:35: warning: ‘AVFrame::pkt_pts’ is deprecated [-Wdeprecated-declarations]
       raw_frame->pts = raw_frame->pkt_pts;
                                   ^~~~~~~
In file included from /usr/include/libavcodec/avcodec.h:38:0,
                 from src/media.cpp:31:
/usr/include/libavutil/frame.h:319:13: note: declared here
     int64_t pkt_pts;
             ^~~~~~~
src/media.cpp:710:35: warning: ‘AVFrame::pkt_pts’ is deprecated [-Wdeprecated-declarations]
       raw_frame->pts = raw_frame->pkt_pts;
                                   ^~~~~~~
In file included from /usr/include/libavcodec/avcodec.h:38:0,
                 from src/media.cpp:31:
/usr/include/libavutil/frame.h:319:13: note: declared here
     int64_t pkt_pts;
             ^~~~~~~
src/media.cpp:764:71: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
  FeDebug() << "End Video Thread - " << m_parent->m_imp->m_format_ctx->filename << std::endl
                                                                       ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp:764:71: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
  FeDebug() << "End Video Thread - " << m_parent->m_imp->m_format_ctx->filename << std::endl
                                                                       ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp:764:71: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
  FeDebug() << "End Video Thread - " << m_parent->m_imp->m_format_ctx->filename << std::endl
                                                                       ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp: In static member function ‘static void FeMedia::init_av()’:
src/media.cpp:793:24: warning: ‘void avcodec_register_all()’ is deprecated [-Wdeprecated-declarations]
   avcodec_register_all();
                        ^
In file included from src/media.cpp:31:0:
/usr/include/libavcodec/avcodec.h:4086:6: note: declared here
 void avcodec_register_all(void);
      ^~~~~~~~~~~~~~~~~~~~
src/media.cpp:794:19: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations]
   av_register_all();
                   ^
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:2025:6: note: declared here
 void av_register_all(void);
      ^~~~~~~~~~~~~~~
src/media.cpp: In member function ‘bool FeMedia::openFromArchive(const string&, const string&, sf::Texture*)’:
src/media.cpp:973:6: error: ‘FF_INPUT_BUFFER_PADDING_SIZE’ was not declared in this scope
    + FF_INPUT_BUFFER_PADDING_SIZE );
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/media.cpp:973:6: note: suggested alternative: ‘AV_INPUT_BUFFER_PADDING_SIZE’
    + FF_INPUT_BUFFER_PADDING_SIZE );
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      AV_INPUT_BUFFER_PADDING_SIZE
src/media.cpp: In member function ‘bool FeMedia::internal_open(sf::Texture*)’:
src/media.cpp:999:30: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
      << m_imp->m_format_ctx->filename << std::endl;
                              ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp:999:30: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
      << m_imp->m_format_ctx->filename << std::endl;
                              ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp:999:30: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
      << m_imp->m_format_ctx->filename << std::endl;
                              ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp:1012:73: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
    AVCodecContext *codec_ctx = m_imp->m_format_ctx->streams[stream_id]->codec;
                                                                         ^~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
src/media.cpp:1012:73: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
    AVCodecContext *codec_ctx = m_imp->m_format_ctx->streams[stream_id]->codec;
                                                                         ^~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
src/media.cpp:1012:73: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
    AVCodecContext *codec_ctx = m_imp->m_format_ctx->streams[stream_id]->codec;
                                                                         ^~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
src/media.cpp:1018:31: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
       << m_imp->m_format_ctx->filename << std::endl;
                               ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp:1018:31: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
       << m_imp->m_format_ctx->filename << std::endl;
                               ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp:1018:31: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
       << m_imp->m_format_ctx->filename << std::endl;
                               ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp:1033:8: error: ‘FF_INPUT_BUFFER_PADDING_SIZE’ was not declared in this scope
      + FF_INPUT_BUFFER_PADDING_SIZE
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/media.cpp:1033:8: note: suggested alternative: ‘AV_INPUT_BUFFER_PADDING_SIZE’
      + FF_INPUT_BUFFER_PADDING_SIZE
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
        AV_INPUT_BUFFER_PADDING_SIZE
src/media.cpp:1063:29: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
     << m_imp->m_format_ctx->filename << std::endl;
                             ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp:1063:29: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
     << m_imp->m_format_ctx->filename << std::endl;
                             ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp:1063:29: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
     << m_imp->m_format_ctx->filename << std::endl;
                             ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp:1067:73: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
    AVCodecContext *codec_ctx = m_imp->m_format_ctx->streams[stream_id]->codec;
                                                                         ^~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
src/media.cpp:1067:73: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
    AVCodecContext *codec_ctx = m_imp->m_format_ctx->streams[stream_id]->codec;
                                                                         ^~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
src/media.cpp:1067:73: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
    AVCodecContext *codec_ctx = m_imp->m_format_ctx->streams[stream_id]->codec;
                                                                         ^~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
src/media.cpp:1078:30: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
      << m_imp->m_format_ctx->filename << std::endl;
                              ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp:1078:30: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
      << m_imp->m_format_ctx->filename << std::endl;
                              ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp:1078:30: warning: ‘AVFormatContext::filename’ is deprecated [-Wdeprecated-declarations]
      << m_imp->m_format_ctx->filename << std::endl;
                              ^~~~~~~~
In file included from src/media.cpp:32:0:
/usr/include/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
src/media.cpp: In member function ‘virtual bool FeMedia::onGetData(sf::SoundStream::Chunk&)’:
src/media.cpp:1224:23: warning: ‘AVCodecContext::refcounted_frames’ is deprecated [-Wdeprecated-declarations]
   m_audio->codec_ctx->refcounted_frames = 1;
                       ^~~~~~~~~~~~~~~~~
In file included from src/media.cpp:31:0:
/usr/include/libavcodec/avcodec.h:2344:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
src/media.cpp:1224:23: warning: ‘AVCodecContext::refcounted_frames’ is deprecated [-Wdeprecated-declarations]
   m_audio->codec_ctx->refcounted_frames = 1;
                       ^~~~~~~~~~~~~~~~~
In file included from src/media.cpp:31:0:
/usr/include/libavcodec/avcodec.h:2344:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
src/media.cpp:1224:23: warning: ‘AVCodecContext::refcounted_frames’ is deprecated [-Wdeprecated-declarations]
   m_audio->codec_ctx->refcounted_frames = 1;
                       ^~~~~~~~~~~~~~~~~
In file included from src/media.cpp:31:0:
/usr/include/libavcodec/avcodec.h:2344:9: note: declared here
     int refcounted_frames;
         ^~~~~~~~~~~~~~~~~
src/media.cpp:1233:82: warning: ‘int avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
   int len = avcodec_decode_audio4( m_audio->codec_ctx, frame, &got_frame, packet );
                                                                                  ^
In file included from src/media.cpp:31:0:
/usr/include/libavcodec/avcodec.h:4706:5: note: declared here
 int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
     ^~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:438: obj/media.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/c++/7.3.0/backward/hash_map:60:0,
                 from extlibs/gameswf/base/container.h:75,
                 from extlibs/gameswf/base/tu_file.h:18,
                 from src/swf.cpp:26:
/usr/include/c++/7.3.0/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
 #warning \
  ^~~~~~~
Command '['/bin/bash', '--norc', '--noprofile', '/tmp/ypkg-build119gwr']' returned non-zero exit status 2
kyrios123 commented 6 years ago

attract is the the only blocker for ffmpeg 4.x upgrade on Solus.

mickelson commented 6 years ago

You seem to have an out of date version of src/media.cpp. Try updating to the latest code on master

The log you posted shows:

src/media.cpp:1033:8: error: ‘FF_INPUT_BUFFER_PADDING_SIZE’ was not declared in this scope

That was fixed in this commit: https://github.com/mickelson/attract/commit/4b93a5276fae4b6cdd00d222d9d5b4ba5e02af07#diff-22224edd7bcdf85fd2aa6dfe72a468d8

kyrios123 commented 6 years ago

Indeed, thank you!