Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. A problem when I try to deploy my QT5 application in Ubuntu.
Qt 6.11 is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Install the dependencies as listed here: "link":http://qt-project.org/wiki/Building_Qt_5_from_Git. Or do something like:
      @
      sudo apt-get build-dep qt5-qmake
      @

      (Z(:^

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goblincoding
        wrote on last edited by
        #3

        "This":http://goblincoding.com/2013/11/07/deploying-qt-5-applications-on-ubuntu-12-04/ might help you (my personal experience with deploying Qt5 apps on Ubuntu)

        http://www.goblincoding.com

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved