Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: kent79 on October 17, 2022, 06:37:30 PM
-
Hello, I would like compile AM with mmal (hardware Video Decoder) in raspberry pi OS as following below steps. But I got the error while on "make -j4 USE_GLES=1" line. Anyone know how to correct it. Thank you
cd ~/build
sudo apt-get install libomxil-bellagio-dev libmp3lame-dev
git clone --depth 1 git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
./configure --arch=armhf --target-os=linux --enable-gpl --enable-mmal --enable-omx --enable-omx-rpi --enable-nonfree --enable-libfreetype --extra-libs=-lasound --enable-libmp3lame --disable-debug --enable-shared
make -j4
sudo make install
sudo ldconfig
cd ~/build
git clone --depth 1 https://github.com/mickelson/attract.git
cd attract
make -j4 USE_GLES=1
sudo make install
-
Steps are in the Pi FAQ http://forum.attractmode.org/index.php?topic=1249.msg9046#msg9046 (http://forum.attractmode.org/index.php?topic=1249.msg9046#msg9046).
-
No luck. I have tried many times. Still no mmal options and the CPU usuage is running 305%. Finially, I install retropie and bulit in attact mode options. The mmal options can display and CPU usage is 35% only. I don't know why I can't compile AM by myself without retropie. I am using rpi 3b+. :(
-
I haven't compiled AM on the Pi for a long time. The steps worked when I wrote the FAQ and I updated them at least twice then since, once was due to a change in ffmpeg and another due to a change in the AM code. Years ago this was a hot topic but these days people want things fast and easy so most people just download premade images, which IMO aren't the best.
It was fun to figure out back then to help some friends build cheap cabinets but I have always used a full PC in mine so I haven't kept up with it over the years. Try sending a message to Floob, he was really into the Pi back then and I think he still is, he made this post earlier in the year http://forum.attractmode.org/index.php?topic=705.msg29435#msg29435 (http://forum.attractmode.org/index.php?topic=705.msg29435#msg29435).
If you do find an answer, let me know so I can update the FAQ for others.
-
I 'll tell you I only ran Raspbian on the Pi for AM, I'm not sure what OS you're using. I'll also mention that the "make -j4" switch often produced errors for no reason I could see, it was hit or miss. When I ran "make" without the "-j4" switch it was successful every time. "make -j4" was much faster but also failed a lot, which is useless. This is why the Pi FAQ didn't even mention the "-j4" switch (not to mention that the earlier Pis were only single core).
-
Thank you for your kindly man. I will give up compile it by myself. I will use retropie to install AM instead. :)