Hi All,
I am unfortunately having some issues getting USB Modeswitch to work on my system (Ubuntu 10.04).
I have installed USB Modeswitch and the data package via Synaptic, but my phone (Vodafone 845) still appears as a CD drive under places. I have tried entering the suggestions in this thread into the terminal, also with no luck.
Happy to confess to being a total newbie when it comes to this sort of thing, any assistance appreciated
Thanks,
NZScion
Hi Josh,
Many thanks for the quick reply. I did a complete removal of the files installed via Synaptic, and tried my best to follow the instructions on the main page. Unfortunately the install of the main file had a mass of warning messages, which I've posted below. The data package installed fine. Can you please let me know what I'm doing wrong?
Thanks again,
NZScion
Many thanks for the quick reply. I did a complete removal of the files installed via Synaptic, and tried my best to follow the instructions on the main page. Unfortunately the install of the main file had a mass of warning messages, which I've posted below. The data package installed fine. Can you please let me know what I'm doing wrong?
Thanks again,
NZScion
Code: Select all
chris@chris-laptop:~$ cd USB-Modeswitch
chris@chris-laptop:~/USB-Modeswitch$ cd usb-modeswitch-1.1.5
chris@chris-laptop:~/USB-Modeswitch/usb-modeswitch-1.1.5$ sudo make install
gcc -o usb_modeswitch usb_modeswitch.c -Wall -l usb
usb_modeswitch.c:56:17: error: usb.h: No such file or directory
usb_modeswitch.c: In function ‘main’:
usb_modeswitch.c:346: warning: implicit declaration of function ‘usb_init’
usb_modeswitch.c:349: warning: implicit declaration of function ‘usb_set_debug’
usb_modeswitch.c:351: warning: implicit declaration of function ‘usb_find_busses’
usb_modeswitch.c:352: warning: implicit declaration of function ‘usb_find_devices’
usb_modeswitch.c:395: error: dereferencing pointer to incomplete type
usb_modeswitch.c:396: error: dereferencing pointer to incomplete type
usb_modeswitch.c:398: warning: implicit declaration of function ‘usb_open’
usb_modeswitch.c:398: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:408: error: dereferencing pointer to incomplete type
usb_modeswitch.c:539: warning: implicit declaration of function ‘usb_close’
usb_modeswitch.c: In function ‘deviceDescription’:
usb_modeswitch.c:597: error: dereferencing pointer to incomplete type
usb_modeswitch.c:598: warning: implicit declaration of function ‘usb_get_string_simple’
usb_modeswitch.c:598: error: dereferencing pointer to incomplete type
usb_modeswitch.c:607: error: dereferencing pointer to incomplete type
usb_modeswitch.c:608: error: dereferencing pointer to incomplete type
usb_modeswitch.c:617: error: dereferencing pointer to incomplete type
usb_modeswitch.c:618: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘deviceInquire’:
usb_modeswitch.c:650: warning: implicit declaration of function ‘usb_claim_interface’
usb_modeswitch.c:655: warning: implicit declaration of function ‘usb_clear_halt’
usb_modeswitch.c:657: warning: implicit declaration of function ‘usb_bulk_write’
usb_modeswitch.c:663: warning: implicit declaration of function ‘usb_bulk_read’
usb_modeswitch.c:690: warning: implicit declaration of function ‘usb_release_interface’
usb_modeswitch.c: In function ‘resetUSB’:
usb_modeswitch.c:706: warning: implicit declaration of function ‘sleep’
usb_modeswitch.c:708: warning: implicit declaration of function ‘usb_reset’
usb_modeswitch.c: In function ‘switchSendMessage’:
usb_modeswitch.c:760: warning: implicit declaration of function ‘usleep’
usb_modeswitch.c: In function ‘switchConfiguration’:
usb_modeswitch.c:825: warning: implicit declaration of function ‘usb_set_configuration’
usb_modeswitch.c: In function ‘switchAltSetting’:
usb_modeswitch.c:841: warning: implicit declaration of function ‘usb_set_altinterface’
usb_modeswitch.c: In function ‘switchHuaweiMode’:
usb_modeswitch.c:858: warning: implicit declaration of function ‘usb_control_msg’
usb_modeswitch.c:858: error: ‘USB_TYPE_STANDARD’ undeclared (first use in this function)
usb_modeswitch.c:858: error: (Each undeclared identifier is reported only once
usb_modeswitch.c:858: error: for each function it appears in.)
usb_modeswitch.c:858: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c:858: error: ‘USB_REQ_SET_FEATURE’ undeclared (first use in this function)
usb_modeswitch.c: In function ‘switchKobilMode’:
usb_modeswitch.c:904: error: ‘USB_TYPE_VENDOR’ undeclared (first use in this function)
usb_modeswitch.c:904: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c:904: error: ‘USB_ENDPOINT_IN’ undeclared (first use in this function)
usb_modeswitch.c: In function ‘switchSonyMode’:
usb_modeswitch.c:958: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c: In function ‘detachDriver’:
usb_modeswitch.c:992: warning: implicit declaration of function ‘usb_get_driver_np’
usb_modeswitch.c:1008: warning: implicit declaration of function ‘usb_detach_kernel_driver_np’
usb_modeswitch.c: In function ‘checkSuccess’:
usb_modeswitch.c:1100: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1106: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1106: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘search_devices’:
usb_modeswitch.c:1225: warning: implicit declaration of function ‘usb_get_busses’
usb_modeswitch.c:1225: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1225: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1227: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1227: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1229: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1229: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1230: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1251: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1258: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1258: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1260: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1270: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1279: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1281: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1284: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1285: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1312: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1312: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘find_first_bulk_output_endpoint’:
usb_modeswitch.c:1334: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1337: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1338: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1339: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1339: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1339: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
usb_modeswitch.c:1340: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1340: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1341: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘find_first_bulk_input_endpoint’:
usb_modeswitch.c:1352: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1355: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1356: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1357: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1357: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1357: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
usb_modeswitch.c:1358: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1358: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1359: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘get_current_configuration’:
usb_modeswitch.c:1371: error: ‘USB_TYPE_STANDARD’ undeclared (first use in this function)
usb_modeswitch.c:1371: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c:1371: error: ‘USB_REQ_GET_CONFIGURATION’ undeclared (first use in this function)
usb_modeswitch.c: In function ‘get_interface0_class’:
usb_modeswitch.c:1385: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1386: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1387: error: dereferencing pointer to incomplete type
make: *** [usb_modeswitch] Fehler 1