[Interest] Linux Deployment Question
Kevin Funk
kfunk at kde.org
Wed Sep 6 12:13:10 CEST 2017
On Tuesday, 5 September 2017 08:34:15 CEST Oliver Niebuhr wrote:
> Good morning.
>
> I think I have found now all necessary Files to deploy my App from
> Antergos to other Distros.
You might also want to have a look at the (relatively new) Linux deployment
tool:
https://github.com/probonopd/linuxdeployqt
Maybe it makes deployment easier for you.
Regards,
Kevin
> But in a clean Debian VM (GNU/Linux 9
> (stretch) 64 bit, GNOME 3.22.2, Gallium 0.4 on llvmpipe (llvm 3.9, 128
> bits)) i still get an Error when I try to start the Application. In my
> Pro File I added this Line (Tip from the tripleboot.org Blog):
>
> linux:QMAKE_LFLAGS += -Wl,-rpath,"'\$$ORIGIN'"
>
> So the App looks for the Qt5 Libs in the Directory where it is called
> from. Like expected.
>
> But no matter if I run the Binary directly or if I use this Script from
> the Qt Deployment Wiki:
>
> #!/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 "$@"
>
> I get this Error:
> /home/test/AKKomPolTool/./AKKomPolTool: <some numbers and unicode chars>
> Error: <a changing number>
>
> The Qt5 Main Libs are in the same Directory where the Binary is - so far
> so good. And all the Plugins are under
> /directory with binary/plugins/<subdirectories>
>
> I am not sure what I am still missing. Does a Debian User need to
> install some additional Qt5 Stuff first to make the App work? Any hint
> is much appreciated!
>
> This is the List of Files I am currently deploying (not sure if they are
> all necessary [well of course i need the GCC Files]):
>
> QT5 LIBs...
> /qt-buildx64/lib/libQt5Core.so.5
> /qt-buildx64/lib/libQt5DBus.so.5
> /qt-buildx64/lib/libQt5Gui.so.5
> /qt-buildx64/lib/libQt5Network.so.5
> /qt-buildx64/lib/libQt5PrintSupport.so.5
> /qt-buildx64/lib/libQt5Sql.so.5
> /qt-buildx64/lib/libQt5Widgets.so.5
> /qt-buildx64/lib/libQt5XcbQpa.so.5
> /qt-buildx64/lib/libQt5Xml.so.5
>
> Bearer Plugins...
> /qt-buildx64/plugins/bearer/libqconnmanbearer.soplugins/bearer/
> /qt-buildx64/plugins/bearer/libqgenericbearer.soplugins/bearer/
> /qt-buildx64/plugins/bearer/libqnmbearer.soplugins/bearer/
>
> Imageformats Plugins...
> /qt-buildx64/plugins/imageformats/libqgif.so
> /qt-buildx64/plugins/imageformats/libqicns.so
> /qt-buildx64/plugins/imageformats/libqico.so
> /qt-buildx64/plugins/imageformats/libqjp2.so
> /qt-buildx64/plugins/imageformats/libqjpeg.so
> /qt-buildx64/plugins/imageformats/libqmng.so
> /qt-buildx64/plugins/imageformats/libqtga.so
> /qt-buildx64/plugins/imageformats/libqtiff.so
> /qt-buildx64/plugins/imageformats/libqwbmp.so
> /qt-buildx64/plugins/imageformats/libqwebp.so
>
> Platforminputcontexts Plugins...
> /qt-buildx64/plugins/platforminputcontexts/libcomposeplatforminputcontextplu
> gin.so
> /qt-buildx64/plugins/platforminputcontexts/libibusplatforminputcontextplugi
> n.so
>
> Platforms Plugins...
> /binaries/qt-buildx64/plugins/platforms/libqxcb.so
>
> Platformthemes Plugins...
> /qt-buildx64/plugins/platformthemes/libqgtk3.so
>
> Printsupport Plugins...
> /qt-buildx64/plugins/printsupport/libcupsprintersupport.so
>
> Sqldrivers Plugins...
> /qt-buildx64/plugins/sqldrivers/libqsqlite.so
>
> Xcbglintegrations Plugins...
> /qt-buildx64/plugins/xcbglintegrations/libqxcb-glx-integration.so
>
> #FIX Check if we must really deploy all that nonsense!!
> 3RDPARTY AND SYSTEM LIBs...
> /usr/lib64/libbz2.so.1.0
> /usr/lib64/libc.so.6
> /usr/lib64/libdbus-1.so.3
> /usr/lib64/libdl.so.2
> /usr/lib64/libdouble-conversion.so.1
> /usr/lib64/libexpat.so.1
> /usr/lib64/libfontconfig.so.1
> /usr/lib64/libfreetype.so.6
> /usr/lib64/libgcc_s.so.1
> /usr/lib64/libgcrypt.so.20
> /usr/lib64/libGL.so.1
> /usr/lib64/libGLdispatch.so.0
> /usr/lib64/libglib-2.0.so.0
> /usr/lib64/libGLX.so.0
> /usr/lib64/libgpg-error.so.0
> /usr/lib64/libgraphite2.so.3
> /usr/lib64/libgthread-2.0.so.0
> /usr/lib64/libharfbuzz.so.0
> /usr/lib64/libICE.so.6
> /usr/lib64/liblz4.so.1
> /usr/lib64/liblzma.so.5
> /usr/lib64/libm.so.6
> /usr/lib64/libpcre.so.1
> /usr/lib64/libpcre2-16.so.0
> /usr/lib64/libpng16.so.16
> /usr/lib64/libpthread.so.0
> /usr/lib64/librt.so.1
> /usr/lib64/libSM.so.6
> /usr/lib64/libstdc++.so.6
> /usr/lib64/libsystemd.so.0
> /usr/lib64/libuuid.so.1
> /usr/lib64/libX11.so.6
> /usr/lib64/libX11-xcb.so.1
> /usr/lib64/libXau.so.6
> /usr/lib64/libxcb.so.1
> /usr/lib64/libxcb-icccm.so.4
> /usr/lib64/libxcb-image.so.0
> /usr/lib64/libxcb-keysyms.so.1
> /usr/lib64/libxcb-randr.so.0
> /usr/lib64/libxcb-render.so.0
> /usr/lib64/libxcb-render-util.so.0
> /usr/lib64/libxcb-shape.so.0
> /usr/lib64/libxcb-shm.so.0
> /usr/lib64/libxcb-sync.so.1
> /usr/lib64/libxcb-util.so.1
> /usr/lib64/libxcb-xfixes.so.0
> /usr/lib64/libxcb-xinerama.so.0
> /usr/lib64/libxcb-xkb.so.1
> /usr/lib64/libXdmcp.so.6
> /usr/lib64/libXext.so.6
> /usr/lib64/libXi.so.6
> /usr/lib64/libxkbcommon.so.0
> /usr/lib64/libxkbcommon-x11.so.0
> /usr/lib64/libXrender.so.1
> /usr/lib64/libz.so.1
>
> OpenSSL 1.1.0 LIBs...
> /home/oliver/developing/binaries/opensslx64release/lib/libssl.so.1.1
> /home/oliver/developing/binaries/opensslx64release/lib/libcrypto.so.1.1
>
> ICU 59.1 LIBs...
> /home/oliver/developing/binaries/icux64release/lib/libicui18n.so.59
> /home/oliver/developing/binaries/icux64release/lib/libicuuc.so.59
> /home/oliver/developing/binaries/icux64release/lib/libicudata.so.59
>
> Thank You very much!
> Oliver
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
--
Kevin Funk | kfunk at kde.org | http://kfunk.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170906/d39d06f4/attachment.sig>
More information about the Interest
mailing list