OMXPLAYER on Bullseye fresh install (32-bit)

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
pinipon
Posts: 3
Joined: Wed Aug 04, 2021 12:31 am

OMXPLAYER on Bullseye fresh install (32-bit)

Post by pinipon »

OMXPLAYER doesn't work on Bullseye fresh install. After installing the package:

Code: Select all

$ apt install omxplayer
running the command:

Code: Select all

$ omxplayer my-video.mp4
results in:

Code: Select all

/usr/bin/omxplayer.bin: error while loading shared libraries: libvcos.so: cannot open shared object file: No such file or directory
That's because Bullseye doesn't install raspberrypi firmware on /opt/vc/lib anymore. This didn't happened on Buster.
So, putting libraries /opt/vc/lib from raspberrypi firmware in /opt/vc/lib solve the issue and omxplayer is playing back again.

Could someone tell me if there is any "cleanest" way to install those libraries in /opt/vc/lib instead of "manually" copying those files? Is any package installation that provides this operation?

Thanks in advance for your comments.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: OMXPLAYER on Bullseye fresh install (32-bit)

Post by Joulinar »

Basically same as this viewtopic.php?p=37640#p37640

RPi Devs changed package structure an this is causing incorrect libraries name
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
pinipon
Posts: 3
Joined: Wed Aug 04, 2021 12:31 am

Re: OMXPLAYER on Bullseye fresh install (32-bit)

Post by pinipon »

Using:

Code: Select all

cd /usr/lib/arm-linux-gnueabihf
ln -s libmmal_core.so.0 libmmal_core.so
ln -s libmmal_util.so.0 libmmal_util.so
ln -s libmmal_vc_client.so.0 libmmal_vc_client.so
ln -s libbcm_host.so.0 libbcm_host.so
ln -s libvcsm.so.0 libvcsm.so
ln -s libvchiq_arm.so.0 libvchiq_arm.so
ln -s libvcos.so.0 libvcos.so
cause:

Code: Select all

/usr/bin/omxplayer.bin: error while loading shared libraries: libbrcmEGL.so: cannot open shared object file: No such file or directory
/usr/bin/omxplayer.bin: error while loading shared libraries: libopenmaxil.so: cannot open shared object file: No such file or directory
/usr/bin/omxplayer.bin: error while loading shared libraries: libbrcmGLESv2.so: cannot open shared object file: No such file or directory
So I still need to copy these three libraries to /opt/vc/lib/
Post Reply