Download and install the latest image of RetroPie from here https://retropie.org.uk/download/.
Next install AM one of two ways: 1) from the RetroPie Experimental Menu or 2) follow the steps in the AM PI FAQ (http://forum.attractmode.org/index.php?topic=1249.msg9046#msg9046) or the AM Wiki (https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-(Raspbian-Jessie))
Instructions here http://forum.attractmode.org/index.php?topic=1777.msg12521#msg12521
Thank you for the fast reply,
I've tried both methods, the experimental menu leads to a dead end for me, atleast after I install it I can in no way enter attract mode, no such option like "switch to attract mode" appears in the Retropie menu. The second option ,which I prefer works up until the end, then I have to type “make USE_GLES=1“ in order to compile the updated source code from the attract directory,but I keep getting the following error:
flags: -Wl,--export-dynamic -I/usr/include/freetype2 -DDATA_PATH=\"/usr/local/share/attract/\" -O2 -DNDEBUG -I/opt/vc/include -L/opt/vc/lib -Iextlibs/miniz -Iextlibs/audio/include -D__STDC_CONSTANT_MACROS -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/arm-linux-gnueabihf -I/usr/include/AL -Iextlibs/squirrel/include -Iextlibs/sqrat/include -Iextlibs/nowide -Iextlibs/nvapi -Iextlibs/gameswf -DUSE_GLES -DUSE_FONTCONFIG -DUSE_LIBCURL -DUSE_SWRESAMPLE
Compiling obj/fe_base.o...
In file included from src/fe_base.cpp:24:0:
src/fe_util.hpp:28:27: fatal error: SFML/Config.hpp: No such file or directory
#include <SFML/Config.hpp>
^
compilation terminated.
Makefile:456: recipe for target 'obj/fe_base.o' failed
make: *** [obj/fe_base.o] Error 1
and no matter what I cannot continue from this point beyond, any ideas?