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

Questions regarding the use of UaModeler

Moderator: uamodeler

Post Reply
ighoddan
Sr. Member
Sr. Member
Posts: 10
Joined: 20 Jun 2014, 17:24

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

Post 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

LambertD
Hero Member
Hero Member
Posts: 22
Joined: 25 Jun 2014, 07:49

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

Post 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)

ighoddan
Sr. Member
Sr. Member
Posts: 10
Joined: 20 Jun 2014, 17:24

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

Post 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

ighoddan
Sr. Member
Sr. Member
Posts: 10
Joined: 20 Jun 2014, 17:24

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

Post 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

geertpeeters
Jr. Member
Jr. Member
Posts: 1
Joined: 08 Sep 2015, 07:31

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

Post 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?

freefl
Jr. Member
Jr. Member
Posts: 2
Joined: 29 Oct 2015, 14:19

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

Post 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!

freefl
Jr. Member
Jr. Member
Posts: 2
Joined: 29 Oct 2015, 14:19

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

Post 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

Post Reply