attract
attract copied to clipboard
Compiling on the Raspberry Pi 4 (Raspbian Buster)
It seems to be the opportune moment to update the compilation guide of Attract-Mode in pi4 with Raspbian Buster, right?
sounds good, pull requests welcomed
On Jul 13, 2019, at 4:49 AM, zlagos [email protected] wrote:
It seems to be the opportune moment to update the compilation guide of Attract-Mode in pi4 with Raspbian Buster, right?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
I have already prepared the pull request, with the AM compilation in Buster, including Buster Lite, but I have two problems: 1 - This does not allow me to add a new pull request anywhere. 2 - After doing the whole compilation process (in my raspberry pi 4 4GB) without seeing any error message, when I'm going to start attract-mode, it doesn't start and says "* failed to add service - already in use?
Hi, I have the same exact same problem. No problem compiling like @ghost, but when it's time to start it, I have the same error : "* failed to add service - already in us?"
I had the same error when compiling Retroarch on the Raspberry Pi 4. It seems to be a problem with version 1 of OpenGL (Gl1) which is not supported in the new GPU if I remember well. Just before compiling, one guy suggested to add flag(option) to disabled it from the make so the application is not trying to start it(causing the error we get).
I don't know how to interpret this Attract-Mode, but I would like to get it working on my Raspberry Pi 4. This guy @karbinunit on Github was able to get us debugged by this command before compiling : CFLAGS='-mfpu=neon -mtune=cortex-a72 -march=armv8-a' ./configure --enable-alsa --enable-udev --enable-neon --disable-videocore --enable-opengles --enable-opengles3 --disable-opengl1 --enable-x11
Source is : https://gist.github.com/AlexMax/32e5d038a66ce57253e740ea75736805
I am not too sure if you can do something with that from here. If i find something, I'll let you know.
Just saw Attract-Mode was updated to 2.6.0 @SUPER-DAN does it fix your issue?
@kwyxz This is issue still occurs with 2.6.0 when compiling with the most recent raspbian updates.
This error has disappeared with the latest code from git and raspian updates :+1:
@mbirnie did you do anything specific? Following the documentation here - which means building sfml-pi and ffmpeg for mmal - I am still getting the error * failed to add service - already in use?
when attempting to run attract mode from the command line (without X11) on a Raspberry Pi 4 running Raspbian with the latest update.
I did nothing specific. I am currently on the latest raspbian image with all the latest updates. This version of raspbian also has a libsfml-dev package that can be installed instead of building sfml locally. I cloned the attract mode git repository from Oct 29th and built with USE_GLES=1
Thanks, I had not thought about building using the Raspbian package for SMFL. I'll give it a try.
@mbirnie can you please confirm you're running Attract-Mode with FKMS and not X11 because building the latest git rev using libsfml-dev from Raspbian and USE_GLES=1 I end up with Failed to open X11 display; make sure the DISPLAY environment variable is set correctly
when running attract-mode.
I definitely don't think mbirnie got the compilation in the terms he told us. Either something is missing, or does not tell the truth.
any update on if anyone was successful?
Sorry, I've been busy starting my own business and have had little time for hobbies... I am using the FKMS overlay driver with X11. With the latest git commits, I got attract-mode to work when compiled with
make USE_GLES=1 USE_VC4=1
If @mbirnie is using attract-mode he will do it under x11, because compiling as he says the message still comes out: "Failed to open X11 display; make sure the DISPLAY environment variable is set correctly"
I just added a page to the wiki with the build process I followed to get a working build in Buster.
I just added a page to the wiki with the build process I followed to get a working build in Buster.
Could you provide a link :S
https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-4-(Raspbian-Buster)
I just added a page to the wiki with the build process I followed to get a working build in Buster.
Could you provide a link :S
https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-4-(Raspbian-Buster)
Thanks this will help users fine a direct link. Also did you get this working on a pi 4 ?
Yes, these were the steps I took to get it running on my Pi 4.
Yes, these were the steps I took to get it running on my Pi 4.
... under X11, right?
Very strange issue still shows Even on a fresh install that is already in use... mhmmm
Unless SFML is patched, there's no way to use Attract on the Raspberry Pi 4 without X11.
Very strange issue still shows Even on a fresh install that is already in use... mhmmm
Unless SFML is patched, there's no way to use Attract on the Raspberry Pi 4 without X11.
What’s the best guide to follow to install it on X11 at this time for new users.
Try this -> https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-4-(Raspbian-Buster)
@chase-cobb - When I follow your steps on a clean build of Raspian Buster, I get the error "Failed to open X11 Display". Is there something I should've done before trying to run it?
@chase-cobb - When I follow your steps on a clean build of Raspian Buster, I get the error "Failed to open X11 Display". Is there something I should've done before trying to run it?
Yes : install and run X11.
NVM. I was using a terminal from my PC (so I could easily just copy ROMs across once it was installed). I decided I'd just try it straight on the machine (run > attract) and it works fine (so far). Now to install some emulators and ROMs and try it out.
Cheers. :)
EDIT - Out of interest, is it worth trying to install it on the latest RetroPie or is that a no go? And while I've got you, does lr-mame2003 run on Buster / RP?
Thanks again.
The buster guide works great to compile but attract will run only on desktop/x11 otherwise "Failed to open X11 Display" You can edit autostart to startx and then attract. But it would be nice to run with FKMS as everything now changed for pi4 support. Probably a clean buster with desktop and and no kms enabled should work as before, right?
What do you mean by saying "through RetroPie" ? AM will not magically turn complicit with KMS.
Hi @supremeretropie Unfo Attract mode runs over x11 not with KMS at the moment. I can run attract on the desktop my self thats not the problem. AM cant run and boot directly to it from cli as in the past as a seaprate frontend. Thats the only way to run it, over x11. I think the discussion here is to make AM boot/run as was on pi3. Option to exit retropie boot direct to AM if supported.
OK from what you posted last if their devs manage to make it run oven KMS then task will be accomplished. Ive already updated my auto install scritps for pi4. Now we wait for KMS :-)
The main advantage of FKMS is that we can finally have shaders working on PI. This requires a serious rewrite of the SFML linux window/glcontext management functions.
@supremeretropie ill reply quick as its not the place. since PB v1 Nov 2008 I have created an auto installation script for ppl to install AM and all extras. Now ive updated to include the latest pi4 devs advised.
@chase-cobb - When I follow your steps on a clean build of Raspian Buster, I get the error "Failed to open X11 Display". Is there something I should've done before trying to run it?
Yes : install and run X11.
how do you install and run x11
@chase-cobb - When I follow your steps on a clean build of Raspian Buster, I get the error "Failed to open X11 Display". Is there something I should've done before trying to run it?
Yes : install and run X11.
how do you install and run x11
Just google "install x11" but if you have already desktop on your pi4 probably you have it. If you have you can run the attract mode in there