Skip to content

Compiling error #1

Description

@pepelillo

Hi really need to have usbip tools under android. Trying to compile but I have this error.

ake all-recursive
make[1]: se entra en el directorio '/home/jose/Downloads/android_external_usbip-master'
Making all in libsrc
make[2]: se entra en el directorio '/home/jose/Downloads/android_external_usbip-master/libsrc'
CC libusbip_la-names.lo
CC libusbip_la-usbip_host_driver.lo
CC libusbip_la-usbip_device_driver.lo
CC libusbip_la-usbip_common.lo
CC libusbip_la-usbip_host_common.lo
In file included from usbip_host_common.h:30:0,
from usbip_host_common.c:34:
usbip_host_common.c: En la función ‘usbip_exported_device_destroy’:
usbip_host_common.c:166:31: error: declaración implícita de la función ‘offsetof’ [-Werror=implicit-function-declaration]
edev = list_entry(i, struct usbip_exported_device, node);
^
list.h:134:3: nota: in definition of macro ‘container_of’
(type *)( (char *)__mptr - offsetof(type,member) );})
^
usbip_host_common.c:166:10: nota: in expansion of macro ‘list_entry’
edev = list_entry(i, struct usbip_exported_device, node);
^
usbip_host_common.c:166:24: error: expected expression before ‘struct’
edev = list_entry(i, struct usbip_exported_device, node);
^
list.h:134:38: nota: in definition of macro ‘container_of’
(type *)( (char *)__mptr - offsetof(type,member) );})
^
usbip_host_common.c:166:10: nota: in expansion of macro ‘list_entry’
edev = list_entry(i, struct usbip_exported_device, node);
^
usbip_host_common.c: En la función ‘usbip_generic_get_device’:
usbip_host_common.c:266:24: error: expected expression before ‘struct’
edev = list_entry(i, struct usbip_exported_device, node);
^
list.h:134:38: nota: in definition of macro ‘container_of’
(type *)( (char *)__mptr - offsetof(type,member) );})
^
usbip_host_common.c:266:10: nota: in expansion of macro ‘list_entry’
edev = list_entry(i, struct usbip_exported_device, node);
^
cc1: todos los avisos se tratan como errores
make[2]: *** [Makefile:470: libusbip_la-usbip_host_common.lo] Error 1
make[2]: se sale del directorio '/home/jose/Downloads/android_external_usbip-master/libsrc'
make[1]: *** [Makefile:494: all-recursive] Error 1
make[1]: se sale del directorio '/home/jose/Downloads/android_external_usbip-master'
make: *** [Makefile:362: all] Error 2

Is it possible to have some complete guide to have usbip under android? even including libudev.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions