[SOLVED] No longer able to start video player; error while loading shared libraries
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
No longer able to start video player; error while loading shared libraries
Whenever I try to load my default video player, it doesn't load. Looking at the virtual terminal that displays the ongoing processes of my xsession, it displays the following:
Code:
gmplayer: error while loading shared libraries: libwscale.so.5: cannot open shared object file: No such file or directory
It was working fine until yesterday when I installed some libraries as dependencies for some packages off of SBo:
-serd
-sord
-suil
-sdl2
-lilv
-ffmpeg
-wxGTK3
I don't see how any of these libraries would affect something that handles video though.
And playing video through the web browser works fine. Youtube and other video sites play just fine, it's just the system video player that randomly stopped working.
Last edited by burning; 07-15-2020 at 08:51 AM.
Reason: forgot to add tags
maybe you mistyped the library name: if it's "libswscale" it could be that you have uninstalled/replaced ffmpeg.
No, that's correct. I did install ffmpeg alongside the others. I just thought there was no way it could be related as I thought it was a sound plugin, no a video plugin. I've corrected the original post.
Even Google doesn't turn up anything on libwscale other than what seems like potential mistypings for libswscale, which as ponce mentioned, is part of ffmpeg.
Has to be just a typo in the error message, somehow.
You installed a new version of ffmpeg, which replaced Slackware's built in ffmpeg. The one you installed might have a different version of libswscale, or doesn't include it at all.
Even Google doesn't turn up anything on libwscale other than what seems like potential mistypings for libswscale, which as ponce mentioned, is part of ffmpeg.
My mistake, I thought he meant I just put in the typed a different library. It is libswscale. I just thought ponce was referring to my not mentioning ffmpeg.
You installed a new version of ffmpeg, which replaced Slackware's built in ffmpeg. The one you installed might have a different version of libswscale, or doesn't include it at all.
I see. I used a slackbuild for ffmpeg so was it just because it probably used a newer version? I didn't know ffmpeg was already in slackware by default.
Easiest thing to do would be to just rebuild mplayer with the SlackBuild from -current (whether you're running 14.2 or -current). It will get you a relatively recent version of mplayer and will build it against the libraries currently in your system.
You can easily do this by running the following:
Code:
wget -r -nH --no-parent --reject="index.htm*" --cut-dirs=4 https://mirrors.slackware.com/slackware/slackware64-current/source/xap/MPlayer/
cd MPlayer
sh MPlayer.SlackBuild
upgradepkg /tmp/MPlayer-*.txz
You will need to be root to run the SlackBuild and upgradepkg.
Easiest thing to do would be to just rebuild mplayer with the SlackBuild from -current (whether you're running 14.2 or -current). It will get you a relatively recent version of mplayer and will build it against the libraries currently in your system.
You can easily do this by running the following:
Code:
wget -r -nH --no-parent --reject="index.htm*" --cut-dirs=4 https://mirrors.slackware.com/slackware/slackware64-current/source/xap/MPlayer/
cd MPlayer
sh MPlayer.SlackBuild
upgradepkg /tmp/MPlayer-*.txz
You will need to be root to run the SlackBuild and upgradepkg.
Ah, I think that must've been what caused the error. I've made it so SBo downloads from the 14.2 repo rather than current. So if ffmpeg is included by default in -current and not in 14.2, that'd imply that the slackbuild on 14.2 is maybe an older version?
Ah, I think that must've been what caused the error. I've made it so SBo downloads from the 14.2 repo rather than current. So if ffmpeg is included by default in -current and not in 14.2, that'd imply that the slackbuild on 14.2 is maybe an older version?
If you're running -current, you likely replaced the stock version with a different version. That will likely break all the programs that rely on ffmpeg. In that case, it'd probably be better to just reinstall the ffmpeg package.
For building from source, it actually doesn't matter. Slackware uses the same source tree for 32bit and 64bit. When the SlackBuild is run, it will automatically build it as 32bit or 64bit depending on what version of Slackware you're running.
There is a FFMPEG4 package on Slackbuilds. If you are running Current and have installed it, uninstall it first before adding Slackware Current's FFMPEG. Current's FFMPEG is 4.3.1
Then upgradepkg to install it.
Edit: I'm confused if the op is using Current or 14.2. The above applies to Current.
Last edited by RadicalDreamer; 07-16-2020 at 08:52 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.