LibreElec Kodi + Lakka RetroArch

  • hello schmecks,

    When you run retroarch command standalone, remember firt to set up LD_LIBRARY_PATH environment variable for the shell you are using (that means to set it up any time you login back).

    (I forgot to mention it before, sorry)

    Something like:

    export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/storage/retroarch/lib

    Now run the command:

    ldd /storage/retroarch/retroarch | grep "not found"

    After copy first batch, you could see extra dependencies needed by the libraries you just copied.

    I would recommend you to only copy what is not already present on LibreElec, I would prefer native OS libraries.


    Another thing you could try, is to specify Lakka image "/usr/lib", in your case I think it is: "/media/root/usr/lib", so it will be something likes:

    export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/media/root/usr/lib

    And then try running ldd like:

    ldd /storage/retroarch/retroarch | grep "/media"

    And whatever cames from the image is what you need to copy.

  • So is it possible with this method to also add Emulation Station Desktop Edition (ES-DE), so one could launch ES-DE from kodi and inside ES-DE could launch games in retroarch? How would one go about it?

  • Hello there,

    You could try to copy the binary and needed libraries, maybe it would work, a few point to take in mind:

    * Lakka is a branch of LibreElec, so they share the build system and most of the dynamic libraries. That is why just copying the binary works.

    * It is systemd who brings down Kodi and up Retroarch, the command is run from favorites.

    Sounds easy? sometimes it is, who knows, good luck!