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:
@
#!/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?
-
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
@ -
"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)