Hello All,
I use Arch Linux and am having an issue trying to build AttractMode from scratch and or install it using the Pamac or Pacman installers.
I always run into this issue which I think has to do with an update of some package but at the same time I don't know how to downgrade because I am on a fresh install with no way of doing so.
Anyway here's what I get when trying to install and I should mention I have all the dependencies installed mentioned but I am thinking the versions are the issue?
Any advice would be greatly appreciated.
Here's the output of my trying to install Attract mode on Arch as of 2-21-2022
This is how it ends every time :
src/media.cpp: In member function 'virtual bool FeMedia::onGetData(sf::SoundStream::Chunk&)':
src/media.cpp:1223:37: error: 'AVCodecContext' {aka 'struct AVCodecContext'} has no member named 'refcounted_frames'
1223 | m_audio->codec_ctx->refcounted_frames = 1;
| ^~~~~~~~~~~~~~~~~
src/media.cpp:1232:27: error: 'avcodec_decode_audio4' was not declared in this scope; did you mean 'avcodec_decode_subtitle2'?
1232 | int len = avcodec_decode_audio4( m_audio->codec_ctx, frame, &got_frame, packet );
| ^~~~~~~~~~~~~~~~~~~~~
| avcodec_decode_subtitle2
Compiling obj/squirrel/sqdebug.o...
make: *** [Makefile:459: obj/media.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:459: obj/swf.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
rm -rf /tmp/bauh@user/arch/build_1645474717
Installation logs can be found at "/tmp/bauh@bobby/logs/install/aur/attract/1645474740.log"
It doesn't matter if I use Pamac regardless of Aur or Git or All or use Bauh as I tried here. I get the same error. A week or so ago I could install it without any problems.
But it doesn't matter if I try and compile it from source either because I get the same errors. So I am thinking the package versions have updated and the build code is not finding what it needs or just wont work?
I have no idea. Anyway any help would be appreciated.
Thank you for your time.