Page 1 of 1

[FIXED][Linux][Manjaro] error while loading shared libraries: libosg.so.160: cannot open shared object file

Posted: 15 Dec 2019, 22:28
by Naugrim
I haven't had any issue with OpenMW on Manjaro until today, using stable version 0.45. I haven't changed anything in OpenMW regarding config or mods since last time I played, more or less 2 weeks ago.
Now, running from Launcher does nothing and when I run "openmw" directly from console (which I usually do), now I get the error

Code: Select all

error while loading shared libraries: libosg.so.160: cannot open shared object file: No such file or directory
I see the OSG libraries are included in the openmw installation directory, but openmw package also pulls the OSG package and it seems it is using it.
Checking my libraries I see I have 131.

Code: Select all

/usr/lib >>> ll | grep libosg.so                                                             
lrwxrwxrwx   1 root root    13 nov 25  2018 libosg.so -> libosg.so.131
lrwxrwxrwx   1 root root    15 nov 25  2018 libosg.so.131 -> libosg.so.3.4.1
-rwxr-xr-x   1 root root  3,4M nov 25  2018 libosg.so.3.4.1
Just to test, I could get pass this issue creating a symlink with the 160 naming, but it then failed with another error

Code: Select all

openmw: error while loading shared libraries: libOpenThreads.so.21: cannot open shared object file: No such file or directory
Any help or idea would be greatly appreciated :%

Re: [Linux][Manjaro] error while loading shared libraries: libosg.so.160: cannot open shared object file

Posted: 16 Dec 2019, 06:24
by akortunov
Your OpenMW package for some reason was built against OpenScenegraph 3.6.4, while you have the 3.4.1.

Re: [Linux][Manjaro] error while loading shared libraries: libosg.so.160: cannot open shared object file

Posted: 17 Dec 2019, 00:41
by Naugrim
Thanks! That pointed me in the right direction.
I noticed I had installed "openscenegraph34" package (note the trailing 34), just uninstalled it and installed "openscenegraph" wich uses v 1.6.4-1.
Now OpenMW is working again.

However, I still don't understand what happened ¯\_(ツ)_/¯

Re: [FIXED][Linux][Manjaro] error while loading shared libraries: libosg.so.160: cannot open shared object file

Posted: 17 Dec 2019, 00:59
by AnyOldName3
Right now, there are fewer issues with 3.4.1 if you can get an OpenMW build that's built with it.

Re: [FIXED][Linux][Manjaro] error while loading shared libraries: libosg.so.160: cannot open shared object file

Posted: 17 Dec 2019, 12:09
by Naugrim
AnyOldName3 wrote:
17 Dec 2019, 00:59
Right now, there are fewer issues with 3.4.1 if you can get an OpenMW build that's built with it.
Can you be more specific? I can compile from master, but I'd rather not too.
Also, iirc wasn't openmw compiled with a custom version of osg?

Re: [FIXED][Linux][Manjaro] error while loading shared libraries: libosg.so.160: cannot open shared object file

Posted: 17 Dec 2019, 20:48
by AnyOldName3
We have a fork of OSG 3.4.1 with some backported bugfixes and features, as well as some performance improvements that would break other applications if they were used upstream. Upstream 3.6.x is faster than upstream 3.4.1, though, so our fork ends up about the same speed as 3.6.x. However, 3.6.x has some regressions. The most major ones have been fixed, but there are some more minor ones that haven't.

Re: [FIXED][Linux][Manjaro] error while loading shared libraries: libosg.so.160: cannot open shared object file

Posted: 17 Dec 2019, 22:44
by Naugrim
Thanks for the detailed explanation. Seems I'll have to try with the other osg versions.