How to add plugins to Qt



  • 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 ,



  • 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


Log in to reply
 

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