Tutorial - How to compile Attract-Mode on your Odroid XU3/XU4.
This tutorial works for Attract-Mode V2.2.0Log into your Odroid as
Root user (otherwise you need to add "sudo")
Also these steps have been used on a Debian Jessie based image (OGST)
Install git-coreapt-get install git-core
Create a build environment:cd /home/odroid
mkdir develop
apt-get install cmake libx11-dev libx11-xcb-dev libflac-dev libogg-dev libvorbis-dev libopenal-dev libjpeg62-turbo-dev libfreetype6-dev libxcb-randr0-dev libxcb-image0-dev libxcb-util0-dev libxcb-ewmh-dev libxcb-keysyms1-dev libxcb-icccm4-dev libudev-dev libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavresample-dev libfontconfig1-dev
(Attract-Mode was originally using
libjpeg8-dev, but on debian Jessie it's been replaced by
libjpeg62-turbo-dev, so if you don't have a Debian Jessie based image, maybe you'll need to install
libjpeg8-dev instead)
Download and build SFML:If you have installed OGST image on your Odroid, you should be able to install SFML just with this:
apt-get install libsfml-odroid
If it works, then you can skip the next steps and go directly to "Build Attract-Mode"
Otherwise you need a few more steps:
cd develop
git clone https://github.com/SFML/SFML sfml
Before building SFML library, 4 files need some modifications:
/home/odroid/develop/sfml/src/SFML/Window/EglContext.cpp
/home/odroid/develop/sfml/src/SFML/Window/EglContext.hpp
/home/odroid/develop/sfml/src/SFML/Window/GlContext.cpp
/home/odroid/develop/sfml/src/SFML/Window/CMakeLists.txt
You can directly replace them with the ones included in the attached file called "sfml.zip"Then, on the terminal:mkdir sfml/build;cd sfml/build
cmake -DSFML_OPENGL_ES=1 ..
make install
ldconfig
Build Attract-Mode:cd /home/odroid/develop
git clone --depth 1 https://github.com/mickelson/attract attract
cd attract
2 files need to be modified in order to compile properly: /home/odroid/develop/attract/Makefile
/home/odroid/develop/attract/extlibs/gameswf/gameswf/gameswf_freetype.h
You can find the modified files in the attached file called "attract.zip"After overwriting these 2 files, do:make
make install
You're done!
Now, to run attract-mode, type
attract in the console.