Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Dwarf Fortess 0.31.10 Linux problem  (Read 21580 times)

Kirok

  • Escaped Lunatic
    • View Profile
Dwarf Fortess 0.31.10 Linux problem
« on: July 11, 2010, 04:46:00 pm »

I'm trying to get 0.31.10 to run on Linux, Debian Squeeze/Testing to be exact, as far as I'm aware I have everything I need installed and it does run just without sound.

I see the following messages:

Failed to link sf_version_string
Dynamically loading the sndfile library failed, disabling sound
Initializing OpenAL failed, no sound will be played

Does anyone have any ideas?
Logged

Urist McDepravity

  • Bay Watcher
    • View Profile
Re: Dwarf Fortess 0.31.10 Linux problem
« Reply #1 on: July 11, 2010, 06:15:41 pm »

Maybe this could help - http://bay12games.com/dwarves/mantisbt/view.php?id=2616
Also, do you have OpenAL on your system?
Logged

Daskinor

  • Bay Watcher
    • View Profile
Re: Dwarf Fortess 0.31.10 Linux problem
« Reply #2 on: July 15, 2010, 05:35:35 am »

I'm having the same problem with the same version of the Linux Dwarf Fortress build under Gentoo linux. Sound has been fine on all pre 0.31 linux Dwarf Fortresses, the windows versions when run via wine, and at all 0.31 versions up to and including 0.31.08. I never tested .09 due to its issue with pets and trade caravans.

The compiled binary for 0.31.10 is missing many linked libraries ( ie, as shown via 'ldd' ) compared to past versions of the same binary, so it appears to not be a client-side glitch but something that went awry during the compiling and linking, or a consequence of modifications to the audio handling of 0.31.09 and hence also .10 mentioned in the changelogs.

To be exact, the following are linked libraries with references present in Dwarf Fortress 0.31.06 and .08 binaries, but not in .10, almost all of these are audio related (with the exception of libncurses):

libFLAC.so.8 => /usr/lib32/libFLAC.so.8 (0xf6440000)
libncursesw.so.5 => /lib32/libncursesw.so.5 (0xf6aa0000)
libogg.so.0 => /usr/lib32/libogg.so.0 (0xf6315000)
libopenal.so.1 => /usr/lib32/libopenal.so.1 (0xf6be1000)
libsndfile.so.1 => /usr/lib32/libsndfile.so.1 (0xf6b7a000)
libvorbis.so.0 => /usr/lib32/libvorbis.so.0 (0xf631d000)
libvorbisenc.so.2 => /usr/lib32/libvorbisenc.so.2 (0xf6346000)

TLDR - the linux df 0.31.10 binary has a lot of audio handling code removed from it. On the plus side, audio isnt essential and you can get around  this by playing youtubed' df vids to get that nice immersive oh-crap-is-that-the-sun-rising dwarfy music we all know and love back again.
Logged

Murphy

  • Bay Watcher
  • Lazy half-ass
    • View Profile
Re: Dwarf Fortess 0.31.10 Linux problem
« Reply #3 on: July 15, 2010, 05:42:25 am »

I can confirm this too - music doesn't work in 31.10 under linux. OpenAL is installed, and it worked just fine up to 31.09.
Now it tells me that "Dynamically loading the OpenAL library failed, disabling sound".
I use Xubuntu 10.04 if that matters.
Logged

Urist McDepravity

  • Bay Watcher
    • View Profile
Re: Dwarf Fortess 0.31.10 Linux problem
« Reply #4 on: July 15, 2010, 07:36:08 am »

Actually, just tested 31.10 myself, and I have same problem, while 31.09 works fine. Did anyone file a bug in mantis yet?
Logged

Murphy

  • Bay Watcher
  • Lazy half-ass
    • View Profile
Re: Dwarf Fortess 0.31.10 Linux problem
« Reply #5 on: July 15, 2010, 10:30:54 am »

Probably this.
Logged

msghmr

  • Escaped Lunatic
    • View Profile
Re: Dwarf Fortess 0.31.10 Linux problem
« Reply #6 on: July 16, 2010, 04:29:14 am »

Probably this.

Doesn't look like the same bug to me Murphy, at least the fix posted there didn't work here...
Logged

voneiden

  • Bay Watcher
  • hngh
    • View Profile
Re: Dwarf Fortess 0.31.10 Linux problem
« Reply #7 on: July 16, 2010, 11:57:22 am »

Well yeah, sound worked fine in previous versions (at least 07-08), in .10 it doesn't. Arch Linux here. But personally I don't really care since I wouldn't be using sound anyway.
Logged

AndrewC

  • Escaped Lunatic
    • View Profile
Re: Dwarf Fortess 0.31.10 Linux problem
« Reply #8 on: July 16, 2010, 09:17:36 pm »

Running 0.31.10 also have no sound here apparently due to this OpenAL problem, I'm using OpenAL Soft, version  OpenAL-1.10.622  on Slackware 12.2 (yeah its old but it works). 

Here is the ldd of the Dwarf_Fortress  executable in libs :
Code: [Select]
andrew@foobar:~/download/Games/Dwarf/df_linux/libs$ ldd Dwarf_Fortress
linux-gate.so.1 =>  (0xffffe000)
/lib/libsafe.so.2 (0xb7eee000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xb7e15000)
libgraphics.so => /home/andrew/download/Games/Dwarf/df_linux/libs/libgraphics.so (0xb79da000)
libstdc++.so.6 => /home/andrew/download/Games/Dwarf/df_linux/libs/libstdc++.so.6 (0xb78ec000)
libm.so.6 => /lib/libm.so.6 (0xb78c6000)
libgcc_s.so.1 => /home/andrew/download/Games/Dwarf/df_linux/libs/libgcc_s.so.1 (0xb78b7000)
libc.so.6 => /lib/libc.so.6 (0xb776b000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7754000)
libdl.so.2 => /lib/libdl.so.2 (0xb7750000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7669000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb765b000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7654000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb764c000)
libvga.so.1 => /usr/lib/libvga.so.1 (0xb75d0000)
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb726a000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb7230000)
libSDL_image-1.2.so.0 => /usr/lib/libSDL_image-1.2.so.0 (0xb7214000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0xb719d000)
/lib/ld-linux.so.2 (0xb7ef5000)
libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb719b000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7184000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb7181000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7169000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb70e7000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb70de000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb70a2000)
libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb709f000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb709b000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7096000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb707d000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb707a000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb6fad000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb6f42000)
libpng.so.3 => /usr/lib/libpng.so.3 (0xb6f06000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb6ee6000)
libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb6e93000)
libz.so.1 => /usr/lib/libz.so.1 (0xb6e7f000)
libGL.so.1 => /usr/lib/libGL.so.1 (0xb6dc0000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6dba000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb6d91000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb6d8e000)
libXi.so.6 => /usr/lib/libXi.so.6 (0xb6d86000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb6d7d000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb6d55000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6ce3000)
libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb6cae000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6c73000)
libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0xb5bd8000)
libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1 (0xb5bd5000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb5bb5000)
I'm no expert with ldd, all dynamic links appear to be fulfilled, but Dwarf Fortress doesn't appear to be dynamically linked to OpenAL .

Here is the output to the command line:
Code: [Select]
andrew@foobar:~/download/Games/Dwarf/df_linux$ ./df
Failed to link sf_version_string
Dynamically loading the sndfile library failed, disabling sound
Initializing OpenAL failed, no sound will be played
Loading bindings from data/init/interface.txt
New window size: 640x300
Font size: 8x12
Resizing grid to 80x25
Resizing font to 8x12
Hope all that helps.

EDIT: also libsndfile-1.0.20
« Last Edit: July 16, 2010, 09:26:47 pm by AndrewC »
Logged

bengeorge

  • Bay Watcher
    • View Profile
    • http://benim.us
Re: Dwarf Fortess 0.31.10 Linux problem
« Reply #9 on: July 19, 2010, 12:19:05 pm »

Same deal here.  Recently installed Ubuntu, DF 31.10,  "Dynamically loading the OpenAL library failed, disabling sound".
Logged
=====================
The n00b menaces with spikes of question.

Keilaron

  • Escaped Lunatic
  • Insane
    • View Profile
    • Keilaron's Den
Re: Dwarf Fortess 0.31.10 Linux problem
« Reply #10 on: August 08, 2010, 08:13:17 pm »

Please see what solved it for me in the other thread.
Logged
post_count++;

Granite

  • Bay Watcher
    • View Profile
Re: Dwarf Fortess 0.31.10 Linux problem
« Reply #11 on: August 25, 2010, 04:11:29 pm »

Please see what solved it for me in the other thread.
Yes! This worked for me! Thanks!
Logged

Senacharim

  • Escaped Lunatic
    • View Profile
Re: Dwarf Fortess 0.31.10 Linux problem
« Reply #12 on: September 28, 2010, 09:31:51 pm »

+1  Worked for me.

Thank you.
Logged