Failed build in new version of gnuradio 3.6.3

Hi,

I tested out the new release 3.6.3 on an old IBM thinkpad laptop (and I
mean old–about ten years old) running Ubuntu 10.04. I did this before
testing it out on the laptop I have the old version running fine (a Dell
Latitude running Ubuntu 12.04).

Anyway, I used the build script on the old IBM, and everything compiled
until it got to here:

[ 38%] Building C object src/CMakeFiles/rtl_adsb.dir/rtl_adsb.c.o
Linking C executable rtl_adsb
librtlsdr.so.0.0.0: undefined reference to `libusb_error_name’

Does anyone have any idea what could be giving the error. I used the
“verbose” option, and here is the last few lines of the build:

------------------ cut here -----------------------------------------

GRC freedesktop icons install …Begin freedesktop install…
Install icon: 32x32
Install icon: 48x48
Install icon: 64x64
Install icon: 128x128
Install icon: 256x256
Install mime type
Install menu items
Done!

Done
Done function gnuradio_build at: Sat Jan 12 19:09:04 EST 2013
Starting function rtl_build at: Sat Jan 12 19:09:04 EST 2013
Building rtl-sdr…-- The C compiler identification is GNU
– Check for working C compiler: /usr/bin/gcc
– Check for working C compiler: /usr/bin/gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Build type not specified: defaulting to release.
– checking for module ‘libusb-1.0’
– found libusb-1.0, version 1.0.6
– Found libusb-1.0: /usr/include/libusb-1.0, /usr/lib/libusb-1.0.so
– Looking for include files CMAKE_HAVE_PTHREAD_H
– Looking for include files CMAKE_HAVE_PTHREAD_H - found
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
– Udev rules not being installed, install them with
-DINSTALL_UDEV_RULES=ON
– Configuring done
– Generating done
– Build files have been written to: /home/peter/rtl-sdr
Scanning dependencies of target rtlsdr_shared
[ 5%] Building C object src/CMakeFiles/rtlsdr_shared.dir/librtlsdr.c.o
/home/peter/rtl-sdr/src/librtlsdr.c: In function rtlsdr_open:
/home/peter/rtl-sdr/src/librtlsdr.c:1333: warning: implicit declaration
of
function libusb_error_name
/home/peter/rtl-sdr/src/librtlsdr.c:1333: warning: format %s expects
type
char *, but argument 3 has type int
/home/peter/rtl-sdr/src/librtlsdr.c:1345: warning: format %s expects
type
char *, but argument 3 has type int
[ 11%] Building C object src/CMakeFiles/rtlsdr_shared.dir/tuner_e4k.c.o
[ 16%] Building C object
src/CMakeFiles/rtlsdr_shared.dir/tuner_fc0012.c.o
[ 22%] Building C object
src/CMakeFiles/rtlsdr_shared.dir/tuner_fc0013.c.o
[ 27%] Building C object
src/CMakeFiles/rtlsdr_shared.dir/tuner_fc2580.c.o
[ 33%] Building C object
src/CMakeFiles/rtlsdr_shared.dir/tuner_r820t.c.o
Linking C shared library librtlsdr.so
[ 33%] Built target rtlsdr_shared
Scanning dependencies of target rtl_adsb
[ 38%] Building C object src/CMakeFiles/rtl_adsb.dir/rtl_adsb.c.o
Linking C executable rtl_adsb
librtlsdr.so.0.0.0: undefined reference to `libusb_error_name’
collect2: ld returned 1 exit status
make[2]: *** [src/rtl_adsb] Error 1
make[1]: *** [src/CMakeFiles/rtl_adsb.dir/all] Error 2
make: *** [all] Error 2
rtl-sdr build apparently failed


Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
It’s likely that the version of libusb on your old 10.04 machine simply
doesn’t have that particular API element
in it.

Yup libusb_error_name is only in very recent libusb 1.0

-josh

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs