[SOLVED] QT Deploy : This application failed to start because it could not find or load the Qt platform plugin "xcb" in "".



  • i'm using Ubuntu 14.04.10 with QT 5.6
    i have been create my .deb with dpkg-deb --build MyApp
    when i install it on another ubuntu 14.04.10 but without QT
    i cannot execute my application ..

    This application failed to start because it could not find or load the Qt platform plugin "xcb"
    in "".
    
    Available platform plugins are: xcb.
    
    Reinstalling the application may fix this problem.
    Aborted (core dumped)
    

    my library on /usr/lib/x86_64-linux-gnu/qt5
    my libqxcb.so on /usr/lib/x86_64-linux-gnu/qt5/platforms and /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms



  • Hi, try putting the .so files that the plugin libqxcb.so needs together with it in the same platforms directory, they are:

    libQt5XcbQpa.so.5
    libQt5DBus.so.5
    

    Also see same discussion here



  • like this ..??

    #BEFORE
    
    [DEBREATE-0.7.10]
    <<CTRL>>
    Package: myapp
    Version: 1.0-2
    Section: utils
    Maintainer: Zenaki Kurniawan <zenaki.zen.aku@gmail.com>
    Priority: optional
    Architecture: amd64
    Depends: libc6
    Description: test deploy
    <</CTRL>>
    <<FILES>>
    1
    /home/zenaki/Qt5.6.0/5.6/gcc_64/plugins/platforms/libqxcb.so* -> libqxcb.so -> /usr/lib/x86_64-linux-gnu/qt5/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5XcbQpa.so.5* -> libQt5XcbQpa.so.5 -> /usr/lib/x86_64-linux-gnu/qt5
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Widgets.so.5* -> libQt5Widgets.so.5 -> /usr/lib/x86_64-linux-gnu/qt5
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5SerialPort.so.5* -> libQt5SerialPort.so.5 -> /usr/lib/x86_64-linux-gnu/qt5
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Gui.so.5* -> libQt5Gui.so.5 -> /usr/lib/x86_64-linux-gnu/qt5
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5DBus.so.5* -> libQt5DBus.so.5 -> /usr/lib/x86_64-linux-gnu/qt5
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Core.so.5* -> libQt5Core.so.5 -> /usr/lib/x86_64-linux-gnu/qt5
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libicuuc.so.56* -> libicuuc.so.56 -> /usr/lib/x86_64-linux-gnu/qt5
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libicui18n.so.56* -> libicui18n.so.56 -> /usr/lib/x86_64-linux-gnu/qt5
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libicudata.so.56* -> libicudata.so.56 -> /usr/lib/x86_64-linux-gnu/qt5
    /home/zenaki/QT Project/test deploy/myapp/icon.png -> icon.png -> /usr/share/pixmaps
    /home/zenaki/QT Project/test deploy/myapp/myapp.sh -> myapp.sh -> /usr/local/bin
    /home/zenaki/QT Project/test deploy/myapp/myapp* -> myapp -> /usr/local/bin
    <</FILES>>
    <<SCRIPTS>>
    <<PREINST>>
    0
    <</PREINST>>
    <<POSTINST>>
    0
    <</POSTINST>>
    <<PRERM>>
    0
    <</PRERM>>
    <<POSTRM>>
    0
    <</POSTRM>>
    <</SCRIPTS>>
    <<CHANGELOG>>
    <<DEST>>DEFAULT<</DEST>>
    
    <</CHANGELOG>>
    <<COPYRIGHT>>
    <</COPYRIGHT>>
    <<MENU>>
    1
    Name=myapp
    Version=1.0-2
    Exec=bash /usr/local/bin/myapp.sh
    Comment=test deploy
    Icon=/usr/share/pixmaps/icon.png
    Type=Application
    Terminal=false
    StartupNotify=false
    Encoding=UTF-8
    Categories=Utility;Qt;
    Version=1.0-2
    <</MENU>>
    <<BUILD>>
    0
    0
    1
    <</BUILD>>
    
    #AFTER
    
    [DEBREATE-0.7.10]
    <<CTRL>>
    Package: myapp
    Version: 1.0-2
    Section: utils
    Maintainer: Zenaki Kurniawan <zenaki.zen.aku@gmail.com>
    Priority: optional
    Architecture: amd64
    Depends: libc6
    Description: test deploy
    <</CTRL>>
    <<FILES>>
    1
    /home/zenaki/Qt5.6.0/5.6/gcc_64/plugins/platforms/libqxcb.so* -> libqxcb.so -> /usr/lib/x86_64-linux-gnu/qt5/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5DBus.so.5* -> libQt5DBus.so.5 -> /usr/lib/x86_64-linux-gnu/qt5/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5XcbQpa.so.5* -> libQt5XcbQpa.so.5 -> /usr/lib/x86_64-linux-gnu/qt5/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Widgets.so.5* -> libQt5Widgets.so.5 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5SerialPort.so.5* -> libQt5SerialPort.so.5 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Gui.so.5* -> libQt5Gui.so.5 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Core.so.5* -> libQt5Core.so.5 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libicuuc.so.56* -> libicuuc.so.56 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libicui18n.so.56* -> libicui18n.so.56 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libicudata.so.56* -> libicudata.so.56 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/QT Project/test deploy/myapp/icon.png -> icon.png -> /usr/share/pixmaps
    /home/zenaki/QT Project/test deploy/myapp/myapp.sh -> myapp.sh -> /usr/local/bin
    /home/zenaki/QT Project/test deploy/myapp/myapp* -> myapp -> /usr/local/bin
    <</FILES>>
    <<SCRIPTS>>
    <<PREINST>>
    0
    <</PREINST>>
    <<POSTINST>>
    0
    <</POSTINST>>
    <<PRERM>>
    0
    <</PRERM>>
    <<POSTRM>>
    0
    <</POSTRM>>
    <</SCRIPTS>>
    <<CHANGELOG>>
    <<DEST>>DEFAULT<</DEST>>
    
    <</CHANGELOG>>
    <<COPYRIGHT>>
    <</COPYRIGHT>>
    <<MENU>>
    1
    Name=myapp
    Version=1.0-2
    Exec=bash /usr/local/bin/myapp.sh
    Comment=test deploy
    Icon=/usr/share/pixmaps/icon.png
    Type=Application
    Terminal=false
    StartupNotify=false
    Encoding=UTF-8
    Categories=Utility;Qt;
    Version=1.0-2
    <</MENU>>
    <<BUILD>>
    0
    0
    1
    <</BUILD>>
    

    it's same T_T

    this application failed to start because it could not find or load the Qt platform plugin "xcb"
    in "".
    
    Reinstalling the application may fix this problem.
    Aborted (core dumped)
    

    i add on my .pro

    unix:QMAKE_RPATHDIR = /usr/lib/x86_64-linux-gnu/qt5
    unix:QMAKE_LFLAGS += -Wl,-rpath /usr/lib/x86_64-linux-gnu/qt5
    

    and on my main.cpp

    QApplication::setLibraryPaths(QStringList("/usr/lib/x86_64-linux-gnu/qt5"));
    

    this is my myapp.sh

     #!/bin/sh
     appname=`basename $0 | sed s,\.sh$,,`
     
     dirname=`dirname $0`
     tmp="${dirname#?}"
     
     if [ "${dirname%$tmp}" != "/" ]; then
     dirname=$PWD/$dirname
     fi
     LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/qt5:${LD_LIBRARY_PATH}
     export LD_LIBRARY_PATH
     $dirname/$appname "$@"
    

    help me please TT_TT



  • Hi, it should work if you get the RPATH set ok, I think you need to add a comma and quote it, like this:
    unix:QMAKE_LFLAGS += -Wl,-rpath,"/usr/lib/x86_64-linux-gnu/qt5"

    (Same for your QMAKE_RPATHDIR)

    Also what you can do, you can tell Qt where your libqxcb.so is, by using the command line switch -platformpluginpath when launching your app:

    ./myapp.sh -platformpluginpath /usr/lib/x86_64-linux-gnu/qt5/platforms
    

    Edit: forgot to say: for the above -platformpluginpath switch to work, you need to throw away the quotes in your myapp.sh file, like this:

    $dirname/$appname $@
    

    or you can just edit the file:

    $dirname/$appname -platformpluginpath /usr/lib/x86_64-linux-gnu/qt5/platforms "$@"
    


  • this problem is SOLVED ,, but maybe anybody can give me a suggestion ^_^

    this is my myApp.dbp

    [DEBREATE-0.7.10]
    <<CTRL>>
    Package: myapp
    Version: 1.0
    Section: utils
    Maintainer: Zenaki Kurniawan <zenaki@gmail.com>
    Priority: optional
    Architecture: amd64
    
    <</CTRL>>
    <<FILES>>
    1
    /home/zenaki/Qt5.6.0/5.6/gcc_64/plugins/platforms/libqxcb.so* -> libqxcb.so -> /usr/lib/x86_64-linux-gnu/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5XcbQpa.la -> libQt5XcbQpa.la -> /usr/lib/x86_64-linux-gnu/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5XcbQpa.prl -> libQt5XcbQpa.prl -> /usr/lib/x86_64-linux-gnu/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5XcbQpa.so* -> libQt5XcbQpa.so -> /usr/lib/x86_64-linux-gnu/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5XcbQpa.so.5* -> libQt5XcbQpa.so.5 -> /usr/lib/x86_64-linux-gnu/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5XcbQpa.so.5.6* -> libQt5XcbQpa.so.5.6 -> /usr/lib/x86_64-linux-gnu/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5XcbQpa.so.5.6.0* -> libQt5XcbQpa.so.5.6.0 -> /usr/lib/x86_64-linux-gnu/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5DBus.la -> libQt5DBus.la -> /usr/lib/x86_64-linux-gnu/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5DBus.prl -> libQt5DBus.prl -> /usr/lib/x86_64-linux-gnu/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5DBus.so* -> libQt5DBus.so -> /usr/lib/x86_64-linux-gnu/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5DBus.so.5* -> libQt5DBus.so.5 -> /usr/lib/x86_64-linux-gnu/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5DBus.so.5.6* -> libQt5DBus.so.5.6 -> /usr/lib/x86_64-linux-gnu/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5DBus.so.5.6.0* -> libQt5DBus.so.5.6.0 -> /usr/lib/x86_64-linux-gnu/platforms
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Widgets.la -> libQt5Widgets.la -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Widgets.prl -> libQt5Widgets.prl -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Widgets.so* -> libQt5Widgets.so -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Widgets.so* -> libQt5Widgets.so.5 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Widgets.so.5.6* -> libQt5Widgets.so.5.6 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Widgets.so.5.6.0* -> libQt5Widgets.so.5.6.0 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5SerialPort.la -> libQt5SerialPort.la -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5SerialPort.prl -> libQt5SerialPort.prl -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5SerialPort.so* -> libQt5SerialPort.so -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5SerialPort.so* -> libQt5SerialPort.so.5 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5SerialPort.so.5.6* -> libQt5SerialPort.so.5.6 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5SerialPort.so.5.6.0* -> libQt5SerialPort.so.5.6.0 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Gui.la -> libQt5Gui.la -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Gui.prl -> libQt5Gui.prl -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Gui.so* -> libQt5Gui.so -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Gui.so* -> libQt5Gui.so.5 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Gui.so.5.6* -> libQt5Gui.so.5.6 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Gui.so.5.6.0* -> libQt5Gui.so.5.6.0 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Core.la -> libQt5Core.la -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Core.prl -> libQt5Core.prl -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Core.so* -> libQt5Core.so -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Core.so* -> libQt5Core.so.5 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Core.so.5.6* -> libQt5Core.so.5.6 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libQt5Core.so.5.6.0* -> libQt5Core.so.5.6.0 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libicuuc.so.56.1* -> libicuuc.so.56.1 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libicuuc.so.56.1* -> libicuuc.so.56 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libicui18n.so.56.1* -> libicui18n.so.56.1 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libicui18n.so.56.1* -> libicui18n.so.56 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libicudata.so.56.1* -> libicudata.so.56.1 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/Qt5.6.0/5.6/gcc_64/lib/libicudata.so.56.1* -> libicudata.so.56 -> /usr/lib/x86_64-linux-gnu
    /home/zenaki/QT Project/myapp/usr/share/pixmaps/icon.png -> icon.png -> /usr/share/pixmaps
    /home/zenaki/QT Project/myapp/usr/local/bin/myapp.sh -> myapp.sh -> /usr/local/bin
    /home/zenaki/QT Project/myapp/usr/local/bin/qt.conf -> qt.conf -> /usr/local/bin
    /home/zenaki/QT Project//myapp/usr/local/bin/myapp* -> myapp -> /usr/local/bin
    <</FILES>>
    <<SCRIPTS>>
    <<PREINST>>
    0
    <</PREINST>>
    <<POSTINST>>
    1
    #! /bin/bash -e
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libicudata.so.56" "/usr/lib/x86_64-linux-gnu/libicudata.so"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libicudata.so.56.1" "/usr/lib/x86_64-linux-gnu/libicudata.so.56"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libicui18n.so.56" "/usr/lib/x86_64-linux-gnu/libicui18n.so"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libicui18n.so.56.1" "/usr/lib/x86_64-linux-gnu/libicui18n.so.56"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libicuuc.so.56" "/usr/lib/x86_64-linux-gnu/libicuuc.so"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libicuuc.so.56.1" "/usr/lib/x86_64-linux-gnu/libicuuc.so.56"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.6.0" "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.6"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.6" "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5" "/usr/lib/x86_64-linux-gnu/libQt5Core.so"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5Core.so" "/usr/lib/x86_64-linux-gnu/libQt5Core"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.6.0" "/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.6"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.6" "/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5" "/usr/lib/x86_64-linux-gnu/libQt5Gui.so"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5Gui.so" "/usr/lib/x86_64-linux-gnu/libQt5Gui"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5SerialPort.so.5.6.0" "/usr/lib/x86_64-linux-gnu/libQt5SerialPort.so.5.6"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5SerialPort.so.5.6" "/usr/lib/x86_64-linux-gnu/libQt5SerialPort.so.5"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5SerialPort.so.5" "/usr/lib/x86_64-linux-gnu/libQt5SerialPort.so"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5SerialPort.so" "/usr/lib/x86_64-linux-gnu/libQt5SerialPort"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.6.0" "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.6"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.6" "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5" "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so" "/usr/lib/x86_64-linux-gnu/libQt5Widgets"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/platforms/libQt5DBus.so.5.6.0" "/usr/lib/x86_64-linux-gnu/platforms/libQt5DBus.so.5.6"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/platforms/libQt5DBus.so.5.6" "/usr/lib/x86_64-linux-gnu/platforms/libQt5DBus.so.5"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/platforms/libQt5DBus.so.5" "/usr/lib/x86_64-linux-gnu/platforms/libQt5DBus.so"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/platforms/libQt5DBus.so" "/usr/lib/x86_64-linux-gnu/platforms/libQt5DBus"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/platforms/libQt5XcbQpa.so.5.6.0" "/usr/lib/x86_64-linux-gnu/platforms/libQt5XcbQpa.so.5.6"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/platforms/libQt5XcbQpa.so.5.6" "/usr/lib/x86_64-linux-gnu/platforms/libQt5XcbQpa.so.5"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/platforms/libQt5XcbQpa.so.5" "/usr/lib/x86_64-linux-gnu/platforms/libQt5XcbQpa.so"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/platforms/libQt5XcbQpa.so" "/usr/lib/x86_64-linux-gnu/platforms/libQt5XcbQpa"
    
    ln -fs "/usr/lib/x86_64-linux-gnu/platforms/libqxcb.so" "/usr/lib/x86_64-linux-gnu/platforms/libqxcb"
    <</POSTINST>>
    <<PRERM>>
    1
    #! /bin/bash -e
    
    rm "/usr/lib/x86_64-linux-gnu/libicudata.so"
    
    rm "/usr/lib/x86_64-linux-gnu/libicudata.so.56"
    
    rm "/usr/lib/x86_64-linux-gnu/libicui18n.so"
    
    rm "/usr/lib/x86_64-linux-gnu/libicui18n.so.56"
    
    rm "/usr/lib/x86_64-linux-gnu/libicuuc.so"
    
    rm "/usr/lib/x86_64-linux-gnu/libicuuc.so.56"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.6"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5Core.so.5"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5Core.so"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5Core"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.6"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5Gui.so"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5Gui"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5SerialPort.so.5.6"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5SerialPort.so.5"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5SerialPort.so"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5SerialPort"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.6"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5Widgets.so"
    
    rm "/usr/lib/x86_64-linux-gnu/libQt5Widgets"
    
    rm "/usr/lib/x86_64-linux-gnu/platforms/libQt5DBus.so.5.6"
    
    rm "/usr/lib/x86_64-linux-gnu/platforms/libQt5DBus.so.5"
    
    rm "/usr/lib/x86_64-linux-gnu/platforms/libQt5DBus.so"
    
    rm "/usr/lib/x86_64-linux-gnu/platforms/libQt5DBus"
    
    rm "/usr/lib/x86_64-linux-gnu/platforms/libQt5XcbQpa.so.5.6"
    
    rm "/usr/lib/x86_64-linux-gnu/platforms/libQt5XcbQpa.so.5"
    
    rm "/usr/lib/x86_64-linux-gnu/platforms/libQt5XcbQpa.so"
    
    rm "/usr/lib/x86_64-linux-gnu/platforms/libQt5XcbQpa"
    
    rm "/usr/lib/x86_64-linux-gnu/platforms/libqxcb"
    <</PRERM>>
    <<POSTRM>>
    0
    <</POSTRM>>
    <</SCRIPTS>>
    <<CHANGELOG>>
    <<DEST>>DEFAULT<</DEST>>
    
    <</CHANGELOG>>
    <<COPYRIGHT>>
    0
    <</COPYRIGHT>>
    <<MENU>>
    1
    Name=MyApp ver 1.0
    Version=1.0
    Exec=bash /usr/local/bin/myapp.sh
    Comment=My First Application
    Icon=/usr/share/pixmaps/icon.png
    Type=Application
    Terminal=false
    StartupNotify=false
    Encoding=UTF-8
    Categories=Qt;
    Version=1.0
    <</MENU>>
    <<BUILD>>
    0
    0
    1
    <</BUILD>>
    

    this is my myapp.sh

     #!/bin/sh
     appname=`basename $0 | sed s,\.sh$,,`
     
     dirname=`dirname $0`
     tmp="${dirname#?}"
     
     if [ "${dirname%$tmp}" != "/" ]; then
     dirname=$PWD/$dirname
     fi
     LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}
     export LD_LIBRARY_PATH
     $dirname/$appname "$@"
    

    this is my qt.conf

    [Paths]
    Prefix=/usr/lib/x86_64-linux-gnu
    Libraries=/usr/lib/x86_64-linux-gnu
    Plugins=/usr/lib/x86_64-linux-gnu
    

    i add some code on my myapp.pro and main.cpp

    [myapp.pro]
    CONFIG += release
    unix:QMAKE_RPATHDIR = "/usr/lib/x86_64-linux-gnu"
    unix:QMAKE_LFLAGS += "-Wl,-rpath /usr/lib/x86_64-linux-gnu"
    
    [main.cpp]
    QApplication::setLibraryPaths(QStringList("/usr/lib/x86_64-linux-gnu"));
    

    Thanks all ..


Log in to reply
 

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