LibreELEC + Lakka RetroArch

  • Hi basilean

    I tried to install RetroArch via your script in https://github.com/basilean/retroarch_install with VERSION=6.1
    I recognised that the script runs without issues but when I start RetroArch in Kodi it crashes and Kodi starts again.

    Checking the details I got this log

    Code
    LibreELEC-RPi5:~ # journalctl -u retroarch.service -b --no-pager
    Jun 29 07:15:04 LibreELEC-RPi5 systemd[1]: Starting retroarch.service...
    Jun 29 07:15:12 LibreELEC-RPi5 systemd[1]: Started retroarch.service.
    Jun 29 07:15:12 LibreELEC-RPi5 retroarch[1414]: /storage/retroarch/retroarch: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
    Jun 29 07:15:12 LibreELEC-RPi5 systemd[1]: retroarch.service: Main process exited, code=exited, status=127/n/a
    Jun 29 07:15:12 LibreELEC-RPi5 systemd[1]: retroarch.service: Failed with result 'exit-code'.

    As we can see the error it seams that the library libSDL2 is missing. (For information: the script with VERSION=5.0 works without problems and also RetroArch can be started).

    I also created this issue in your repo: https://github.com/basilean/retroarch_install/issues/6

    If you or anyone have an idea how to solve this let me know please

  • Yesterday i tried last version of retroarch from flatpak at LE 13 and i was supresied, that is missing of supporting for the most effective audio output for these devices: Openal (OpenAL is a low-latency audio driver that minimizes audio lag and stuttering in RetroArch). Openal is supported also in retroarch for coreelec.

  • I installed it on a fresh LibreELEC 12.2.1 running on Raspberry Pi 5, and configured the favorites accordingly. It starts briefly to a black screen, but seems to crash, and restarts Kodi. Logfiles only report that the script exited with an error code.

  • At le13 is RA as flatpak also broken. It dont know start or see kernels. Try download kernels and after their run. Maybe there is issue with rights of reading or writting of files.

  • For RK3588 i dont see build at site: https://nightly.builds.lakka.tv/latest/


    LibreELEC:~ # bash retroarch_install.sh
    Guessing device...
    DEVICE = RK3588
    Guessing arch...
    ARCH = aarch64
    Defining temporal variables...
    --- Settings ---
    DEVICE = RK3588
    ARCH = aarch64
    VERSION = 6.x-20250207-0af7dae
    URL = https://nightly.builds.lakka.tv/latest/RK3588.…207-0af7dae.tar
    DIRECTORY = /storage/retroarch
    --- -------- ---
    Starting...
    Tue Sep 29 19:47:51 CEST 2026
    Checking configuration directory doesn't exists...
    Checking installation directory doesn't exists...
    /storage/retroarch already exists.
    Rename or remove it and start over.