Problem running Qt Embedded Application



  • Hi all,

    I am new to QT embedded, I try run my example app but I encounter with following problem, how to solve this problems?

    bq. [root@bit /myapp]# ./hello1 -qws
    ./hello1: /lib/libgcc_s.so.1: version GCC_4.2.0' not found (required by /usr/lib/libQtGui.so.4) ./hello1: /lib/libgcc_s.so.1: versionGCC_4.2.0' not found (required by /usr/lib/libQtCore.so.4)
    ./hello1: /lib/libc.so.6: version `GLIBC_2.4' not found (required by /usr/lib/libQtCore.so.4)
    [root@bit /myapp]#

    lib required???
    [quote]
    @[root@bit /myapp]# LD_DEBUG=all ./hello1
    Application Started at 11/23/2011 15:47:45

    400:
    400: file=libQtGui.so.4; needed by ./hello1
    400: find library=libQtGui.so.4; searching
    400: search path=/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/v5l/fast-mult/half:/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/v5l/fast-mult:/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/v5l/half:/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/v5l:/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/fast-mult/half:/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/fast-mult:/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/half:/home/foobar/qt-everywhere-opensource-src-4.7.4/lib (RPATH from file ./hello1)
    400: trying file=/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/v5l/fast-mult/half/libQtGui.so.4

    400: trying file=/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/v5l/fast-mult/libQtGui.so.4
    400: trying file=/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/v5l/half/libQtGui.so.4

    400: trying file=/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/v5l/libQtGui.so.4
    400: trying file=/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/fast-mult/half/libQtGui.so.4
    400: trying file=/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/fast-mult/libQtGui.so.4
    400: trying file=/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/half/libQtGui.so.4
    400: trying file=/home/foobar/qt-everywhere-opensource-src-4.7.4/lib/libQtGui.so.4

    .....

    400: file=librt.so.1; needed by /usr/lib/libQtGui.so.4
    400: find library=librt.so.1; searching
    400: search path= (RPATH from file ./hello1)
    400: search cache=/etc/ld.so.cache
    400: search path=/lib:/usr/lib (system search path)
    400: trying file=/lib/librt.so.1
    400:
    400: file=librt.so.1; generating link map
    400: dynamic: 0x4198e07c base: 0x41980000 size: 0x00018fb8
    400: entry: 0x41981abc phdr: 0x41980034 phnum: 6
    400:
    400:
    400: file=libdl.so.2; needed by /usr/lib/libQtCore.so.4
    400: find library=libdl.so.2; searching
    400: search path= (RPATH from file ./hello1)
    400: search cache=/etc/ld.so.cache
    400: search path=/lib:/usr/lib (system search path)
    400: trying file=/lib/libdl.so.2
    400:
    400: file=libdl.so.2; generating link map
    400: dynamic: 0x419a2b9c base: 0x41999000 size: 0x00009db4
    400: entry: 0x4199a9c4 phdr: 0x41999034 phnum: 6
    400:

    400: checking for version GLIBC_2.0' in file /lib/libc.so.6 required by file ./hello1 400: checking for versionGCC_3.0' in file /lib/libgcc_s.so.1 required by file ./hello1
    400: checking for version CXXABI_1.3' in file /lib/libstdc++.so.6 required by file ./hello1 400: checking for versionGLIBCXX_3.4' in file /lib/libstdc++.so.6 required by file ./hello1
    400: checking for version GLIBC_2.0' in file /lib/libpthread.so.0 required by file /usr/lib/libQtGui.so.4 400: checking for versionGLIBC_2.0' in file /lib/libm.so.6 required by file /usr/lib/libQtGui.so.4
    400: checking for version GLIBC_2.1' in file /lib/libm.so.6 required by file /usr/lib/libQtGui.so.4 400: checking for versionCXXABI_1.3' in file /lib/libstdc++.so.6 required by file /usr/lib/libQtGui.so.4
    400: checking for version GLIBCXX_3.4' in file /lib/libstdc++.so.6 required by file /usr/lib/libQtGui.so.4 400: checking for versionGLIBC_2.1' in file /lib/libc.so.6 required by file /usr/lib/libQtGui.so.4
    400: checking for version GLIBC_2.1.3' in file /lib/libc.so.6 required by file /usr/lib/libQtGui.so.4 400: checking for versionGLIBC_2.2' in file /lib/libc.so.6 required by file /usr/lib/libQtGui.so.4
    400: checking for version GLIBC_2.0' in file /lib/libc.so.6 required by file /usr/lib/libQtGui.so.4 400: checking for versionGCC_4.2.0' in file /lib/libgcc_s.so.1 required by file /usr/lib/libQtGui.so.4
    Segmentation fault
    [root@bit /myapp]# @
    [/quote]



  • Hi,
    what board are you using?



  • The cpu is LPC3250 from NXP & I using cross compiler arm Qt4.7.4 by following the instructions on this link:



  • Obviously the libc/glibc version differs from the target to the host.

    I had the same problem, when cross-compiling Qt on Ubuntu 10.04 host and executing the application on a Debian Lenny target.
    To solve the problem, I set up a Debian VM and cross-compiled Qt on a debian host.

    I hope this could solve your problem as well.

    Regards,
    Rooney


Log in to reply
 

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