Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with Qt+USING_GLES2 (and unrelated FFmpeg 4 warnings) #11495

Closed
sagitter opened this issue Oct 27, 2018 · 6 comments
Closed
Labels
Qt Issue on Qt but not all ports.
Milestone

Comments

@sagitter
Copy link

Hello everyone.

What happens?

PPSSPP-1.7 does not compile agaist FFmpeg-4.0.2 when USING_GLES2 option is on:

[ 55%] Building CXX object CMakeFiles/Core.dir/Core/AVIDump.cpp.o
/usr/bin/c++  -DGLEW_NO_GLU -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DSDL -DSHARED_LIBZIP -DSHARED_ZLIB -DUSE_FFMPEG=1 -DUSING_EGL -DUSING_GLES2 -DUSING_QT_UI -DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_XLIB_KHR -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED -D__BSD_VISIBLE=1 -D__LIBRETRO__ -D__STDC_CONSTANT_MACROS -I/builddir/build/BUILD/ppsspp/Core_autogen/include -I/builddir/build/BUILD/ppsspp/ext/native -I/builddir/build/BUILD/ppsspp -I/builddir/build/BUILD/ppsspp/Common -I/builddir/build/BUILD/ppsspp/ext/native/ext/rg_etc1 -I/builddir/build/BUILD/ppsspp/ext/cityhash -I/builddir/build/BUILD/ppsspp/ext/native/ext -I/builddir/build/BUILD/ppsspp/Qt -I/builddir/build/BUILD/ppsspp/ext/libkirk -I/builddir/build/BUILD/ppsspp/ext/sfmt19937 -I/builddir/build/BUILD/ppsspp/ext/xbrz -I/builddir/build/BUILD/ppsspp/ext/xxhash -I/builddir/build/BUILD/ppsspp/ext/snappy/. -isystem /usr/include/SDL2 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtOpenGL -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -I/builddir/build/BUILD/ppsspp/ext/glslang/glslang/.. -I/builddir/build/BUILD/ppsspp/ext/glslang/SPIRV/.. -I/builddir/build/BUILD/ppsspp/ext/SPIRV-Cross-build/../SPIRV-Cross -isystem /usr/include/ffmpeg -I/builddir/build/BUILD/ppsspp/ext/discord-rpc-build/../discord-rpc/src -I/builddir/build/BUILD/ppsspp/ext/discord-rpc-build/../discord-rpc/include -I/builddir/build/BUILD/ppsspp/ext/discord-rpc-build/../rapidjson/include  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -O2 -D_NDEBUG   -Wno-multichar -msse2 -Wno-psabi -fPIC -include /builddir/build/BUILD/ppsspp/ppsspp_config.h -fno-strict-aliasing -ffast-math -std=gnu++11 -o CMakeFiles/Core.dir/Core/AVIDump.cpp.o -c /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp: In function 'void InitAVCodec()':
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:69:19: warning: 'void av_register_all()' is deprecated [-Wdeprecated-declarations]
   av_register_all();
                   ^
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:2025:6: note: declared here
 void av_register_all(void);
      ^~~~~~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:69:19: warning: 'void av_register_all()' is deprecated [-Wdeprecated-declarations]
   av_register_all();
                   ^
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:2025:6: note: declared here
 void av_register_all(void);
      ^~~~~~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp: In static member function 'static bool AVIDump::CreateAVI()':
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:101:29: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  snprintf(s_format_context->filename, sizeof(s_format_context->filename), "%s", s_file_index_str.str().c_str());
                             ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:101:29: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  snprintf(s_format_context->filename, sizeof(s_format_context->filename), "%s", s_file_index_str.str().c_str());
                             ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:101:29: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  snprintf(s_format_context->filename, sizeof(s_format_context->filename), "%s", s_file_index_str.str().c_str());
                             ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:101:64: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  snprintf(s_format_context->filename, sizeof(s_format_context->filename), "%s", s_file_index_str.str().c_str());
                                                                ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:101:64: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  snprintf(s_format_context->filename, sizeof(s_format_context->filename), "%s", s_file_index_str.str().c_str());
                                                                ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:101:64: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  snprintf(s_format_context->filename, sizeof(s_format_context->filename), "%s", s_file_index_str.str().c_str());
                                                                ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
In file included from /builddir/build/BUILD/ppsspp/Common/Common.h:38,
                 from /builddir/build/BUILD/ppsspp/Common/FileUtil.h:26,
                 from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:26:
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:102:63: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  INFO_LOG(COMMON, "Recording Video to: %s", s_format_context->filename);
                                                               ^~~~~~~~
/builddir/build/BUILD/ppsspp/Common/Log.h:104:40: note: in definition of macro 'GENERIC_LOG'
   GenericLog(v, t, __FILE__, __LINE__, __VA_ARGS__); \
                                        ^~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:102:2: note: in expansion of macro 'INFO_LOG'
  INFO_LOG(COMMON, "Recording Video to: %s", s_format_context->filename);
  ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
In file included from /builddir/build/BUILD/ppsspp/Common/Common.h:38,
                 from /builddir/build/BUILD/ppsspp/Common/FileUtil.h:26,
                 from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:26:
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:102:63: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  INFO_LOG(COMMON, "Recording Video to: %s", s_format_context->filename);
                                                               ^~~~~~~~
/builddir/build/BUILD/ppsspp/Common/Log.h:104:40: note: in definition of macro 'GENERIC_LOG'
   GenericLog(v, t, __FILE__, __LINE__, __VA_ARGS__); \
                                        ^~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:102:2: note: in expansion of macro 'INFO_LOG'
  INFO_LOG(COMMON, "Recording Video to: %s", s_format_context->filename);
  ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
In file included from /builddir/build/BUILD/ppsspp/Common/Common.h:38,
                 from /builddir/build/BUILD/ppsspp/Common/FileUtil.h:26,
                 from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:26:
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:102:63: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  INFO_LOG(COMMON, "Recording Video to: %s", s_format_context->filename);
                                                               ^~~~~~~~
/builddir/build/BUILD/ppsspp/Common/Log.h:104:40: note: in definition of macro 'GENERIC_LOG'
   GenericLog(v, t, __FILE__, __LINE__, __VA_ARGS__); \
                                        ^~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:102:2: note: in expansion of macro 'INFO_LOG'
  INFO_LOG(COMMON, "Recording Video to: %s", s_format_context->filename);
  ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:107:37: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  if (File::Exists(s_format_context->filename))
                                     ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:107:37: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  if (File::Exists(s_format_context->filename))
                                     ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:107:37: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  if (File::Exists(s_format_context->filename))
                                     ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:108:34: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
   File::Delete(s_format_context->filename);
                                  ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:108:34: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
   File::Delete(s_format_context->filename);
                                  ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:108:34: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
   File::Delete(s_format_context->filename);
                                  ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:115:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->codec_id = g_Config.bUseFFV1 ? AV_CODEC_ID_FFV1 : s_format_context->oformat->video_codec;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:115:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->codec_id = g_Config.bUseFFV1 ? AV_CODEC_ID_FFV1 : s_format_context->oformat->video_codec;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:115:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->codec_id = g_Config.bUseFFV1 ? AV_CODEC_ID_FFV1 : s_format_context->oformat->video_codec;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:117:13: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   s_stream->codec->codec_tag = MKTAG('X', 'V', 'I', 'D');  // Force XVID FourCC for better compatibility
             ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:117:13: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   s_stream->codec->codec_tag = MKTAG('X', 'V', 'I', 'D');  // Force XVID FourCC for better compatibility
             ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:117:13: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   s_stream->codec->codec_tag = MKTAG('X', 'V', 'I', 'D');  // Force XVID FourCC for better compatibility
             ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:118:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->codec_type = AVMEDIA_TYPE_VIDEO;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:118:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->codec_type = AVMEDIA_TYPE_VIDEO;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:118:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->codec_type = AVMEDIA_TYPE_VIDEO;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:119:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->bit_rate = 400000;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:119:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->bit_rate = 400000;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:119:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->bit_rate = 400000;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:120:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->width = s_width;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:120:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->width = s_width;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:120:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->width = s_width;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:121:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->height = s_height;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:121:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->height = s_height;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/make[2]: Leaving directory '/builddir/build/BUILD/ppsspp'
libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:121:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->height = s_height;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:122:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->time_base.num = 1001;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:122:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->time_base.num = 1001;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:122:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->time_base.num = 1001;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:123:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->time_base.den = 60000;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:123:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->time_base.den = 60000;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:123:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->time_base.den = 60000;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:124:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->gop_size = 12;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:124:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->gop_size = 12;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:124:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->gop_size = 12;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:125:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->pix_fmt = g_Config.bUseFFV1 ? AV_PIX_FMT_BGRA : AV_PIX_FMT_YUV420P;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:125:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->pix_fmt = g_Config.bUseFFV1 ? AV_PIX_FMT_BGRA : AV_PIX_FMT_YUV420P;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:125:12: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_stream->codec->pix_fmt = g_Config.bUseFFV1 ? AV_PIX_FMT_BGRA : AV_PIX_FMT_YUV420P;
            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:127:47: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  if (!(codec = avcodec_find_encoder(s_stream->codec->codec_id)) || (avcodec_open2(s_stream->codec, codec, nullptr) < 0))
                                               ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:127:47: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  if (!(codec = avcodec_find_encoder(s_stream->codec->codec_id)) || (avcodec_open2(s_stream->codec, codec, nullptr) < 0))
                                               ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:127:47: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  if (!(codec = avcodec_find_encoder(s_stream->codec->codec_id)) || (avcodec_open2(s_stream->codec, codec, nullptr) < 0))
                                               ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:127:93: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  if (!(codec = avcodec_find_encoder(s_stream->codec->codec_id)) || (avcodec_open2(s_stream->codec, codec, nullptr) < 0))
                                                                                             ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:127:93: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  if (!(codec = avcodec_find_encoder(s_stream->codec->codec_id)) || (avcodec_open2(s_stream->codec, codec, nullptr) < 0))
                                                                                             ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:127:93: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  if (!(codec = avcodec_find_encoder(s_stream->codec->codec_id)) || (avcodec_open2(s_stream->codec, codec, nullptr) < 0))
                                                                                             ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:135:37: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_scaled_frame->format = s_stream->codec->pix_fmt;
                                     ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:135:37: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_scaled_frame->format = s_stream->codec->pix_fmt;
                                     ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:135:37: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_scaled_frame->format = s_stream->codec->pix_fmt;
                                     ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Common/Common.h:38,
                 from /builddir/build/BUILD/ppsspp/Common/FileUtil.h:26,
                 from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:26:
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:147:67: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  NOTICE_LOG(G3D, "Opening file %s for dumping", s_format_context->filename);
                                                                   ^~~~~~~~
/builddir/build/BUILD/ppsspp/Common/Log.h:104:40: note: in definition of macro 'GENERIC_LOG'
   GenericLog(v, t, __FILE__, __LINE__, __VA_ARGS__); \
                                        ^~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:147:2: note: in expansion of macro 'NOTICE_LOG'
  NOTICE_LOG(G3D, "Opening file %s for dumping", s_format_context->filename);
  ^~~~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
In file included from /builddir/build/BUILD/ppsspp/Common/Common.h:38,
                 from /builddir/build/BUILD/ppsspp/Common/FileUtil.h:26,
                 from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:26:
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:147:67: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  NOTICE_LOG(G3D, "Opening file %s for dumping", s_format_context->filename);
                                                                   ^~~~~~~~
/builddir/build/BUILD/ppsspp/Common/Log.h:104:40: note: in definition of macro 'GENERIC_LOG'
   GenericLog(v, t, __FILE__, __LINE__, __VA_ARGS__); \
                                        ^~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:147:2: note: in expansion of macro 'NOTICE_LOG'
  NOTICE_LOG(G3D, "Opening file %s for dumping", s_format_context->filename);
  ^~~~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
In file included from /builddir/build/BUILD/ppsspp/Common/Common.h:38,
                 from /builddir/build/BUILD/ppsspp/Common/FileUtil.h:26,
                 from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:26:
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:147:67: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  NOTICE_LOG(G3D, "Opening file %s for dumping", s_format_context->filename);
                                                                   ^~~~~~~~
/builddir/build/BUILD/ppsspp/Common/Log.h:104:40: note: in definition of macro 'GENERIC_LOG'
   GenericLog(v, t, __FILE__, __LINE__, __VA_ARGS__); \
                                        ^~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:147:2: note: in expansion of macro 'NOTICE_LOG'
  NOTICE_LOG(G3D, "Opening file %s for dumping", s_format_context->filename);
  ^~~~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:148:57: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  if (avio_open(&s_format_context->pb, s_format_context->filename, AVIO_FLAG_WRITE) < 0 || avformat_write_header(s_format_context, nullptr))
                                                         ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:148:57: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  if (avio_open(&s_format_context->pb, s_format_context->filename, AVIO_FLAG_WRITE) < 0 || avformat_write_header(s_format_context, nullptr))
                                                         ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:148:57: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
  if (avio_open(&s_format_context->pb, s_format_context->filename, AVIO_FLAG_WRITE) < 0 || avformat_write_header(s_format_context, nullptr))
                                                         ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
In file included from /builddir/build/BUILD/ppsspp/Common/Common.h:38,
                 from /builddir/build/BUILD/ppsspp/Common/FileUtil.h:26,
                 from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:26:
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:150:56: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
   WARN_LOG(G3D, "Could not open %s", s_format_context->filename);
                                                        ^~~~~~~~
/builddir/build/BUILD/ppsspp/Common/Log.h:104:40: note: in definition of macro 'GENERIC_LOG'
   GenericLog(v, t, __FILE__, __LINE__, __VA_ARGS__); \
                                        ^~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:150:3: note: in expansion of macro 'WARN_LOG'
   WARN_LOG(G3D, "Could not open %s", s_format_context->filename);
   ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
In file included from /builddir/build/BUILD/ppsspp/Common/Common.h:38,
                 from /builddir/build/BUILD/ppsspp/Common/FileUtil.h:26,
                 from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:26:
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:150:56: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
   WARN_LOG(G3D, "Could not open %s", s_format_context->filename);
                                                        ^~~~~~~~
/builddir/build/BUILD/ppsspp/Common/Log.h:104:40: note: in definition of macro 'GENERIC_LOG'
   GenericLog(v, t, __FILE__, __LINE__, __VA_ARGS__); \
                                        ^~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:150:3: note: in expansion of macro 'WARN_LOG'
   WARN_LOG(G3D, "Could not open %s", s_format_context->filename);
   ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
In file included from /builddir/build/BUILD/ppsspp/Common/Common.h:38,
                 from /builddir/build/BUILD/ppsspp/Common/FileUtil.h:26,
                 from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:26:
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:150:56: warning: 'AVFormatContext::filename' is deprecated [-Wdeprecated-declarations]
   WARN_LOG(G3D, "Could not open %s", s_format_context->filename);
                                                        ^~~~~~~~
/builddir/build/BUILD/ppsspp/Common/Log.h:104:40: note: in definition of macro 'GENERIC_LOG'
   GenericLog(v, t, __FILE__, __LINE__, __VA_ARGS__); \
                                        ^~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:150:3: note: in expansion of macro 'WARN_LOG'
   WARN_LOG(G3D, "Could not open %s", s_format_context->filename);
   ^~~~~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:1408:23: note: declared here
     char filename[1024];
                       ^
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp: In static member function 'static void AVIDump::AddFrame()':
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:188:112: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  if ((s_sws_context = sws_getCachedContext(s_sws_context, w, h, AV_PIX_FMT_RGB24, s_width, s_height, s_stream->codec->pix_fmt, SWS_BICUBIC, nullptr, nullptr, nullptr)))
                                                                                                                ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:188:112: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  if ((s_sws_context = sws_getCachedContext(s_sws_context, w, h, AV_PIX_FMT_RGB24, s_width, s_height, s_stream->codec->pix_fmt, SWS_BICUBIC, nullptr, nullptr, nullptr)))
                                                                                                                ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:188:112: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  if ((s_sws_context = sws_getCachedContext(s_sws_context, w, h, AV_PIX_FMT_RGB24, s_width, s_height, s_stream->codec->pix_fmt, SWS_BICUBIC, nullptr, nullptr, nullptr)))
                                                                                                                ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:193:37: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_scaled_frame->format = s_stream->codec->pix_fmt;
                                     ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:193:37: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_scaled_frame->format = s_stream->codec->pix_fmt;
                                     ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:193:37: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  s_scaled_frame->format = s_stream->codec->pix_fmt;
                                     ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:201:46: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  int error = avcodec_encode_video2(s_stream->codec, &pkt, s_scaled_frame, &got_packet);
                                              ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:201:46: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  int error = avcodec_encode_video2(s_stream->codec, &pkt, s_scaled_frame, &got_packet);
                                              ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:201:46: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  int error = avcodec_encode_video2(s_stream->codec, &pkt, s_scaled_frame, &got_packet);
                                              ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:201:86: warning: 'int avcodec_encode_video2(AVCodecContext*, AVPacket*, const AVFrame*, int*)' is deprecated [-Wdeprecated-declarations]
  int error = avcodec_encode_video2(s_stream->codec, &pkt, s_scaled_frame, &got_packet);
                                                                                      ^
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:18:
/usr/include/ffmpeg/libavcodec/avcodec.h:5386:5: note: declared here
 int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:201:86: warning: 'int avcodec_encode_video2(AVCodecContext*, AVPacket*, const AVFrame*, int*)' is deprecated [-Wdeprecated-declarations]
  int error = avcodec_encode_video2(s_stream->codec, &pkt, s_scaled_frame, &got_packet);
                                                                                      ^
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:18:
/usr/include/ffmpeg/libavcodec/avcodec.h:5386:5: note: declared here
 int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:207:46: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    pkt.pts = av_rescale_q(pkt.pts, s_stream->codec->time_base, s_stream->time_base);
                                              ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:207:46: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    pkt.pts = av_rescale_q(pkt.pts, s_stream->codec->time_base, s_stream->time_base);
                                              ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:207:46: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    pkt.pts = av_rescale_q(pkt.pts, s_stream->codec->time_base, s_stream->time_base);
                                              ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:211:46: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    pkt.dts = av_rescale_q(pkt.dts, s_stream->codec->time_base, s_stream->time_base);
                                              ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:211:46: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    pkt.dts = av_rescale_q(pkt.dts, s_stream->codec->time_base, s_stream->time_base);
                                              ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:211:46: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    pkt.dts = av_rescale_q(pkt.dts, s_stream->codec->time_base, s_stream->time_base);
                                              ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:222:43: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   error = avcodec_encode_video2(s_stream->codec, &pkt, nullptr, &got_packet);
                                           ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:222:43: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   error = avcodec_encode_video2(s_stream->codec, &pkt, nullptr, &got_packet);
                                           ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:222:43: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   error = avcodec_encode_video2(s_stream->codec, &pkt, nullptr, &got_packet);
                                           ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:222:76: warning: 'int avcodec_encode_video2(AVCodecContext*, AVPacket*, const AVFrame*, int*)' is deprecated [-Wdeprecated-declarations]
   error = avcodec_encode_video2(s_stream->codec, &pkt, nullptr, &got_packet);
                                                                            ^
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:18:
/usr/include/ffmpeg/libavcodec/avcodec.h:5386:5: note: declared here
 int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:222:76: warning: 'int avcodec_encode_video2(AVCodecContext*, AVPacket*, const AVFrame*, int*)' is deprecated [-Wdeprecated-declarations]
   error = avcodec_encode_video2(s_stream->codec, &pkt, nullptr, &got_packet);
                                                                            ^
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:18:
/usr/include/ffmpeg/libavcodec/avcodec.h:5386:5: note: declared here
 int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp: In static member function 'static void AVIDump::CloseFile()':
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:245:17: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   if (s_stream->codec)
                 ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:245:17: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   if (s_stream->codec)
                 ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:245:17: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   if (s_stream->codec)
                 ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:250:28: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    avcodec_close(s_stream->codec);
                            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:250:28: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    avcodec_close(s_stream->codec);
                            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:250:28: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    avcodec_close(s_stream->codec);
                            ^~~~~
In file included from /builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:19:
/usr/include/ffmpeg/libavformat/avformat.h:877:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp: At global scope:
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:59:13: warning: 's_start_dumping' defined but not used [-Wunused-variable]
 static bool s_start_dumping = false;
             ^~~~~~~~~~~~~~~
/builddir/build/BUILD/ppsspp/Core/AVIDump.cpp:56:12: warning: 's_bytes_per_pixel' defined but not used [-Wunused-variable]
 static int s_bytes_per_pixel;
            ^~~~~~~~~~~~~~~~~

What should happen?

No errors.

What hardware, operating system, and PPSSPP version? On desktop, GPU matters for graphical issues.

It's a test build on RPM build system on Fedora 28 x86_64.
Full build log: here
Dependencies list: here

@unknownbrackets
Copy link
Collaborator

unknownbrackets commented Oct 27, 2018

FFmpeg doesn't really maintain backwards compatibility or a good API change log. You should always assume that updating ffmpeg will break anything that uses it which isn't a simple track based video/music player.

We compile and test against a stock 3.0.2 and don't really gain anything from changes in newer versions (we mainly use the obscure codec the PSP uses, which hasn't had changes in FFmpeg in years.)

That said, pull requests accepted.

-[Unknown]

@jbeich
Copy link
Contributor

jbeich commented Oct 28, 2018

Probably a duplicate of #10664, #9032 or #7479. Below is an excerpt:

In file included from /usr/include/qt5/QtGui/qopengl.h:141,
                 from /usr/include/qt5/QtOpenGL/qgl.h:45,
                 from /usr/include/qt5/QtOpenGL/QGLWidget:1,
                 from /builddir/build/BUILD/ppsspp/Qt/QtMain.h:8,
                 from /builddir/build/BUILD/ppsspp/Qt/QtMain.cpp:30:
/usr/include/GL/gl.h:794:49: error: 'void glReadBuffer(GLenum)' redeclared as different kind of symbol
 GLAPI void GLAPIENTRY glReadBuffer( GLenum mode );
                                                 ^
In file included from /builddir/build/BUILD/ppsspp/ext/native/gfx/gl_common.h:25,
                 from /builddir/build/BUILD/ppsspp/ext/native/gfx_es2/glsl_program.h:10,
                 from /builddir/build/BUILD/ppsspp/Qt/QtMain.h:7,
                 from /builddir/build/BUILD/ppsspp/Qt/QtMain.cpp:30:
/builddir/build/BUILD/ppsspp/ext/native/gfx/../gfx_es2/gl3stub.h:396:49: note: previous declaration 'void (* glReadBuffer)(GLenum)'
 extern GL_APICALL void           (* GL_APIENTRY glReadBuffer) (GLenum mode);
                                                 ^~~~~~~~~~~~

@unknownbrackets
Copy link
Collaborator

Hm. That's because USING_GLES2 is defined, but Qt pulled in desktop GL/gl.h, I think?

I don't see that error quoted originally, but I do see USING_GLES2 + Qt. Maybe there's some other define that must be passed to convince Qt to use GLES headers? Perhaps QT_NO_OPENGL or QT_OPENGL_ES_2 need to somehow be defined.

-[Unknown]

@unknownbrackets unknownbrackets added the Qt Issue on Qt but not all ports. label Oct 28, 2018
@unknownbrackets unknownbrackets changed the title Compilation error with FFmpeg 4 Compilation error with Qt+USING_GLES2 (and unrelated FFmpeg 4 warnings) Oct 28, 2018
@jbeich
Copy link
Contributor

jbeich commented Oct 28, 2018

I don't see that error quoted originally

ffmpeg 4.0 support was fixed in 70c54a7, so I've looked at "Full build log: here" and quoted the actual error.

Perhaps QT_NO_OPENGL or QT_OPENGL_ES_2 need to somehow be defined.

QT_OPENGL_ES_2 fixes the conflict (at least, on FreeBSD + Qt 5.11.2) while QT_NO_OPENGL leads to

In file included from .../ppsspp-1.7/Qt/QtMain.cpp:30:
.../ppsspp-1.7/Qt/QtMain.h:107:23: error: unknown class name 'QGLWidget';
      did you mean 'QWidget'?
class MainUI : public QGLWidget
                      ^~~~~~~~~
                      QWidget
/usr/local/include/qt5/QtWidgets/qwidget.h:128:24: note: 'QWidget' declared here
class Q_WIDGETS_EXPORT QWidget : public QObject, public QPaintDevice
                       ^
.../ppsspp-1.7/Qt/QtMain.cpp:230:2: error: initializer 'QGLWidget' does
      not name a non-static data member or base class; did you mean the base class 'QWidget'?
        QGLWidget(parent)
        ^~~~~~~~~
        QWidget
.../ppsspp-1.7/Qt/QtMain.h:107:16: note: base class 'QWidget' specified
      here
class MainUI : public QGLWidget
               ^~~~~~~~~~~~~~~~
.../ppsspp-1.7/Qt/QtMain.cpp:289:5: error: use of undeclared identifier
      'updateGL'; did you mean 'update'?
    updateGL();
    ^~~~~~~~
    update
/usr/local/include/qt5/QtWidgets/qwidget.h:459:10: note: 'update' declared here
    void update();
         ^
.../ppsspp-1.7/Qt/QtMain.cpp:295:5: error: use of undeclared identifier
      'QGLWidget'; did you mean 'QWidget'?
    QGLWidget::changeEvent(e);
    ^~~~~~~~~
    QWidget
/usr/local/include/qt5/QtWidgets/qwidget.h:128:24: note: 'QWidget' declared here
class Q_WIDGETS_EXPORT QWidget : public QObject, public QPaintDevice
                       ^
4 errors generated.

unknownbrackets added a commit to unknownbrackets/ppsspp that referenced this issue Oct 28, 2018
@unknownbrackets
Copy link
Collaborator

Okay, hopefully #11507 fixes this, then.

-[Unknown]

unknownbrackets added a commit to unknownbrackets/ppsspp that referenced this issue Oct 28, 2018
@sagitter
Copy link
Author

Changes in #11507 are working for me.

@unknownbrackets unknownbrackets added this to the v1.8.0 milestone Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Qt Issue on Qt but not all ports.
Projects
None yet
Development

No branches or pull requests

3 participants