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: 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



  • 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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.