Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
help
Posts: 1
Joined: 26 Dec 2008, 18:29

Trying to compile usb_modeswitch on Fedora 10

Post by help » 26 Dec 2008, 18:32

I am getting the following errors, can someone tell me what I need to do to fix this:
[me@localhost usb_modeswitch-0.9.5]$ ./compile.sh
usb_modeswitch.c:56:17: error: usb.h: No such file or directory
usb_modeswitch.c: In function ‘main’:
usb_modeswitch.c:240: warning: implicit declaration of function ‘usb_init’
usb_modeswitch.c:243: warning: implicit declaration of function ‘usb_set_debug’
usb_modeswitch.c:245: warning: implicit declaration of function ‘usb_find_busses’
usb_modeswitch.c:246: warning: implicit declaration of function ‘usb_find_devices’
usb_modeswitch.c:285: warning: implicit declaration of function ‘usb_open’
usb_modeswitch.c:285: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:336: warning: implicit declaration of function ‘usb_set_configuration’
usb_modeswitch.c:339: warning: implicit declaration of function ‘usb_claim_interface’
usb_modeswitch.c:346: warning: implicit declaration of function ‘usb_set_altinterface’
usb_modeswitch.c:352: warning: implicit declaration of function ‘usb_clear_halt’
usb_modeswitch.c:394: warning: implicit declaration of function ‘usb_control_msg’
usb_modeswitch.c:394: error: ‘USB_TYPE_STANDARD’ undeclared (first use in this function)
usb_modeswitch.c:394: error: (Each undeclared identifier is reported only once
usb_modeswitch.c:394: error: for each function it appears in.)
usb_modeswitch.c:394: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c:394: error: ‘USB_REQ_SET_FEATURE’ undeclared (first use in this function)
usb_modeswitch.c:404: warning: implicit declaration of function ‘sleep’
usb_modeswitch.c:409: warning: implicit declaration of function ‘usb_reset’
usb_modeswitch.c:426: warning: implicit declaration of function ‘usb_release_interface’
usb_modeswitch.c:432: warning: implicit declaration of function ‘usb_close’
usb_modeswitch.c: In function ‘write_bulk’:
usb_modeswitch.c:439: warning: implicit declaration of function ‘usb_bulk_write’
usb_modeswitch.c: In function ‘read_bulk’:
usb_modeswitch.c:450: warning: implicit declaration of function ‘usb_bulk_read’
usb_modeswitch.c: In function ‘search_devices’:
usb_modeswitch.c:479: warning: implicit declaration of function ‘usb_get_busses’
usb_modeswitch.c:479: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:479: error: dereferencing pointer to incomplete type
usb_modeswitch.c:481: error: dereferencing pointer to incomplete type
usb_modeswitch.c:481: error: dereferencing pointer to incomplete type
usb_modeswitch.c:482: error: dereferencing pointer to incomplete type
usb_modeswitch.c:482: error: dereferencing pointer to incomplete type
usb_modeswitch.c:484: error: dereferencing pointer to incomplete type
usb_modeswitch.c:486: error: dereferencing pointer to incomplete type

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 28 Dec 2008, 15:48

Looks like libusb-devel is not installed on your system.

Install it with whatever package manager you are using. You should have a file "usb.h" in your "/usr/include" file tree.

Post Reply