Page 1 of 2

Linux Dependencies

Posted: October 16th, 2014, 12:30 pm
by tonurics
Here's a list of dependencies required to get the game working on various Linux distros. So if your game does not start: more and likely you are missing one of these packages (i.e. programs or libraries).

Hopefully, this list will also prove useful for people on other distributions (that aren't listed here), as you should just need to find your distro's equivalent. Please reply with any findings and I'll try to keep this post up to date with new information.

Thanks to everyone who has contributed to the thread!

Table of Contents:
  • Wasteland 2: Director's Cut
  • Wasteland 2: Original Release
  • Bundled Steam Libraries
  • Bundled GOG.com Libraries
Wasteland 2: Director's Cut
Director's Cut only supports 64bit platforms. It should work out of the box on a clean install of Ubuntu 15.04 (assuming you have the correct video drivers installed).

Note: If you are experiencing crashes or missing in-game content (blank dialogues, missing sounds or textures) check out my post here: viewtopic.php?f=34&t=14060&p=164139#p164139

It appears, the Unity3D 5.0 audio back-end has switched to PulseAudio exclusively. Be sure to have it installed and the daemon/service running, if you are having trouble launching the game.

Arch Linux
x86_64 - 64bit Systems
  • gcc-libs (or gcc-libs-multilib)
  • glibc
  • libx11
  • libxau
  • libxcb
  • libxcursor
  • libxdmcp
  • libxext
  • libxfixes
  • libxrandr
  • libxrender
  • pulseaudio
Something to provide libgl such as: mesa-libgl, nvidia-libgl, nvidia-304xx-libgl, etc.

Debian
You should be able to use this list on any package compatible derivative, such as: Ubuntu (Kubuntu, Xubuntu, Lubuntu, etc.), Mint, elementary, Zorin, Kali, Bodhi, Deepin, CrunchBang, etc.

x86_64 - 64bit Systems
  • libasound2-plugins
  • libglu1-mesa (or any package providing libglu1)
  • libxcursor1
  • libxrandr2
  • pulseaudio
Something to provide libgl such as: libgl1-mesa-glx, libgl1-nvidia-glx, libgl1-nvidia-legacy-304xx-glx, etc.

Notes:
Omitted any specific sound or graphic drivers, as they can be different depending on your hardware.

How to install missing packages:

Code: Select all

sudo pacman -S [package]
Wasteland 2: Original Release
Arch Linux
i386 - 32bit Systems
  • glibc
  • glu
  • libx11
  • libxau
  • libxcb
  • libxcursor
  • libxdmcp
  • libxext
  • libxfixes
  • libxrandr
  • libxrender
Something to provide libgl such as: mesa-libgl, nvidia-libgl, nvidia-304xx-libgl, etc.

x86_64 - 64bit Systems (multilib is required)
  • lib32-gcc-libs
  • lib32-glibc
  • lib32-glu
  • lib32-libx11
  • lib32-libxau
  • lib32-libxcb
  • lib32-libxcursor
  • lib32-libxdmcp
  • lib32-libxext
  • lib32-libxfixes
  • lib32-libxrandr
  • lib32-libxrender
Something to provide lib32-libgl such as: lib32-mesa-libgl, lib32-nvidia-libgl, lib32-nvidia-304xx-libgl, etc. You may also need lib32-alsa-lib and lib32-alsa-plugins for sound.

Notes:
Omitted any specific sound or graphic drivers, as they can be different depending on your hardware.

How to install missing packages:

Code: Select all

sudo pacman -S [package]
Debian
You should be able to use this list on any package compatible derivative, such as: Ubuntu (Kubuntu, Xubuntu, Lubuntu, etc.), Mint, elementary, Zorin, Kali, Bodhi, Deepin, CrunchBang, etc.

i386 - 32bit Systems
  • libglu1-mesa
  • libx11-6
  • libxau6
  • libxcb1
  • libxcursor1
  • libxdmcp6
  • libxext6
  • libxfixes3
  • libxrandr2
  • libxrender1
Something to provide libgl such as: libgl1-mesa-glx, libgl1-nvidia-glx, libgl1-nvidia-legacy-304xx-glx, etc.

x86_64 - 64bit Systems
  • libglu1-mesa:i386
  • libx11-6:i386
  • libxau6:i386
  • libxcb1:i386
  • libxcursor1:i386
  • libxdmcp6:i386
  • libxext6:i386
  • libxfixes3:i386
  • libxrandr2:i386
  • libxrender1:i386
Something to provide the 32bit version of libgl such as: libgl1-mesa-glx:i386, libgl1-nvidia-glx-i386, libgl1-nvidia-legacy-304xx-glx-i386, etc. You may also need libasound2:i386 for sound.

Notes:
Omitted any specific sound or graphic drivers, as they can be different depending on your hardware.

How to install missing packages:

Code: Select all

sudo apt-get install [package]
Bundled Steam Libraries
If you're still having problems: it is possible that Steam itself is to blame. In attempt to recreate a Ubuntu 12.04 environment Steam bundles in a number of system libraries as part of it's installation. Those libraries can conflict with the newer versions already included in your distribution.

The following libraries are known to cause problems for some people:

Code: Select all

~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6
~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1
~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libgcc_s.so.1
~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6
~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libxcb.so.1
Simply deleting them is enough to force Steam to fallback on the "real" libraries provided by your distribution (I suggest deleting them one at a time). Hopefully that will get you up and running.

Notes:
When Steam performs self updates it will download new copies of these libraries (so you'll need to delete them again).

Here's some more info:
https://github.com/ValveSoftware/steam- ... /issues/13

Bundled GOG.com Libraries
Like Steam, GOG.com has started bundling system libraries in some of it's downloads (see above for more information). But the GOG.com libraries are a little easier to by pass: instead of launching the game using the start.sh bash script, simply navigate to the game directory and launch WL2 to start the game.

Re: Linux Dependencies

Posted: October 16th, 2014, 11:50 pm
by Proton Axeman
If anybody is trying to use the the GOG version on Gentoo, there's an ebuild already in portage -- games-rpg/wasteland2.

Re: Linux Dependencies

Posted: November 9th, 2014, 2:21 am
by jaephu
debian X64

installing libsdl-mixer1.2:i386 and libsdl-sound1.2:i386 and all dependancies Fixed the audio for me.

Re: Linux Dependencies

Posted: November 10th, 2014, 12:23 pm
by tonurics
Thanks for reporting the dependencies; post updated.

Re: Linux Dependencies

Posted: November 10th, 2014, 3:00 pm
by vv221
jaephu wrote:debian X64

installing libsdl-mixer1.2:i386 and libsdl-sound1.2:i386 and all dependancies Fixed the audio for me.
Probably be a bit overkill, I think libasound2:i386 is enough to get sound working on Debian amd64.

Re: Linux Dependencies

Posted: November 10th, 2014, 7:02 pm
by tonurics
That would make sense: libasound2:i386 [debian] appears to be the equivalent to lib32-alsa-lib [arch].

Re: Linux Dependencies

Posted: November 11th, 2014, 12:49 am
by kilobug
Thanks for the summary post :)

In addition, if you've trouble running the game on a "non-officially supported" Linux (like Debian Sid for me), try removing the libstdc++ that's bundled in the game, it's usually older than the system's one, and conflicts with some other components (like, with mesa for me).

Re: Linux Dependencies

Posted: November 11th, 2014, 6:24 pm
by tonurics
kilobug,

Thanks for reporting the issue with the bundled steam libraries. I had suspected it was causing issues for some people: viewtopic.php?f=34&t=10745&p=136899#p136899

Now that you've confirmed it, I'll update the main post.

Re: Linux Dependencies

Posted: November 12th, 2014, 1:27 am
by kilobug
tonurics wrote:kilobug,

Thanks for reporting the issue with the bundled steam libraries. I had suspected it was causing issues for some people: viewtopic.php?f=34&t=10745&p=136899#p136899

Now that you've confirmed it, I'll update the main post.
Note : it also applies to the GOG version, I'm not using Steam, but the GOG version bundles the same system libs (with the same issues).

Re: Linux Dependencies

Posted: November 12th, 2014, 4:59 pm
by tonurics
Thanks for the info. I didn't know that was happening on the GOG version; I guess I need to download it and see what's going on with it.

Re: Linux Dependencies

Posted: January 16th, 2015, 3:00 am
by vv221
Running some tests to find a automated way to list the dependencies of a Linux binary (based on 'ldd').
And here is the result for Wasteland 2 on a Debian Sid (should be identical on a Debian Jessie):

Code: Select all

libc6
libdrm2
libexpat1
libgcc1
libgl1-mesa-glx
libglapi-mesa
libglu1-mesa
libstdc++6
libx11-6
libx11-xcb1
libxau6
libxcb1
libxcb-dri2-0
libxcb-dri3-0
libxcb-glx0
libxcb-present0
libxcb-sync1
libxcursor1
libxdamage1
libxdmcp6
libxext6
libxfixes3
libxrandr2
libxrender1
libxshmfence1
libxxf86vm1
Unlike the futile humans we are, my command should not have forgotten any dependency ;)

Re: Linux Dependencies

Posted: January 16th, 2015, 4:21 pm
by tonurics
I used ldd to help identify the packages that needed to be installed on Arch. :)

Re: Linux Dependencies

Posted: January 17th, 2015, 3:51 am
by vv221
tonurics wrote:I used ldd to help identify the packages that needed to be installed on Arch. :)
Do you have any idea about why no sound lib get listed via ldd?
Does some kind of abstraction layer get in the way?

Not that it really matters, but I’m always curious.

Re: Linux Dependencies

Posted: January 18th, 2015, 4:23 am
by tonurics
My guess would be because ALSA is actually part of the kernel. ;)

Re: Linux Dependencies

Posted: January 19th, 2015, 1:19 am
by kilobug
tonurics wrote:My guess would be because ALSA is actually part of the kernel. ;)
ALSA is both, it has a in-kernel part (a generic one, and a hardware base driver) but it also has a userland part with libraries to interface to those kernel modules. It's probably loaded dynamically through some intermediate layer, yes.

Probably the best way to have the exact list of used libraries is to throw a "lsof" while the game is running, and extract the list from that. I'll try to do that one day.

Re: Linux Dependencies

Posted: October 20th, 2015, 12:04 pm
by tonurics
Added: Director's Cut section to the first post.

Re: Linux Dependencies

Posted: October 21st, 2015, 12:56 am
by kilobug
tonurics wrote:Added: Director's Cut section to the first post.
Thanks for updating, but I don't think it's Unity 5 that forces pulseaudiio, I'll double check once I'm back home, but I'm pretty sure I played Unity 5 games before on my desktop which isn't running pulseaudio. Or perhaps different "minor" versions of Unity 5 ?

Re: Linux Dependencies

Posted: October 21st, 2015, 4:40 am
by tonurics
It's possible the Unity3D team made some custom patches for us. I vaguely remember there being a problem with audio when we first switched to Unity3D 5.0.

Re: Linux Dependencies

Posted: October 29th, 2015, 10:04 am
by vv221
For Wasteland 2 DC on Debian amd64:
  • libasound2-plugins
  • libglu1-mesa (or any package providing libglu1)
  • libxcursor1
  • libxrandr2
  • pulseaudio
Yep, that’s quite a short list, but everything else seems to be installed by APT dependencies management, as long as "recommended" dependencies are installed by your package manager.

Re: Linux Dependencies

Posted: October 29th, 2015, 11:12 am
by tonurics
Thanks vv221! I updated the top post.

The game actually works out of the box on a clean install of Ubuntu 15.04, so the short list isn't too surprising. ;)