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

Fail to Compile on Arch Linux #201

Open
drewinator4 opened this issue May 31, 2022 · 1 comment
Open

Fail to Compile on Arch Linux #201

drewinator4 opened this issue May 31, 2022 · 1 comment

Comments

@drewinator4
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants