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:
    appname=basename $0 | sed s,\.sh$,,

    dirname=dirname $0

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


Log in to reply

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