patriciogonzalezvivo / glslViewer

Console-based GLSL Sandbox for 2D/3D shaders
BSD 3-Clause "New" or "Revised" License
4.57k stars 352 forks source link

glslViewer looks for libavdevice.so.58, but I have 59 (Debian 12.1) #346

Closed bazilmuzik closed 11 months ago

bazilmuzik commented 11 months ago

When I run the command glslViewer xxx.frag I get the error message libavdevice.so.58: cannot open shared object file: No such file or directory After looking in my OS, I found that I currently have libavdevice.so.59, so it's normal that 58 is not found

Then I tried to add the following line in ld.so.conf (deduced from what I've read in many blogs) /usr/lib/x86_64-linux-gnu because that's where libavdevice.so.59 is on my laptop

But I still get the same error message...

Is it possible that glslViewer only expects libavdevice.so.58, but no newer version ? Is there an easy way around that ? Like a glslViewer config file or something ?

Thanks in advance !

patriciogonzalezvivo commented 11 months ago

Hi! Thanks for reaching out? What version of glslViewer do you have? It's installed by source? Or through .deb / PPA?

bazilmuzik commented 11 months ago

Unfortunately I don't remember how I installed it, but I probably followed the compiling from source procedure here. What I can say for sure is that I installed it when I was on Debian 11, and then updated my OS to Debian 12.1, maybe that's why it's stuck to libavdevice.so.58... Should I maybe uninstall everything and try to install again ?

bazilmuzik commented 11 months ago

Ok that was it indeed ! I uninstalled glslViewer, recompiled it, and now it works fine :) Noted: when compiling from source and updating OS, one needs to recompile !

patriciogonzalezvivo commented 11 months ago

That makes sense. 😃

I'm glad it worked out