Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to add plugins to Qt
Forum Updated to NodeBB v4.3 + New Features

How to add plugins to Qt

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 1.1k 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.
  • S Offline
    S Offline
    SPRB
    wrote on last edited by
    #1

    Development environment details
    OS details : Linux ( Ubuntu 12.04 LTS )
    Application framework: Qt Creator 2.7.0 Based on Qt 5.0.2 (32 bit)

    Test 1 : Running a QT application on a Ubuntu environment where there is no qt installed on the current user account. ( Note : Other user account has a Qt creator installed in it )
    Result : Application is working perfectly.

    Test 2: Trying to run the same application on a Ubuntu environment where none of the user Accounts has Qt installed on it.
    Result : Error : Failed to load platform plugin "xcb". Available platforms are:
    Aborted (core dumped).

    Other details:
    Using following .sh file to redirect the qt library path. ( Application is taking the lib files perfectly from the user
    defined path)

    @ #!/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
    

    LD_LIBRARY_PATH=$PWD/lib
    export LD_LIBRARY_PATH
    $dirname/$appname "$@"@

    Anybody please help me to find the solution for the following error:
    Failed to load platform plugin "xcb". Available platforms are:
    Aborted (core dumped).

    OR: Please help me to add plugins to deployment ,

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stevenceuppens
      wrote on last edited by
      #2

      Hi,

      Since version 5, Qt uses a "platform abstraction system (QPA)":http://qt-project.org/wiki/Qt-Platform-Abstraction to abstract from the underlying platform.

      The implementation for each platform is provided by plugins. For X11 it is the XCB plugin. See " Qt for X11 requirements":http://qt-project.org/doc/qt-5.0/qtdoc/requirements-x11.html for more information about the dependencies.

      Rgds, Steven

      Steven CEUPPENS
      Developer / Architect
      Mobile: +32 479 65 93 10

      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