Qt World Summit: Submit your Presentation

libc.so.6 erros, how to bundle a qt5 app to centos 6.5?

  • Hello,

    I'm working on centos 7 qt5 and I need to make my app run in centos 6.5

    I'm getting libc erros because libc in centos 6.5 is older:
    /lib64/libc.so.6: version `GLIBC_2.14' not found

    I have compiled qt from souce static and I'm using those link flags:
    CONFIG += c++11 -static
    LIBS+= -L/usr/lib/gcc/x86_64-redhat-linux/4.8.2/
    QMAKE_LFLAGS_RELEASE+= -static-libgcc -static-libstdc++

    but still and I run ldd on the app I get that:
    libc.so.6 => /lib64/libc.so.6

    why is qt still link libc dynamicly?

    what are the other options to bundle a qt5 to centos 6.5 without install qt5 on centos 6.5?

    thanks in advance!


Log in to reply