Re: Error when building libmtp-0.3.0



Marco A. Cruz Quevedo <macruzq@xxxxxxxxx> wrote:
Recently I downloaded libmtp-0.3.0 and build it and I get the
following errors:

- - - - - - - - - - - -
libusb-glue.c: In function `LIBMTP_Detect_Raw_Devices':
libusb-glue.c:517: error: structure has no member named `devnum'
libusb-glue.c: In function `configure_usb_device':
libusb-glue.c:1615: error: structure has no member named `devnum'
libusb-glue.c: At top level:
- - - - - - - - - - - -

I could not figure out what is missing. As far as I can see, libmtp
depends on libusb: I have installed libusb 0.1.8-3 .

My system Fedora Core 3, Linux 2.6.23.12.

That's a pretty old version of Fedora, and so, an old version of
libusb. You'll probably have to get a newer version of it and
build that, as well (or build an older version of libmtp).

My Slamd64 system has libusb-0.1.12, and the usb_device struct
in /usr/include/usb.h contains 'u_int8_t devnum'. Your older
version of usb.h is probably missing that member.

Cheers,
Rob Komar
.