Error when building libmtp-0.3.0 - Hardware

This is a discussion on Error when building libmtp-0.3.0 - Hardware ; 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 ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Error when building libmtp-0.3.0

  1. Error when building libmtp-0.3.0

    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.

    The purpose is to access a Toshiba gigabeat U202. It is detected in
    usbview but is shown in red.

    Any help will be appreciated.

    Regards,

    Marco.

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

  2. Re: Error when building libmtp-0.3.0

    Marco A. Cruz Quevedo 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

  3. Re: Error when building libmtp-0.3.0

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

+ Reply to Thread