You are not logged in.

#1 2015-08-27 09:29:02

gadelat
Member
Registered: 2013-03-11
Posts: 49

This War Of Mine: no audio {Cannot open shared library} [SOLVED]

Basically I have same problem as this folk https://bbs.archlinux.org/viewtopic.php?id=201340, however I have Steam version and I use fresh (yesterday) installation of ArchLinux.

In summary, I have no sound in This War Of Mine. I had same problem in previous ArchLinux insallation. In the meantime, I tested it also on Ubuntu 14.04, Ubuntu 15.04 and Ubuntu 15.10, in all of those sound in this game works.

Here is the interesting part when I run steam in terminal:

ALSA lib dlmisc.c:272:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so
AL lib: alsa.c:512: Could not open playback device 'default': No such device or address
AL lib: oss.c:169: Could not open /dev/dsp: No such file or directory

Game is obviously looking for the lib in non existent directory, however it doesn't accept it when I supply correct path to the game manually via LD_PRELOAD:

LD_PRELOAD=/usr/lib32/alsa-lib/libasound_module_pcm_pulse.so

ERROR: ld.so: object '/usr/lib32/alsa-lib/libasound_module_pcm_pulse.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

LD_PRELOAD=/usr/lib/alsa-lib/libasound_module_pcm_pulse.so

ERROR: ld.so: object '/usr/lib/alsa-lib/libasound_module_pcm_pulse.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

Last edited by gadelat (2015-09-02 18:03:37)

Offline

#2 2015-09-02 17:38:37

pluc
Member
Registered: 2013-11-08
Posts: 9

Re: This War Of Mine: no audio {Cannot open shared library} [SOLVED]

Hello,

I resolved this by first following this and in addition I copied libresolv-2.20.so and libresolv.so.2 from glibc 2.20-6 and running the game with

LD_PRELOAD=libresolv.so.2 ./This\ War\ of\ Mine

PS: As a first attempt I also got libasound_module_pcm_pulse.so from lib32-alsa-plugins 1.0.28-1 but it does not seem necessary.

Offline

#3 2015-09-02 18:03:26

gadelat
Member
Registered: 2013-03-11
Posts: 49

Re: This War Of Mine: no audio {Cannot open shared library} [SOLVED]

Nice, it worked! I added it to the list of libs in the wiki.

Last edited by gadelat (2015-09-02 18:04:06)

Offline

#4 2015-09-08 04:22:33

kaptoxic
Member
Registered: 2013-07-31
Posts: 21

Re: This War Of Mine: no audio {Cannot open shared library} [SOLVED]

Thanks, this also solved the problem for me! You should consider updating the wiki: https://wiki.archlinux.org/index.php/St … ar_of_Mine

Offline

#5 2015-09-08 05:49:45

gadelat
Member
Registered: 2013-03-11
Posts: 49

Re: This War Of Mine: no audio {Cannot open shared library} [SOLVED]

Well, in case of steam version (as is my case), it's sufficient to copy the lib to the game folder, so wiki is now ok for steam version.

Offline

#6 2018-04-02 19:26:41

Arcamis
Member
Registered: 2008-10-08
Posts: 9

Re: This War Of Mine: no audio {Cannot open shared library} [SOLVED]

I don't want to necropost anything, but I just bought the GoG version of this game and I have the same issue. Unfortunately the sound still doesn't work whatever I try (even what is proposed here). If someone has an advice...

Offline

#7 2018-04-02 20:18:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,409

Re: This War Of Mine: no audio {Cannot open shared library} [SOLVED]

Are absolutely certain it's the exact same library? Apparently not otherwise the advise given here would work given that the thread is marked as [SOLVED]. If there are differences this warrants it's own thread and information output from your  own system.

Please open a new thread about your issue, don't necrobump

Closing.

Online

Board footer

Powered by FluxBB