Author Topic: Attract mode compile on Pi3 failed  (Read 4142 times)

infrared

  • Newbie
  • *
  • Posts: 1
    • View Profile
Attract mode compile on Pi3 failed
« on: November 19, 2017, 06:09:37 AM »
Hello,

i am try to compile attract in my raspberry pi 3 but when i give the command "make USE_GLES=1" ends with an error:

src/media.cpp:973:6: error: ‘FF_INPUT_BUFFER_PADDING_SIZE’ was not declared in this scope

I follow the instructions from this page https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-%28Raspbian-Jessie%29
and the raspbian jessie lite  is a fresh image on my 32GB sd card.

What am i doing wrong ?
Any help please ?



« Last Edit: November 19, 2017, 06:20:23 AM by infrared »

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Attract mode compile on Pi3 failed
« Reply #1 on: November 20, 2017, 12:15:02 AM »
I can confirm there are issues following the wiki steps for a Pi Jessie install and/or upgrade.


I can see a change was made to AM here https://github.com/mickelson/attract/commit/f3bc4fba9a460028839386cf946c9d4eac167d72

I can see workarounds for RetroPie installs of AM here https://github.com/mickelson/attract/issues/382 and here https://github.com/RetroPie/RetroPie-Setup/issues/2193

I know that the ffmpeg install changed and caused minors issues which is mentioned here http://forum.attractmode.org/index.php?topic=1249.msg11002#msg11002


The latest AM build for Pi on Jessie seems to fail like you describe if you compile ffmpeg on your own. AM compiles ok if you use the pre-built ffmpeg modules but then it fails to run when trying to launch "attract". There haven't been any updates to the compile documents to let us know how the first change above affects Pi users.

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Attract mode compile on Pi3 failed
« Reply #2 on: November 22, 2017, 10:05:24 AM »

cosmo

  • Full Member
  • ***
  • Posts: 54
    • View Profile
Re: Attract mode compile on Pi3 failed
« Reply #3 on: December 09, 2017, 12:54:17 PM »
I¡m having the same segmentation fault issue compiling AM. Installing from experimental packages works, but there's no mmal hardware acceleration.  :-\

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Attract mode compile on Pi3 failed
« Reply #4 on: December 10, 2017, 11:45:09 PM »
I¡m having the same segmentation fault issue compiling AM. Installing from experimental packages works, but there's no mmal hardware acceleration.  :-\

This is an issue for certain. It's been around for three weeks, since the compile was fixed for the Pi. I know that the AM build works and compiles. I don't think this is an AM issue.

I looked at the RetroPie Setup menu install script (which works) and I can see that they isolate the installs of AM and SFML and make a script to run AM in the /usr/bin folder where the "attract" executable is usually stored. I can see they use a different libjpeg than the AM docs use. I'll also mention that the SFML compile commands have recently changed (this is shown in the SFML docs) for newer firmware versions of the Pi.

I saw the issue a while ago and have made attempts to correct it. I figured someone else would have a solution by now but I guess most people are using a downloaded image or are installing via the RetroPie Setup menu. I don't use either of these and enjoy 2.3 on my Windows build but still use 2.2 on my Pi.

I think you could hack the RetroPie Setup script to get mmal. Install ffmpeg manually before hand and then edit the RetroPie Attract-Mode script to eliminate the pre-built AV modules (libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavresample-dev). This isn't a great solution and I haven't tried it but it should work. Personally I'll work on or wait for a better solution.

P.S. This should really be a new thread called something like Segmentation Fault... RetroPie Image
« Last Edit: December 10, 2017, 11:57:31 PM by progets »

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Attract mode compile on Pi3 failed
« Reply #5 on: December 19, 2017, 01:03:08 PM »
See the updated steps in the Pi FAQ or Wiki to fix this issue.