Open acmiyaguchi opened 9 years ago
The correct path is lib/
. When running from kodi/addons/game.libretro.nestopia
, the .so and the add-on fluff is in the same directory (IAddon::Profile()
)
@Montellese do we need an IAddon::LibProfile()
, or is there another way to figure out the lib/
directory when it's not combined with share/
?
Unfortunately I'm not an expert on the installation of binary addons on linux but I'm sure @wsnipex can jump in and explain.
Right now we're loading the lib from special://profile/addon_data/game.libretro.nestopia/
. How can I figure out which directory the lib is in? Is there a special URL for this?
Relevant discussion: https://github.com/garbear/xbmc/commit/1c18dec30#commitcomment-19530533
Addons built in linux using
make -C tools/depends/target/binary-addons PREFIX=$HOME/kodi
are not loaded properly. I have only tested game.libretro.nestopia and game.libretro.2048, but they both look for the shared object file in the wrong directory.Here are the relevant lines from running
make -C tools/depends/target/binary-addons PREFIX=$HOME/kodi ADDONS="game.libretro.nestopia"
Instead of looking into the /lib folder, the system attempts to load the library from the /share folder, as seen in
$HOME/.kodi/temp/kodi.log
This can be fixed by manually copying over the shared object from the /lib folder into the /share folder.