Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: SuperContraptionGuy on December 19, 2017, 11:44:00 AM
-
I'm compiling attract from source on an existing RetroPie install according to the github wiki instructions here: https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-%28Raspbian-Jessie%29
I compiled FFmpeg myself, I read that it had issues in the past. I'll try to build it with the pre-compiled binaries.
After following the instructions to build the non X version, I got these errors on run:
pi@raspberrypi:~ $ attract
Attract-Mode v2.3.0 (Linux, SFML 2.4 +FontConfig +GLES +SWF)
avcodec 58.8.100 / avformat 58.3.100 / swscale 5.0.101 / swresample 3.0.101
Config file not found: /home/pi/.attract/attract.cfg, performing initial setup.
- Constructed 1 filters in 0 ms (1 comparisons)
Failed to get vendor ID of joystick /dev/input/js0
Failed to get product ID of joystick /dev/input/js0
Failed to get vendor ID of joystick /dev/input/js1
Failed to get product ID of joystick /dev/input/js1
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
Segmentation fault
As far as the joysticks, I'm using an Xarcade brand joystick with xArcade2Jstick as a the driver. I noticed that the pulse audio failure is a known issue, but is it the fatal error that caused a Segmentation fault? I'm going to recompile and see if I was just a mistake I made in the build process, but in the mean time hopefully someone has some advice to help me get attract mode up and running. Thanks
-
i had the pulse error installing from experimental until i updated pie scripts then it went through fine.
-
@SuperContraptionGuy - I just updated the Pi FAQ and the Wiki. These new changes should fix your issue.
@night - It sounds like you're using the RetroPie Setup menu which is a different process/install/upgrade.
P.S. The pulse warning has nothing to do with your problem.
-
Sweet, thanks for the prompt reply. What part/which command of the wiki did you change? (I see them now, just had to compare revisions.)
Yeah, I didn't think it was pulse.
-
I made several changes to correct everything on a new build.
- dependency change
- SFML for new firmware change
- FFMPEG to remove obsolete switch
- AM to use "sudo make install USE_GLES=1"
-
I removed everything, re-downloaded, re-compiled, and re-installed. To no avail.
the new version numbers reflect the changes in the new build:
pi@raspberrypi:~ $ attract
Attract-Mode v2.3.0 (Linux, SFML 2.4 +FontConfig +GLES +SWF)
avcodec 56.1.0 / avformat 56.1.0 / swscale 3.0.0 / avresample 2.1.0
Config file not found: /home/pi/.attract/attract.cfg, performing initial setup.
- Constructed 1 filters in 0 ms (1 comparisons)
Failed to get vendor ID of joystick /dev/input/js0
Failed to get product ID of joystick /dev/input/js0
Failed to get vendor ID of joystick /dev/input/js1
Failed to get product ID of joystick /dev/input/js1
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
Segmentation fault
But still no run. Any ideas?
-
The new SFML changes are for the newest firmware.
Use "sudo apt-get update; sudo apt-get upgrade" to get the latest firmware
or use
"-cmake .. -DSFML_RPI=1 -DEGL_INCLUDE_DIR=/opt/vc/include -DEGL_LIBRARY=/opt/vc/lib/libEGL.so -DGLES_INCLUDE_DIR=/opt/vc/include -DGLES_LIBRARY=/opt/vc/lib/libGLESv1_CM.so" when compiling SFML with the old firmware