Libcec in chroot

Hi folks,

iam trying to setup the libcec functionallity inside a chroot environment which runs a spotify-web-server.

i tried compiling libcec myself but allways ended up with a non-working solution.

My main question basically is:

is there an easy way to get the osmc lib cec functionality inside the chroot or do i have to compile it? and second if it’s not working with the allready built libcec, what has to be changed in order to compile a version for the chroot inside osmc

best regards
deify

Does Spotify Web Server actually build against libCEC? If not, it won’t work without changes to the code.

If you are compiling it from source there is no practical reason to run it in a chroot. The chroot is only there to provide all of the dependencies on all systems without a package manager

I dont think it does build agains libCEC, that’s why i tried making all neccessary libs and packages available.

ok, guess i will try building spotify from source then so i can use the default libcec from osmc!

thanks for your advice, i will update as soon as i managed to get it running.

best regards
deify

But there is no libCEC code in this Spotify addon. So it will not magically work if you link the lib

well i obviously dont know enough to get it running…

problem is, iam not able to get it running from source on my pi1 b+

according to the spotify-connect-web github readme, it just works with the prebuild chroot and i am not able to compile libcec in there either…

i dont know if there is an easier way to get this running. iam definatly not getting any further with any of my tries

If i try to run directly from source i am getting an error that libspotify_embedded_shared.so is missing, eventhough i did copy it into the direction containing the python scripts

EDIT: After copying the library into /usr/lib the error changes to “Illegal instruction”
that’s basically the same fault i got when trying to run the prebuilt packages