EDIT: This tutorial doesn't work anymore, but an updated tutorial is available on the Attract-Mode forums:
http://forum.attractmode.org/index.php? ... 71#msg3671
-----------------------------
Hi,
It's been 2 weeks now that we (I'm not alone) are trying to compile Attract-Mode on Xu3/Xu4, but even if we did some good progress, we are now stuck. We managed to compiled the program, but get an error when we launch it.
In case you don't know what Attract-Mode is, it's an amazing frontend specialized in gaming emulation, similar to Hyperspin but compatible with arm hardware. To give you an idea, here is a video I did using a Raspberry Pi 2, before switching to the Xu4, at 1 min you can see a NeoGeo layout I created... There a tons of possibilities to do things completely different:
https://www.youtube.com/watch?v=ZNVuFV9mfZA
Here is were we are in the compiling process:
(I'm using the meveric's OGST image, logged as ROOT.)
Create a build environment:
Code: Select all
cd ~
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
Download and build SFML:
The program uses the SFML library, but to make it compiled properly, it needs a few modifications:
Code: Select all
cd ~/develop
git clone https://github.com/SFML/SFML sfml
Code: Select all
#include <X11/Xutil.h>
/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
...also we need to modify this other file:
src/SFML/Window/CMakeLists.txt
...and insert these lines to it (insert them at line #213, after " include_directories(${EGL_INCLUDE_DIR} ${GLES_INCLUDE_DIR}) "):
Code: Select all
find_package(XCB COMPONENTS xlib_xcb icccm image randr util REQUIRED)
if(NOT LIBXCB_FOUND)
message(FATAL_ERROR "Xcb library not found")
endif()
include_directories(${LIBXCB_INCLUDE_DIRS})
Code: Select all
mkdir sfml/build;cd sfml/build
cmake -DSFML_OPENGL_ES=1 ..
make install
ldconfig
Code: Select all
cd ~/develop
git clone --depth 1 https://github.com/mickelson/attract attract
cd attract
make
make install
With these steps, it fully compiles, but when we try to launch the frontend, the window never fully appears and we get an endless stream of the following:
"Failed to create texture, invalid size: (0x0)"
If anybody is interested to install it as well and help to solve the problem, it would be awesome! ^^
Here are some links that can help:
- Issue ticket created on Attract-Mode github:
https://github.com/mickelson/attract/issues/169
- Steps to install AM on the Raspberry Pi:
https://github.com/mickelson/attract/wi ... -Wheezy%29
- Modifications done on some specific files to get the SFML library and AM compiled properly on the Rpi:
https://github.com/mickelson/SFML/commi ... b53016c633
- Attract-Mode website
http://attractmode.org/
Thank you in advance!