RasPlex / rasplex-installer

The RasPlex cross-platform GUI installer
99 stars 19 forks source link

GetRasplex-debian64.1.0.1.bin doesn't work on ubuntu 18.04 - wants libpng12.so.0 #48

Open akosmaroy opened 6 years ago

akosmaroy commented 6 years ago

Hi,

GetRasplex-debian64.1.0.1.bin doesn't work on ubuntu 18.04:

$ sudo ./GetRasplex-debian64.1.0.1.bin 
./GetRasplex-debian64.1.0.1.bin: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

whereas ubuntu 18.04 doesn't have libpng12:

$ apt-cache search libpng12
$ apt-cache search libpng
libpng-dev - PNG library - development (version 1.6)
libpng-tools - PNG library - tools (version 1.6)
libpng16-16 - PNG library - runtime (version 1.6)
fp-units-gfx - Free Pascal - graphics-library units dependency package
fp-units-gfx-3.0.4 - Free Pascal - graphics-library units
libpng++-dev - C++ interface to the PNG (Portable Network Graphics) library
libpng-sixlegs-java - Sixlegs Java PNG Decoder
libpng-sixlegs-java-doc - Documentation for Sixlegs Java PNG Decoder
libpnglite-dev - lightweight C library for loading and writing PNG images
libpnglite0 - lightweight C library for loading and writing PNG images
pngquant - PNG (Portable Network Graphics) image optimising utility
ruby-oily-png - native mixin to speed up ChunkyPNG
tkpng - PNG photo image support to Tcl/Tk

possibly statically linking libpng12 would make it work on this platform as well

Akos

Risca commented 6 years ago

I also noticed that the other day. The libpng dependency comes from Qt, which I thought I compiled statically. However, libpng was probably linked dynamically. I think it should be possible to rebuild Qt either without libpng altogether, or statically link it

Risca commented 6 years ago

I took a stab at linking with a static libpng this weekend, but I was unable to make it work. Even if I make Qt link with a static libpng, Qt links dynamically with libfreetype which links dynamically with libpng. That's when I gave up this time. I've compiled the installer on Ubuntu server 18.04 and attaching it here (packed with UPX and unpacked) rasplex-installer.zip