python-mpv icon indicating copy to clipboard operation
python-mpv copied to clipboard

Yocto libmpv.so not found

Open adityasingh1993 opened this issue 3 years ago • 5 comments
trafficstars

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+

adityasingh1993 avatar Apr 17 '22 06:04 adityasingh1993

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.

jaseg avatar Apr 18 '22 12:04 jaseg

@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?

adityasingh1993 avatar Apr 19 '22 12:04 adityasingh1993

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.

jaseg avatar Apr 20 '22 12:04 jaseg

@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.

adityasingh1993 avatar Apr 25 '22 16:04 adityasingh1993

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

jaseg avatar Apr 27 '22 12:04 jaseg