undefined reference to libusb_get_version

Having issues with the site, hardware, source code, or any other issues?
Post Reply
dk5ras
Posts: 70
Joined: Fri Mar 01, 2013 3:23 am

undefined reference to libusb_get_version

Post by dk5ras »

Hi,

When using latest bladeRF code I get

/usr/local/lib/libbladeRF.so.0: undefined reference to `libusb_get_version'

when building gqrx; a similar message appears when I want to use gnuradio/grc with the bladeRF.

Libusbx is built from source and latest version, also are gnuradio, gr-osmosdr, gr-iqbal and gqrx.

The OS is a Kubuntu 12.04 LTS 32bit, latest patch level.

Any ideas out there what I could do? Staying with older versions is not an option for a longer period of time :)

Trying to delete all older bladeRF remains from the system changes nothing. Of course I uninstalled everything, I even deleted the whole folders of bladeRF. gr-osmosdr, gr-iqbal and gqrx and pulled all sources and built everything from scratch again, still no change.

Ralph.
dk5ras
Posts: 70
Joined: Fri Mar 01, 2013 3:23 am

Re: undefined reference to libusb_get_version

Post by dk5ras »

Hi,

yep, libusb 1.0.0 and 0.1.4 are present and seem to be uninstallable. I have no idea of library search paths and such under Linux, and I am not a coding guy at all, but of course I am able to follow instructions - here is what ldd says on my machine:

ldd /usr/local/lib/libbladeRF.so
linux-gate.so.1 => (0xb7703000)
libusb-1.0.so.0 => /lib/i386-linux-gnu/libusb-1.0.so.0 (0xb76bb000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7511000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb7507000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb74ec000)
/lib/ld-linux.so.2 (0xb7704000)

I donwloaded libusbx into a folder within my user folder with git clone, followed the normal make instructions, did a sudo make install and sudo ldconfig, then it was possible to build bladeRF, so I assumed things went right.

Ralph.
dk5ras
Posts: 70
Joined: Fri Mar 01, 2013 3:23 am

Re: undefined reference to libusb_get_version

Post by dk5ras »

OK, just at a first glance...

When doing a sudo make install for libusbx, it tells that it installs into /usr/local/lib, while the output of your command is

open("/lib/i386-linux-gnu/libusb-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3

So maybe really just some stupid search path thing?

Thank you for your patience and assistance - no need to hurry, we all have a life without SDR...at least I think so :)

Ralph.
dk5ras
Posts: 70
Joined: Fri Mar 01, 2013 3:23 am

Re: undefined reference to libusb_get_version

Post by dk5ras »

The reason for 12.04 LTS is that with newer systems I do not manage to get OpenBTS and USRP1 running :) The other stuff I will start checking out later this day...

Ralph.
dk5ras
Posts: 70
Joined: Fri Mar 01, 2013 3:23 am

Re: undefined reference to libusb_get_version

Post by dk5ras »

With Kubuntu 13.10 everything is just fine, without any libusbx trouble :)

Guess I will keep to systems, one 12.04 for OpenBTS with USRP1, one 13.10 for the rest.

Ralph.
Post Reply