Script to run my app QT
-
wrote on 18 Jun 2015, 21:27 last edited by
Hi again!
I'm trying write a shell script to run my qt app, because my libraries remains in folders like this img: http://i62.tinypic.com/s426o2.png , where de qt platform is the file libxcb.so.1 and the qtlibs is the rest of the libs.
But then, i copied the script of the http://doc.qt.io/qt-5/linux-deployment.html#creating-the-application-package .
´´´
#!/bin/sh
appname=basename $0 | sed s,\.sh$,,
dirname=
dirname $0
tmp="${dirname#?}"if [ "${dirname%$tmp}" != "/" ]; then
dirname=$PWD/$dirname
fi
LD_LIBRARY_PATH=$dirname;
export LD_LIBRARY_PATH
$dirname/$appname "$@" ´´´What i change to make this script valid for my app? I dont now anything about shell script. Please give me a light. rs
-
wrote on 19 Jun 2015, 05:41 last edited by
Hi,
The script works only if the Qt libraries are in the same directory of the executable.
Move the .so files fromqtlibs
to the directory where the script and the executable are.
1/2