Page 1 of 1

UaModeler, libpng14.so.14 missing (Ubuntu 14.04)

Posted: 29 Dec 2014, 17:43
by ighoddan
Hello,
i tried to install UaModeler under Ubuntu 14.04, 64Bit. When i try to run uamodeler, i get the error:

./uamodeler: error while loading shared libraries: libpng14.so.14: cannot open shared object file: No such file or directory

How can i solve this problem?
Thanks

Re: UaModeler, libpng14.so.14 missing (Ubuntu 14.04)

Posted: 30 Apr 2015, 15:51
by LambertD
The dependency on libpng14.so comes from Qt. I had the same problem on Fedora 20 where libpng14 is not in the distro. It probably also isn't in Ubuntu 14.04.
UaModeler is shipped with Qt prepackaged and that build of Qt depends on libpng14 probably because it was built on a system with libpng14.

What I did is I removed the rpath from the uamodeler executable so it uses the qt version from the distro. This is pretty safe because Qt is well designed and does a really good job of staying binary compatible. So Uamodeler will very likely run happily with the Qt version of Ubuntu 14.04 (given that it's Qt 4.8).

What you need to do is:

1.) Make a backup copy of your uamodeler executable in case things go wrong
2.) sudo chrpath -d uamodeler (In the directory where you install uamodeler)

Re: UaModeler, libpng14.so.14 missing (Ubuntu 14.04)

Posted: 22 Jul 2015, 09:13
by ighoddan
Hi LambertD,
i just read your answer today. Thanks. I tried what you wrote and it worked fine for me. But i have another problem. I tried the same for uaexpert, doing "sudo chrpath -d uaexpert" i get the following error:
./uaexpert: error while loading shared libraries: libuastack.so: cannot open shared object file: No such file or directory

Hope you can help me with this, too.

Thanks

Re: UaModeler, libpng14.so.14 missing (Ubuntu 14.04)

Posted: 22 Jul 2015, 10:02
by ighoddan
Hi,
i solved the problem, here is what i did:
  • install uaexpert
  • navigate to "/opt/unifiedautomation/uaexpert/bin"
  • run "sudo chrpath -d uaexpert"
  • run "sudo cp /opt/unifiedautomation/uaexpert/lib/libuastack.so /usr/lib/"
  • run "sudo cp /opt/unifiedautomation/uaexpert/lib/libqwt6.so /usr/lib/"
  • start uaexpert
Thanks again to LambertD :D

Re: UaModeler, libpng14.so.14 missing (Ubuntu 14.04)

Posted: 08 Sep 2015, 08:11
by geertpeeters
Hi,

I'm running Antergos (arch) 64-bit
by default libpng16 is installed
there is no libpng14 32-bit available in the repositories of antergos/arch

I did execute the commands from the previous reply with no success...

./uaexpert: error while loading shared libraries: libuastack.so: cannot open shared object file: No such file or directory

Currently I'm not able to use uaexpert since I couldn't find a solution on the internet.

Can somebody point me in the right direction?

Re: UaModeler, libpng14.so.14 missing (Ubuntu 14.04)

Posted: 29 Oct 2015, 14:56
by freefl
Hi,

I am running Ubuntu 64-bit (Vivid Vervet) and suffer the same problem as OP.
I executed the commands: "sudo chrpath -d uaexpert" and checked if path was deleted with "chrpath --list uaexpert".
When running uaexpert again after exporting all the libraries, I get the same error message again.
./uaexpert: error while loading shared libraries: libpng14.so.14: cannot open shared object file: No such file or directory
.

Did anybody get to run UA Expert on Linux 64bit?
Any help would be much appreciated!

Re: UaModeler, libpng14.so.14 missing (Ubuntu 14.04)

Posted: 02 Dec 2015, 17:10
by freefl
I found a solution to the above problem that works for me on Ubuntu Vivid 15.04.

Following the above steps still resulted in the error missing libpng14.so.14.
I went to http://rpm.pbone.net/ and searched for libpng14.so.14 and downloaded a rpm package containing the missing shared object. For example libpng14-14-32bit-1.4.8-3.1.2.x86_64.rpm

Install alien to convert the rpm package to Debian/Ubuntu package file:
sudo apt-get install alien

Install the downloaded package:
sudo alien -i libpng14-14-32bit-1.4.8-3.1.2.x86_64.rpm

Run UaExpert:
sudo ./uaexpert