Difference between revisions of "Unpacking resources for Linux"

From Heroes of Hammerwatch wiki
Jump to: navigation, search
(+Troubleshooting help for Unpacking resources in Linux/Ubuntu)
 
(Mentioning LD_PRELOAD as told on Discord)
Line 4: Line 4:
 
error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
 
error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
 
</pre>
 
</pre>
 +
 +
Those files are somewhere in /.steam/ . You can add it via LD_PRELOAD.
 +
 +
Alternatively, you can install them in your system (thought they're old and that wouldn't make that much sense)
  
 
The binary uses an old version of libpng so you'll have to install it. Unfortunately it isn't available directly on Ubuntu, so you'll need to add a ppa. [https://www.linuxuprising.com/2018/05/fix-libpng12-0-missing-in-ubuntu-1804.html Linuxuprising]'s ppa has a working version :
 
The binary uses an old version of libpng so you'll have to install it. Unfortunately it isn't available directly on Ubuntu, so you'll need to add a ppa. [https://www.linuxuprising.com/2018/05/fix-libpng12-0-missing-in-ubuntu-1804.html Linuxuprising]'s ppa has a working version :

Revision as of 06:29, 10 April 2020

In Linux/Ubuntu in the more recent versions (~18.04), when trying to run Packager binary to unpack resources, you'll probably run into the following errors :

error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

Those files are somewhere in /.steam/ . You can add it via LD_PRELOAD.

Alternatively, you can install them in your system (thought they're old and that wouldn't make that much sense)

The binary uses an old version of libpng so you'll have to install it. Unfortunately it isn't available directly on Ubuntu, so you'll need to add a ppa. Linuxuprising's ppa has a working version :

sudo add-apt-repository ppa:linuxuprising/libpng12
sudo apt update
sudo apt install libpng12-0

You'll probably then run into

./Packager: error while loading shared libraries: libtiff.so.4: cannot open shared object file: No such file or directory

Here again libtiff4 is an old library that you need to install. You can get it here, download libtiff4_3.9.7-2ubuntu1_amd64.deb package and installing it should work.