Important: Please read the Qt Code of Conduct -

Script to run my app QT

  • Hi again!
    I'm trying write a shell script to run my qt app, because my libraries remains in folders like this img: , where de qt platform is the file and the qtlibs is the rest of the libs.
    But then, i copied the script of the .
    appname=basename $0 | sed s,\.sh$,,

    dirname=dirname $0

    if [ "${dirname%$tmp}" != "/" ]; then
    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

  • Hi,

    The script works only if the Qt libraries are in the same directory of the executable.
    Move the .so files from qtlibs to the directory where the script and the executable are.

Log in to reply