Building emulationstation batocera from github source - leonkasovan/RG353P GitHub Wiki

In Raspberry Pi

  1. git clone --recursive https://github.com/batocera-linux/batocera-emulationstation.git
  2. cd batocera-emulationstation
  3. nano CMakeList.txt
option(CEC "CEC" OFF)
option(DISABLE_KODI "Set to ON to disable kodi in menu" ON)
#find_package(udev)
  1. nano CMake/Packages/FindOpenGLES2.cmake
set(OPENGLES2_INCLUDE_DIR "/usr/include")
  1. nano es-core/src/Window.cpp
Line 12: #define HAVE_INTL
  1. nano es-app/src/services/HttpServerThread.cpp
Line xxx: #define HAVE_INTL
  1. cmake -DGLES2=ON -DBATOCERA=1 -DSCREENSCRAPER_DEV_LOGIN="devid=jelos&devpassword=jelos" -DSCREENSCRAPER_SOFTNAME="MyBuildEmulationStation" .
  2. make
  3. sftp [email protected]; put emulationstation

In Device RG353P

  1. ssh [email protected]
  2. killall emulationstation
  3. ln -s anbernic.conf batocera.conf
  4. cd /usr/bin
  5. ln -s anbernic-info batocera-info
  6. ln -s anbernic-config batocera-config
  7. ln -s anbernic-store batocera-store
  8. ln -s anbernic-es-swissknife batocera-es-swissknife
    x. run custom ./emulationstation

Integration Boot Process using custom EmulationStation

  1. Add entry nano anbernic.conf
system.es.custom=1
  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