Tinob / Ishiiruka

GNU General Public License v2.0
357 stars 119 forks source link

Fail to Compile on Arch Linux #201

Open drewinator4 opened 2 years ago

drewinator4 commented 2 years ago

Attempting to build on Arch Linux gives an error at 67%

(For some reason I can't scroll all the way up so it starts at 15%)

error.txt

The part where it errors:

[ 66%] Building CXX object Source/Core/VideoCommon/CMakeFiles/videocommon.dir/VideoConfig.cpp.o [ 67%] Building CXX object Source/Core/VideoCommon/CMakeFiles/videocommon.dir/VideoState.cpp.o [ 67%] Building CXX object Source/Core/VideoCommon/CMakeFiles/videocommon.dir/XFMemory.cpp.o [ 67%] Building CXX object Source/Core/VideoCommon/CMakeFiles/videocommon.dir/XFStructs.cpp.o [ 67%] Building CXX object Source/Core/VideoCommon/CMakeFiles/videocommon.dir/x64TextureDecoder.cpp.o [ 67%] Building CXX object Source/Core/VideoCommon/CMakeFiles/videocommon.dir/VertexLoaderX64.cpp.o [ 67%] Building CXX object Source/Core/VideoCommon/CMakeFiles/videocommon.dir/AVIDump.cpp.o /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp: In function ‘void InitAVCodec()’: /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp:61:5: error: ‘av_register_all’ was not declared in this scope 61 av_register_all(); ^~~~~~~ /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp: In static member function ‘static bool AVIDump::CreateVideoFile()’: /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp:134:50: error: invalid conversion from ‘const AVOutputFormat’ to ‘AVOutputFormat’ [-fpermissive] 134 AVOutputFormat* output_format = av_guess_format(s_format.c_str(), s_dump_path.c_str(), nullptr); ~~~^~~~~~~~~~~~
const AVOutputFormat*

In file included from /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp:20: /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp:216:70: error: ‘AVFormatContext’ {aka ‘struct AVFormatContext’} has no member named ‘filename’ 216 | NOTICE_LOG(VIDEO, "Opening file %s for dumping", s_format_context->filename); | ^~~~ /home/bike/Ishiiruka/Source/Core/Common/Logging/Log.h:96:44: note: in definition of macro ‘GENERIC_LOG’ 96 | GenericLog(v, t, FILE, LINE, VA_ARGS__); \ | ^~~ /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp:216:3: note: in expansion of macro ‘NOTICE_LOG’ 216 | NOTICE_LOG(VIDEO, "Opening file %s for dumping", s_format_context->filename); | ^~~~~~ /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp:217:58: error: ‘AVFormatContext’ {aka ‘struct AVFormatContext’} has no member named ‘filename’ 217 | if (avio_open(&s_format_context->pb, s_format_context->filename, AVIO_FLAG_WRITE) < 0 || | ^~~~ /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp:220:61: error: ‘AVFormatContext’ {aka ‘struct AVFormatContext’} has no member named ‘filename’ 220 | ERROR_LOG(VIDEO, "Could not open %s", s_format_context->filename); | ^~~~ /home/bike/Ishiiruka/Source/Core/Common/Logging/Log.h:96:44: note: in definition of macro ‘GENERIC_LOG’ 96 | GenericLog(v, t, FILE, LINE, VA_ARGS__); \ | ^~~ /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp:220:5: note: in expansion of macro ‘ERROR_LOG’ 220 | ERROR_LOG(VIDEO, "Could not open %s", s_format_context->filename); | ^~~~~ /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp:224:90: error: ‘AVFormatContext’ {aka ‘struct AVFormatContext’} has no member named ‘filename’ 224 | OSD::AddMessage(StringFromFormat("Dumping Frames to \"%s\" (%dx%d)", s_format_context->filename, | ^~~~ /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp: In function ‘void PreparePacket(AVPacket)’: /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp:232:17: warning: ‘void av_init_packet(AVPacket)’ is deprecated [-Wdeprecated-declarations] 232 | av_init_packet(pkt); | ~~~~^~~ In file included from /usr/include/libavcodec/avcodec.h:45, from /home/bike/Ishiiruka/Source/Core/VideoCommon/AVIDump.cpp:13: /usr/include/libavcodec/packet.h:506:6: note: declared here 506 | void av_init_packet(AVPacket *pkt); | ^~~~~~ make[2]: [Source/Core/VideoCommon/CMakeFiles/videocommon.dir/build.make:1168: Source/Core/VideoCommon/CMakeFiles/videocommon.dir/AVIDump.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:1282: Source/Core/VideoCommon/CMakeFiles/videocommon.dir/all] Error 2 make: *** [Makefile:156: all] Error 2

iwakuraSSBM commented 2 years ago

I do believe this is fixed in master now, try again please.