I was trying to deploy my application on Ubuntu 16.04
. So i made a package with the following hierarchy -
Package
|
----bin
|
-----appli
First
Could it be that the pwd is not where you assume it is?
You could try adding
# Figure out where the application.sh script is located
scriptpath="$( cd "$(dirname "$0")" ; pwd -P )"
# Make sure our pwd is that location
cd "$scriptpath"
in the top of your script (assumes bash shell, from here)
By doing this all relative paths to Qt folder will be valid.
Second
Maybe you should considder exporting your new LD_LIBRARY_PATH, like so (from here):
LD_LIBRARY_PATH=whatever
export LD_LIBRARY_PATH
Third
It may be useful to run ldconfig command for ld to update after changing the variable (from here):
sudo ldconfig
All files in Your Qt directory are actually simlinks to non-existing files in the same directory, therefore they cannot be found.
If you look at the output of your ls -al
These are soft links that you have. Your softlink libQt5MultimediaWidgets.so.5
points to libQt5MultimediaWidgets.so.5.9.2
in the same directory and the file is not there at all. So you need to either set the correct softlink path or have the file in same directory
The file libQt5MultimediaWidgets.so
is not present in /Desktop/package/bin/Qt
according to the screenshots shown.