Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0003200Dwarf FortressTechnical -- Soundpublic2010-09-10 19:352015-01-07 11:51
Kaphonaits 
lethosor 
urgentmajoralways
acknowledgedopen 
ComputerUbuntu LinuxUbuntu 10.04
0.31.12 
 
0003200: OpenAL Sound Problem
Whenever I boot up Dwarf Fortress, I receive an error: "Dynamically loading the OpenAL library failed, disabling sound."
Open Dwarf Fortress
I haven't tampered with the game in any way, shape, or form.
linux, sound
has duplicate 0006501resolved Footkerchief No Sound; possibly an OpenAL Symlink issue 
Issue History
2010-09-10 19:35KaphonaitsNew Issue
2010-09-10 19:53Logical2uNote Added: 0012572
2010-09-10 19:58KaphonaitsNote Added: 0012573
2010-09-10 20:00KaphonaitsNote Edited: 0012573bug_revision_view_page.php?bugnote_id=0012573#r4886
2010-09-11 07:38Logical2uIssue Monitored: Baughn
2010-09-11 07:38Logical2uNote Added: 0012580
2010-09-11 08:09BaughnNote Added: 0012581
2010-09-11 17:50SupermathieNote Added: 0012589
2010-09-11 17:50SupermathieIssue Monitored: Supermathie
2010-09-16 11:35akdNote Added: 0012717
2010-11-12 20:40Khym ChanurNote Added: 0013742
2010-11-12 20:40Khym ChanurTag Attached: linux
2010-11-12 20:40Khym ChanurTag Attached: sound
2010-11-12 20:40Khym ChanurIssue Monitored: Khym Chanur
2012-02-18 14:51UberNubeIssue Monitored: UberNube
2014-06-10 08:28FootkerchiefRelationship addedhas duplicate 0006501
2014-07-08 05:12leoboikoNote Added: 0025002
2014-07-08 07:05graniteNote Added: 0025025
2014-07-08 08:51KuxeNote Added: 0025044
2014-12-29 07:15lethosorAssigned To => lethosor
2014-12-29 07:15lethosorStatusnew => acknowledged
2014-12-29 07:17lethosorIssue Monitored: Toady One
2014-12-29 07:17lethosorNote Added: 0031554
2015-01-07 11:24Toady OneNote Added: 0031755
2015-01-07 11:51DetrosNote Added: 0031757
2015-01-07 11:51DetrosIssue Monitored: Detros

Notes
(0012572)
Logical2u   
2010-09-10 19:53   
Are you sure you are playing in version 31.12? This was fixed in 31.11.
(0012573)
Kaphonaits   
2010-09-10 19:58   
(edited on: 2010-09-10 20:00)
Yes, I am 100% sure. It is 31.12

It was not fixed apparently. :(

(0012580)
Logical2u   
2010-09-11 07:38   
Reminder sent to: Baughn

Hey Baughn, mind taking a look at this? It sounds like a repeat of 0002616.
(0012581)
Baughn   
2010-09-11 08:09   
Do you have a 32-bit libopenal installed anywhere? If so, where?
(0012589)
Supermathie   
2010-09-11 17:50   
I get the same on openSuSE 11.3 32-bit:

$ rpm -qa libopenal\*
libopenal1-soft-1.12.854-1.11.i586
libopenal0-soft-1.12.854-7.1.i586

$ rpm -qal libopenal\*
/usr/lib/libopenal.so.1
/usr/lib/libopenal.so.1.12.854
/usr/lib/libopenal.so.0
(0012717)
akd   
2010-09-16 11:35   
Same problem, openSUSE 11.3 64-bit, I don't remember what exact version it broke in (possibly was never working on the official Linux release) but I can confirm for 0.31.12 and 0.31.13.

$ rpm -qa libopenal\*
libopenal1-soft-32bit-1.12.854-1.11.x86_64
libopenal0-soft-1.12.854-1.11.x86_64
libopenal0-soft-32bit-1.12.854-1.11.x86_64
libopenal1-soft-1.12.854-1.11.x86_64

$ rpm -qal libopenal\*
/usr/lib/libopenal.so.1
/usr/lib/libopenal.so.1.12.854
/usr/lib64/libopenal.so.0
/usr/lib/libopenal.so.0
/usr/lib64/libopenal.so.1
/usr/lib64/libopenal.so.1.12.854
(0013742)
Khym Chanur   
2010-11-12 20:40   
The problem seems to be that DF will only accept the file named libsndfile.so, not libsndfile.so.1 or libsndfile.so.0.21. If you make libsndfile.so a symbolic link to an existing file, then run ldconfig, it fixes the problem. Same applies for libopenal
(0025002)
leoboiko   
2014-07-08 05:12   
Confirming this bug is still open in 0.40.01. Khym Chanur's workaround works; here's the relevant commands for Debian wheezy:

    sudo ln -s /usr/lib/i386-linux-gnu/libsndfile.so.1 /usr/lib/i386-linux-gnu/libsndfile.so
    sudo ln -s /usr/lib/i386-linux-gnu/libopenal.so.1 /usr/lib/i386-linux-gnu/libopenal.so
    sudo ldconfig
(0025025)
granite   
2014-07-08 07:05   
Mint 15 (based on Ubuntu 13.04) 32 bit here, and I solved this with the command below, which should install 3 things from Ubuntu's repo

$ sudo apt-get install libopenal*
(0025044)
Kuxe   
2014-07-08 08:51   
Confirming Khym Chanur's resolution, as leoboiko instructed, on Mint 17 x64. Prior to this I installed devpackages for openal and snd, tested granite's solution without success, created symlinks in /usr/lib32. None of these solved it, but in combination with Khym Chanur it did work.
(0031554)
lethosor   
2014-12-29 07:17   
Reminder sent to: Toady One

It seems that a patch from https://github.com/Baughn/Dwarf-Fortress--libgraphics-/pull/37/files [^] never made it into DF's libgraphics.
(0031755)
Toady One   
2015-01-07 11:24   
The patch doesn't seem to work for my Ubuntu, but perhaps it will for somebody else.
(0031757)
Detros   
2015-01-07 11:51   
I can add to this, I had to add "libsdl-ttf2.0-0" to Ubuntu 14.04 32b for DF 40.20 to work and "libopenal-dev" to get rid of this OpenAL problem and enable game music. No name problems occurred.