I have /usr/local/Trolltech/Qt-4.8.6/lib/libQtNetwork.so.4 but I get a symbol lookup error.

Asked 2 years ago, Updated 2 years ago, 67 views

klusters:symbol lookup error: /usr/local/Trolltech/Qt-4.8.6/lib/libQtNetwork.so.4: undefined symbol:_ZN16QIODevicePrivate4peakEPcx

lrwxrwxrwx1 root root 21 May 12 16:03/usr/local/Trolltech/Qt-4.8.6/lib/libQtNetwork.so.4->libQtNetwork.so.4.8.6

ldd/usr/local/Trolltech/Qt-4.8.6/lib/libQtNetwork.so.4
    linux-vdso.so.1=> (0x00007ffc429bd000)
    libQtCore.so.4=>/usr/local/Trolltech/Qt-4.8.6/lib/libQtCore.so.4 (0x00002b0200180000)
    libpthread.so.0=>/lib64/libpthread.so.0 (0x00002b0200690000)
    libz.so.1=>/lib64/libz.so.1 (0x00002b02008ad000)
    libstdc++.so.6 =>/usr/lib64/libstdc++.so.6 (0x00002b0200ac3000)
    libm.so.6=>/lib64/libm.so.6 (0x00002b0200dca000)
    libgcc_s.so.1 =>/lib64/libgcc_s.so.1 (0x00002b020104e000)
    libc.so.6=>/lib64/libc.so.6 (0x00002b0201264000)
    libdl.so.2=>/lib64/libdl.so.2 (0x00002b02015f9000)
    libgthread-2.0.so.0=>/lib64/libgthread-2.0.so.0 (0x00002b02017fd000)
    librt.so.1=>/lib64/librt.so.1 (0x00002b0201a01000)
    libglib-2.0.so.0=>/lib64/libglib-2.0.so.0 (0x00002b0201c0a000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003a2ee00000)

Does anyone know the cause?

qt

2022-09-30 19:37

1 Answers

As you checked in the previous comment, the libQtCore.so.4 referenced by klusters is /usr/lib64/libQtCore.so.4, which is not /usr/local/Trolltech/Qt-4.8.6/lib/libQtCore.so.4.
(/usr/lib64/libQtCore.so.4 is not expected to contain _ZN16QIODevicePrivate4peakEPcx)

We expect the library search path at build (link) and the library search path at run time to be different.As a countermeasure,

I think there is a way to do this.


2022-09-30 19:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.