Static build librarys problem



  • Hi people. I want to move my program to other Linux distro (Ubuntu, Debian) and when i do an static build, all those libraries obstruct the deployment.
    Is there any solution ?
    What i do is copy all the librarys to the system i want run the program and install libgl1-mesa-dev, but sometimes works and other doesn't,...
    I'm using QT 5.5.0.

    **Config : **
    ./configure -static

    **Pro file : **

    TEMPLATE = app
    TARGET = PacketGenerator_UI
    INCLUDEPATH += .

    QT += core gui
    QT += network
    QT += svg

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    HEADERS += ethernet.h g_arp.h g_icmp.h g_tcp.h g_udp.h mainwindow.h
    FORMS += ethernet.ui g_arp.ui g_icmp.ui g_tcp.ui g_udp.ui mainwindow.ui
    SOURCES += ethernet.cpp
    g_arp.cpp
    g_icmp.cpp
    g_tcp.cpp
    g_udp.cpp
    main.cpp
    mainwindow.cpp
    packetgenerator_ui_plugin_import.cpp

    ldd output:

        linux-gate.so.1 =>  (0xb775e000)
    libX11-xcb.so.1 => /usr/lib/i386-linux-gnu/libX11-xcb.so.1 (0xb7743000)
    libXi.so.6 => /usr/lib/i386-linux-gnu/libXi.so.6 (0xb7733000)
    libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xb7710000)
    libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xb76d5000)
    libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xb7635000)
    libXrender.so.1 => /usr/lib/i386-linux-gnu/libXrender.so.1 (0xb762a000)
    libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xb74f6000)
    libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xb74cd000)
    libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb74b3000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb74ae000)
    librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb74a5000)
    libGL.so.1 => /usr/lib/i386-linux-gnu/mesa/libGL.so.1 (0xb7445000)
    libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb7428000)
    libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb733f000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb72f9000)
    libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb72dc000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb712d000)
    /lib/ld-linux.so.2 (0xb775f000)
    libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xb7119000)
    libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xb7115000)
    libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xb710e000)
    libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xb70e5000)
    libglapi.so.0 => /usr/lib/i386-linux-gnu/libglapi.so.0 (0xb70cd000)
    libXdamage.so.1 => /usr/lib/i386-linux-gnu/libXdamage.so.1 (0xb70c8000)
    libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0xb70c2000)
    libxcb-glx.so.0 => /usr/lib/i386-linux-gnu/libxcb-glx.so.0 (0xb70aa000)
    libxcb-dri2.so.0 => /usr/lib/i386-linux-gnu/libxcb-dri2.so.0 (0xb70a4000)
    libxcb-dri3.so.0 => /usr/lib/i386-linux-gnu/libxcb-dri3.so.0 (0xb70a0000)
    libxcb-present.so.0 => /usr/lib/i386-linux-gnu/libxcb-present.so.0 (0xb709b000)
    libxcb-sync.so.1 => /usr/lib/i386-linux-gnu/libxcb-sync.so.1 (0xb7094000)
    libxshmfence.so.1 => /usr/lib/i386-linux-gnu/libxshmfence.so.1 (0xb7091000)
    libXxf86vm.so.1 => /usr/lib/i386-linux-gnu/libXxf86vm.so.1 (0xb708b000)
    libdrm.so.2 => /usr/lib/i386-linux-gnu/libdrm.so.2 (0xb707d000)

Log in to reply
 

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