Building emulationstation batocera from github source - leonkasovan/RG353P GitHub Wiki
In Raspberry Pi
git clone --recursive https://github.com/batocera-linux/batocera-emulationstation.git
cd batocera-emulationstation
nano CMakeList.txt
option(CEC "CEC" OFF)
option(DISABLE_KODI "Set to ON to disable kodi in menu" ON)
#find_package(udev)
nano CMake/Packages/FindOpenGLES2.cmake
set(OPENGLES2_INCLUDE_DIR "/usr/include")
nano es-core/src/Window.cpp
Line 12: #define HAVE_INTL
nano es-app/src/services/HttpServerThread.cpp
Line xxx: #define HAVE_INTL
cmake -DGLES2=ON -DBATOCERA=1 -DSCREENSCRAPER_DEV_LOGIN="devid=jelos&devpassword=jelos" -DSCREENSCRAPER_SOFTNAME="MyBuildEmulationStation" .
make
- sftp [email protected]; put emulationstation
In Device RG353P
ssh [email protected]
killall emulationstation
ln -s anbernic.conf batocera.conf
cd /usr/bin
ln -s anbernic-info batocera-info
ln -s anbernic-config batocera-config
ln -s anbernic-store batocera-store
ln -s anbernic-es-swissknife batocera-es-swissknife
x. run custom ./emulationstation
Integration Boot Process using custom EmulationStation
- Add entry
nano anbernic.conf
system.es.custom=1
- Edit init.d
nano /etc/init.d/S31emulationstation
enabled="$(/usr/bin/anbernic-settings-get system.es.atstartup)"
++ custom_es="$(/usr/bin/anbernic-settings-get system.es.custom)"
secured="$(/usr/bin/anbernic-settings-get system.es.maxresolution)"
bootresolution="$(/usr/bin/anbernic-settings-get -f "$BOOTCONF" es.maxresolution)"
test ! -z "${bootresolution}" && secured="${bootresolution}"
if [ "$enabled" != "0" ];then
if test "${secured}" = 0 -o -z "${secured}"
then
anbernic-resolution minTomaxResolution-secure
else
anbernic-resolution minTomaxResolution "${secured}"
fi
settings_lang="$(/usr/bin/anbernic-settings-get system.language)"
display_rotate="$(/usr/bin/anbernic-settings-get display.rotate)"
EXTRA_OPTS=
test -n "${display_rotate}" && EXTRA_OPTS="--screenrotate ${display_rotate}"
cd /userdata # es need a PWD
++ if [ "$custom_es" != "0" ];then
++ HOME=/userdata/system LANG="${settings_lang}.UTF-8" SDL_NOMOUSE=1 /userdata/system/emulationstation --no-splash ${EXTRA_OPTS} &
++ else
++ HOME=/userdata/system LANG="${settings_lang}.UTF-8" SDL_NOMOUSE=1 /usr/bin/emulationstation --no-splash ${EXTRA_OPTS} &
++ fi
fi