Re: Error when building libmtp-0.3.0



On Jul 26, 1:17 am, Robert Komar <r...@xxxxxxxxxxxxxxx> wrote:
Marco A. Cruz Quevedo <macr...@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

I appeciate very much your suggestion: I updated my libusb-0.1.8 to
libusb-0.1.12 and then rebuild libmtp without anu error message. Now I
am going to test it.

Thanks again.

Regards,

Marco.

------------------------------------------
Freedom is not a permission for chaos.
.



Relevant Pages

  • Re: Pilot syncing....
    ... the problem turned out that libusb was looking for a group called "dialout" that Fedora never created in the first place. ... of the visor module and in my experience work better (in fact you should ...
    (Fedora)
  • Re: Syncing Palm device via USB Cable
    ... was because of Fedora, which by default, does not give access to the USB ports to users. ... There is no group to add to fix this problem and it took changing the global security permissions to allow everyone full access to the ports to get it to work. ... This really should be addressed on future versions of Fedora so I don't have to re-fix this problem every time the system updates the security. ... I do use libusb and it *FINALLY* gave me an error telling me why it didn't make it accessible to users. ...
    (Fedora)