So finally, I removed the libusb in /usr/local/lib and now libsigrok is
refering to /lib/x86_64-linux-gnu/libusb-1.0.so.0 and it all works: I built
the sigrok-cli and can start the AppImage.

Paul, thank you for your help!

$ sudo mv /usr/lib/libusb-1.0.so.0-temp /usr/lib/libusb-1.0.so.0
$ ldd /usr/local/lib/libsigrok.so
linux-vdso.so.1 =>  (0x00007ffe453e1000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f10f103e000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0
(0x00007f10f0d2d000)
libserialport.so.0 => /usr/local/lib/libserialport.so.0 (0x00007f10f0b1c000)
libftdi1.so.2 => /usr/lib/x86_64-linux-gnu/libftdi1.so.2
(0x00007f10f090e000)
libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0
(0x00007f10f06f6000)
libzip.so.4 => /usr/lib/x86_64-linux-gnu/libzip.so.4 (0x00007f10f04e3000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f10f02c6000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f10efefc000)
/lib64/ld-linux-x86-64.so.2 (0x00007f10f165c000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f10efc8c000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f10f1834000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f10efa72000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f10ef86a000)



On Sun, Jul 21, 2019 at 12:23 PM Kiril Dimitrov <reg...@gmail.com> wrote:

> Ok, I followed your leads. There are several libusb-1.0.so.0 files on my
> system. The sigrok is refering to the one located in /usr/local/lib and it
> is missing the symbols after checking with *nm*.
> There is another one in* /lib/x86_64-linux-gnu/libusb-1.0.so.0 *and it
> contains the required symbols. Do you have a suggestion how to fix it?
>
>
>
>
>
>
> *$ locate
> libsigrok.so/home/who/temp/libsigrok/.libs/libsigrok.so/home/who/temp/libsigrok/.libs/libsigrok.so.4/home/who/temp/libsigrok/.libs/libsigrok.so.4.0.0/usr/local/lib/libsigrok.so/usr/local/lib/libsigrok.so.4*
> */usr/local/lib/libsigrok.so.4.0.0*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *$ ldd /usr/local/lib/libsigrok.so linux-vdso.so.1 =>
>  (0x00007fffd00c9000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6
> (0x00007f9e60cb4000) libglib-2.0.so.0 =>
> /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f9e609a3000)
> libserialport.so.0 => /usr/local/lib/libserialport.so.0
> (0x00007f9e60792000) libftdi1.so.2 =>
> /usr/lib/x86_64-linux-gnu/libftdi1.so.2 (0x00007f9e60584000)
> libusb-1.0.so.0 => /usr/local/lib/libusb-1.0.so.0 (0x00007f9e60376000)
> libzip.so.4 => /usr/lib/x86_64-linux-gnu/libzip.so.4 (0x00007f9e60163000)
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
> (0x00007f9e5ff46000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
> (0x00007f9e5fb7c000) /lib64/ld-linux-x86-64.so.2 (0x00007f9e612d2000)
> libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f9e5f90c000)
> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9e5f704000)
> libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f9e5f4ea000)*
>
>
>
>
>
>
>
>
>
> *$ locate libusb-1.0.so
> <http://libusb-1.0.so>/lib/x86_64-linux-gnu/libusb-1.0.so.0/lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0/opt/calibre/lib/libusb-1.0.so.0/usr/lib/libusb-1.0.so.0/usr/lib/libusb-1.0.so.0.0.0/usr/lib/x86_64-linux-gnu/libusb-1.0.so
> <http://libusb-1.0.so>/usr/local/lib/libusb-1.0.so.0/usr/local/lib/libusb-1.0.so.0_toberemoved*
>
> *$ nm -g /usr/local/lib/libusb-1.0.so.0 | grep version*
>
>
> *$ nm -gD /lib/x86_64-linux-gnu/libusb-1.0.so.0 | grep
> version0000000000006190 T libusb_get_version*
>
> On Sun, Jul 21, 2019 at 11:15 AM Paul Fertser <fercer...@gmail.com> wrote:
>
>> On Sun, Jul 21, 2019 at 11:12:54AM +0300, Kiril Dimitrov wrote:
>> > $ldd ./sigrok-cli-0.7.1-x86_64.AppImage
>> > not a dynamic executable
>>
>> I realised it just after sending. I thought it's kinda obvious I meant
>> using ldd on the binry executable or the shared library that gives you
>> the error, not on the AppImage itself.
>>
>> > echo "  CCLD    " sigrok-cli;gcc -std=c99 -Wall -Wextra
>> -I/usr/local/include
>> > -I/usr/include/libftdi1 -I/usr/include/libusb-1.0
>> > -I/usr/lib/x86_64-linux-gnu/libzip/include -I/usr/include/python3.5m
>> > -I/usr/include/x86_64-linux-gnu/python3.5m -I/usr/include/glib-2.0
>> > -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2   -o sigrok-cli
>> main.o
>> > show.o device.o session.o input.o decode.o parsers.o anykey.o options.o
>> > -L/usr/local/lib -lsigrok -lsigrokdecode -lglib-2.0
>>
>> So are you sure you do not have libusb in /usr/local/lib?
>>
>> And check what does ldd /usr/local/lib/libsigrok*so say.
>>
>> --
>> Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
>> mailto:fercer...@gmail.com
>>
>
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to