jaseg / python-mpv

Python interface to the awesome mpv media player
https://git.jaseg.de/python-mpv.git
Other
532 stars 67 forks source link

Yocto libmpv.so not found #203

Closed adityasingh1993 closed 1 year ago

adityasingh1993 commented 2 years ago

I have build mpv on yocto, and it's working totataly fine. But when I am trying to use python-mpv i am getting exception. Issue is mostly because of libmpv.so not found. How to get libmpv.so for yocto? P.S: I am using the yocto for Raspberrypi3b+

jaseg commented 2 years ago

python-mpv uses ctypes.util.find_library from the python standard lib to look for libmpv. Make sure your LD_LIBRARY_PATH is set up correctly, and that libmpv.so is installed in the correct location.

adityasingh1993 commented 2 years ago

@jaseg libmpv.so is not present in the build image. When i tried to installed it using debian package for arm64,i got lot of other packages dependency issue. Is there any bitbake recipie for libmpv.so available or any other help regarding this?

jaseg commented 2 years ago

Oh, I see. Building it using yocto should be possible, but will take some effort. A quick google search yielded some existing bitbake recipes for mpv (1, 2), that you may be able to base your work off.

adityasingh1993 commented 2 years ago

@jaseg These are also for building mpv, they haven't included the libmp.so in there build. I think libmpv.so build is not included on the mention link.

jaseg commented 2 years ago

Yes, you'll have to modify those to your needs and turn on building libmpv.