Author Topic: Arch Linux Can't install Attractmode build issues.  (Read 1906 times)

SeriousBob

  • Newbie
  • *
  • Posts: 9
    • View Profile
Arch Linux Can't install Attractmode build issues.
« on: February 21, 2022, 12:24:25 PM »
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.


SeriousBob

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Arch Linux Can't install Attractmode build issues.
« Reply #1 on: February 22, 2022, 12:44:35 AM »
UPDATE : I was able to get the git version to install which is an older 2016 version I think, but that's good enough for me. I could not get the latest version to install though.

Either way, my problem is solved.

kent79

  • Hero Member
  • *****
  • Posts: 852
    • View Profile
Re: Arch Linux Can't install Attractmode build issues.
« Reply #2 on: February 22, 2022, 03:37:24 PM »
The new version of AM 2.6.2 is just out. You may try again  ;)