Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Is it possible to statically linking GLIBC_2.xxx
Forum Updated to NodeBB v4.3 + New Features

Is it possible to statically linking GLIBC_2.xxx

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    thealse
    wrote on last edited by
    #1

    Hi,

    I have successfully built QT5.2.0 using the below mentioned cross-compiler delivered by freescale
    @/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-@

    Everything was going fine until I tried to run my first QT application on the target and I get the following:
    @./quickTest2: /lib/libc.so.6: version GLIBC_2.10' not found (required by /usr/local/qt5/lib/libQt5Network.so.5) ./quickTest2: /lib/libc.so.6: version GLIBC_2.11' not found (required by /usr/local/qt5/lib/libQt5Gui.so.5)
    ./quickTest2: /lib/libc.so.6: version GLIBC_2.7' not found (required by /usr/local/qt5/lib/libQt5Core.so.5) ./quickTest2: /lib/libc.so.6: version GLIBC_2.9' not found (required by /usr/local/qt5/lib/libQt5Core.so.5)@

    I investigated some more and it looks like the linux distribution which I am using on my target is build with:
    @/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-@

    For various reasons it is not easy for me to cross-compile everything from scratch for the target using the more recent cross-compiler.
    What are my options:

    Can GLIBC be statically linked? (I just copy the headers into target and hope for the best)

    Should I use an older QT which uses GLIBC 2.5? What GLIBC is required for QT 5.0?

    Are there any other options?

    UPDATE:
    I managed to find this official link which states that QT 5 is tested against gcc 4.5 and newer. But it also mentioned that any c++98 compiler should work.
    source: http://qt-project.org/doc/qt-5.0/qtdoc/platform-notes.html

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Aline
      wrote on last edited by
      #2

      Hi, did u manage to resolve this? I'm facing a similar problem...

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved