ares-emulator / ares

ares is a cross-platform, open source, multi-system emulator, focusing on accuracy and preservation.
https://ares-emu.net
Other
945 stars 115 forks source link

librashader does not load #1576

Open jyetcv opened 2 months ago

jyetcv commented 2 months ago

I compiled librashaders with build-librashader.sh, copied librashader.so and librashader.so.1 to /usr/local/lib and librashader.pc to /usr/local/lib/pkgconfig. I compiled ares and installed it. Every time I run ares I get this message: "OpenGL: Failed to load librashader: shaders will be disabled" and I can not use the shaders.

Is there a way to fix this?

remutro commented 1 month ago

I ran into an issue on a different Linux distro and found the paths were not exactly the same as the libreshader author's system so copying over to the recommended directories didn't work.

What I ended up doing was using the 'ldd' command to show all paths the ares executable was working in (ldd ares), and I very quickly found out I needed to copy the librashader.so file into the /lib/x86_64-linux-gnu/ directory as that is where the executable was loading all other libraries from. Restarting ares afterwards no longer produced that error.

Keep in mind that if you are building on ares and don't use the "make install" command afterwards, I think you need to copy the Shaders directory over manually into the same directory as the ares executable as well.

jyetcv commented 1 month ago

I copied the files over to /usr/lib/ and /usr/lib/pkgconfig/ and now it works. Thank you a lot.