Executable deployment procedure.



  • Hi,
    I want to take an Ubuntu executable build in Qt, And deploy in different Ubantu machine.
    It has following dependency.
    ldd Camera_SDL_Try_2
    linux-vdso.so.1 => (0x00007ffe6074d000)
    libavformat.so.58 => /usr/lib/libavformat.so.58 (0x00007fd27748d000)
    libavcodec.so.58 => /usr/lib/libavcodec.so.58 (0x00007fd275e08000)
    libavdevice.so.58 => /usr/lib/libavdevice.so.58 (0x00007fd275bf0000)
    libavutil.so.56 => /usr/lib/libavutil.so.56 (0x00007fd27597b000)
    libswscale.so.5 => /usr/lib/libswscale.so.5 (0x00007fd2756f2000)
    libSDL2-2.0.so.0 => /usr/local/lib/libSDL2-2.0.so.0 (0x00007fd2753c1000)
    libQt5Widgets.so.5 => /home/aditya/Qt5.9.0/5.9/gcc_64/lib/libQt5Widgets.so.5 (0x00007fd274b90000)
    libQt5Core.so.5 => /home/aditya/Qt5.9.0/5.9/gcc_64/lib/libQt5Core.so.5 (0x00007fd274458000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd2740d6000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd273ec0000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd273af6000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd2737ed000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fd2735d3000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd2733b6000)
    libswresample.so.3 => /usr/lib/libswresample.so.3 (0x00007fd273199000)
    libvpx.so.3 => /usr/lib/x86_64-linux-gnu/libvpx.so.3 (0x00007fd272d75000)
    libfdk-aac.so.0 => /usr/lib/x86_64-linux-gnu/libfdk-aac.so.0 (0x00007fd272ac4000)
    libmp3lame.so.0 => /usr/lib/x86_64-linux-gnu/libmp3lame.so.0 (0x00007fd27284f000)
    libopus.so.0 => /usr/lib/x86_64-linux-gnu/libopus.so.0 (0x00007fd272605000)
    libtheoraenc.so.1 => /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1 (0x00007fd2723c6000)
    libtheoradec.so.1 => /usr/lib/x86_64-linux-gnu/libtheoradec.so.1 (0x00007fd2721ac000)
    libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007fd271f80000)
    libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007fd271cd7000)
    libx264.so.148 => /usr/lib/x86_64-linux-gnu/libx264.so.148 (0x00007fd271933000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd27172f000)
    libavfilter.so.7 => /usr/lib/libavfilter.so.7 (0x00007fd271292000)
    libXv.so.1 => /usr/lib/x86_64-linux-gnu/libXv.so.1 (0x00007fd27108d000)
    libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fd270d53000)
    libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fd270b41000)
    libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fd27091f000)
    libxcb-shape.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007fd27071b000)
    libxcb-xfixes.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007fd270513000)
    libasound.so.2 => /usr/lib/x86_64-linux-gnu/libasound.so.2 (0x00007fd270213000)
    libsndio.so.6.1 => /usr/lib/x86_64-linux-gnu/libsndio.so.6.1 (0x00007fd270003000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fd26fdfb000)
    libQt5Gui.so.5 => /home/aditya/Qt5.9.0/5.9/gcc_64/lib/libQt5Gui.so.5 (0x00007fd26f64e000)
    libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007fd26f3db000)
    libicui18n.so.56 => /home/aditya/Qt5.9.0/5.9/gcc_64/lib/libicui18n.so.56 (0x00007fd26ef42000)
    libicuuc.so.56 => /home/aditya/Qt5.9.0/5.9/gcc_64/lib/libicuuc.so.56 (0x00007fd26eb8a000)
    libicudata.so.56 => /home/aditya/Qt5.9.0/5.9/gcc_64/lib/libicudata.so.56 (0x00007fd26d1a7000)
    libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007fd26cfa5000)
    libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fd26cc94000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fd2778c9000)
    libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007fd26ca8b000)
    libpostproc.so.55 => /usr/lib/libpostproc.so.55 (0x00007fd26c86f000)
    libass.so.5 => /usr/lib/x86_64-linux-gnu/libass.so.5 (0x00007fd26c63f000)
    libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fd26c395000)
    libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fd26c191000)
    libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fd26bf8b000)
    libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fd26bd76000)
    libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fd26bb4d000)
    libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007fd26b94a000)
    libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007fd26b747000)
    libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007fd26b540000)
    libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007fd26b33d000)
    libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007fd26b10d000)
    libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007fd26af0a000)
    libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fd26ad04000)
    libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007fd26ab02000)
    libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007fd26a8e9000)
    libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007fd26a6e4000)
    libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007fd26a4de000)
    libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fd26a2cd000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fd26a05d000)
    libfribidi.so.0 => /usr/lib/x86_64-linux-gnu/libfribidi.so.0 (0x00007fd269e46000)
    libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007fd269c03000)
    libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007fd2699a5000)
    libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007fd269780000)
    libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007fd26955a000)
    How will I do it ?
    Q1 ) Do I need to set up same environment in other machine too ?
    Q2 ) If not for set-up of environment, Do I need to copy the libs and ( if yes ) to which location in other machine ?

    Thanks ,
    Aditya Gupta


  • Moderators

    Use linuxdeployqt :-) It produces AppImage by default, but you can also make a .deb and .rpm packages from it easily.



  • @sierdzio I have no experience in linuxdeployqt tool. Can you tell me an example with "hello world" exe.
    Also would be nice if you send me few basic "how to build rpm package" links.
    Thanks in-advance.
    Regards,
    Aditya Gupta.


  • Moderators

    See the link I posted, the readme contains examples...

    Regarding RPM/ DEB creation, it is described here: https://github.com/probonopd/linuxdeployqt/issues/9


Log in to reply
 

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