A problem when I try to deploy my QT5 application in Ubuntu.



  • I use ldd to find out and copy all the library I need to a folder,
    and then I use a script i search from Google:
    @
    #!/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 "$@"
    @

    When I run this script,I got a problem:
    @This application failed to start because it could not find or load the Qt platform plugin "xcb".

    Reinstalling the application may fix this problem.@

    I try to copy libqxcb.so and libQt5DBus.so.5 to the folder,but it dosen't make any sense

    What should I do the next?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Please don't post the same thread in multiple sub-forum, one is enough

    "Duplicate":http://qt-project.org/forums/viewthread/34272/


Log in to reply
 

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