TTimo / GtkRadiant

The open source, cross platform level editor for idtech games
http://icculus.org/gtkradiant/
Other
581 stars 152 forks source link

libpng12 not available on Ubuntu Bionic #630

Open Fleuv opened 5 years ago

Fleuv commented 5 years ago

Unable to run GtkRadiant on Ubuntu Bionic Beaver (18.04)

Because libpng12 is no longer supported by the distro, it supported up to Ubuntu Trusty (16.04). Ubuntu Bionic Beaver uses libpng16 please consider updating libpng12 to libpng16.

Current work around for users on Ubuntu > 16.04

  1. Download GtkRadiant 1.6.4 from the website.
  2. Download the missing libraries, available on bionic: sudo apt install libjpeg62 libjpeg-dev
  3. Append to or create a new file at /etc/apt/preferences with the contents:
    
    Package: *
    Pin: release n=bionic
    Pin-Priority: 501

Package: libpng12-0 libpng12-dev Pin: release n=trusty Pin-Priority: 502

4. Add the trusty repository:

sudo add-apt-repository 'deb http://YOURCOUNTRYCODE.archive.ubuntu.com/ubuntu/ trusty main restricted' sudo add-apt-repository 'deb http://YOURCOUNTRYCODE.archive.ubuntu.com/ubuntu/ trusty-updates main restricted'

5. Perform the following commands to install libpng12:

sudo apt update sudo apt install libpng12-0 libpng12-dev


6. You should now be able to execute radiant.bin and run GtkRadiant successfully.
cagelight commented 5 years ago

You can also just compile it from source from this repo as there's no hard dependency on libpng12, it's just what the precompiled binaries on the website come with. Those binaries are from 2013... they should probably be updated.