moonlight-stream / moonlight-embedded

Gamestream client for embedded systems
https://github.com/moonlight-stream/moonlight-embedded/wiki
GNU General Public License v3.0
1.48k stars 322 forks source link

Moonlight on Libreelec 9 with Kodi 18 Alpha on S912 Amlogic #633

Open unimatrix099 opened 6 years ago

unimatrix099 commented 6 years ago

I compiled Libreelec from repository (master) and also the moonlight.script plugin for Kodi.

When moonlight-embedded was compile Amlogic was detected (I used the master branch including the recent Amlogic fix - "FindAmlogic: don't depend on amadec and amavutils")

But when running the binary, Amlogic is not detected.

Verbose output -verbose of Moonlight Embedded:

LibreELEC912:~/.kodi/addons/script.moonlight/bin # moonlight -verbose stream -platform aml Moonlight Embedded 2.4.6 (CEC;AML;ALSA;PULSE;EMBEDDED) Searching for server... Connect to 192.168.0.197... NVIDIA GeForce GTX 1070, GFE 3.5.0.70 (gs_03_60_21881304, 7.1.360.0) Platform Unknown Platform 'aml' not found

So, it's compiled with AML, but aml is not recognized... any ideas on how to debug this issue? :/

libmoonlight-aml.so is with libmoonlight-common.so, it could be that there is an error when loading it? How can I debug that it's properly loaded?

Also has anyone made moonlight-embedded work with any Libreelec version on an Amlogic device (S912 or S905)?

maxanier commented 5 years ago

I had a similiar issue when trying to compile this for the vero4k with osmc. In my case it was caused by libmoonlight-aml failing to load because llibamcodec.so could not be located which I found out by adding a printf("%s\n,dlerror()); at https://github.com/irtimmer/moonlight-embedded/blob/c52ba9c041329d8cc2620b6014c49e320a4f72a2/src/platform.c#L60

In my case it was located in /usr/osmc/lib so I added that path to all find_library PATHS inside cmake/FindAmlogic.cmake.

Since you are running Libreelec, things might be different, but maybe this helps.