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

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Post Reply
Naugrim
Posts: 151
Joined: 08 Jan 2016, 01:32
Location: Spain

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

Post by Naugrim » 15 Dec 2019, 22:28

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 :%
Last edited by Naugrim on 17 Dec 2019, 00:42, edited 1 time in total.
My opinions are my own. I am just a thankful user of OpenMW with no affiliation with the dev team.

User avatar
akortunov
Posts: 760
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

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

Post by akortunov » 16 Dec 2019, 06:24

Your OpenMW package for some reason was built against OpenScenegraph 3.6.4, while you have the 3.4.1.

Naugrim
Posts: 151
Joined: 08 Jan 2016, 01:32
Location: Spain

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

Post by Naugrim » 17 Dec 2019, 00:41

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 ¯\_(ツ)_/¯
My opinions are my own. I am just a thankful user of OpenMW with no affiliation with the dev team.

User avatar
AnyOldName3
Posts: 1937
Joined: 26 Nov 2015, 03:25

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

Post by AnyOldName3 » 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.
AnyOldName3, Master of Shadows

Naugrim
Posts: 151
Joined: 08 Jan 2016, 01:32
Location: Spain

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

Post by Naugrim » 17 Dec 2019, 12:09

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?
My opinions are my own. I am just a thankful user of OpenMW with no affiliation with the dev team.

User avatar
AnyOldName3
Posts: 1937
Joined: 26 Nov 2015, 03:25

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

Post by AnyOldName3 » 17 Dec 2019, 20:48

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.
AnyOldName3, Master of Shadows

Naugrim
Posts: 151
Joined: 08 Jan 2016, 01:32
Location: Spain

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

Post by Naugrim » 17 Dec 2019, 22:44

Thanks for the detailed explanation. Seems I'll have to try with the other osg versions.
My opinions are my own. I am just a thankful user of OpenMW with no affiliation with the dev team.

Post Reply