无法安装usb-modeswitch-1.1.3

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
huaxz1986
帖子: 18
注册时间: 2007-04-29 15:51

无法安装usb-modeswitch-1.1.3

#1

帖子 huaxz1986 » 2010-08-15 8:09

莫非gcc有问题?


uaxz@huaxz-laptop:~/usb-modeswitch-1.1.3$ sudo make install
gcc -o usb_modeswitch usb_modeswitch.c -Wall -l usb
usb_modeswitch.c:56:17: error: usb.h: 没有那个文件或目录
usb_modeswitch.c: In function ‘main’:
usb_modeswitch.c:344: warning: implicit declaration of function ‘usb_init’
usb_modeswitch.c:347: warning: implicit declaration of function ‘usb_set_debug’
usb_modeswitch.c:349: warning: implicit declaration of function ‘usb_find_busses’
usb_modeswitch.c:350: warning: implicit declaration of function ‘usb_find_devices’
usb_modeswitch.c:393: error: dereferencing pointer to incomplete type
usb_modeswitch.c:394: error: dereferencing pointer to incomplete type
usb_modeswitch.c:396: warning: implicit declaration of function ‘usb_open’
usb_modeswitch.c:396: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:403: error: dereferencing pointer to incomplete type
usb_modeswitch.c:405: error: dereferencing pointer to incomplete type
usb_modeswitch.c:407: error: dereferencing pointer to incomplete type
usb_modeswitch.c:555: warning: implicit declaration of function ‘usb_close’
usb_modeswitch.c: In function ‘deviceDescription’:
usb_modeswitch.c:569: error: dereferencing pointer to incomplete type
usb_modeswitch.c:570: warning: implicit declaration of function ‘usb_get_string_simple’
usb_modeswitch.c:570: error: dereferencing pointer to incomplete type
usb_modeswitch.c:579: error: dereferencing pointer to incomplete type
usb_modeswitch.c:580: error: dereferencing pointer to incomplete type
usb_modeswitch.c:589: error: dereferencing pointer to incomplete type
usb_modeswitch.c:590: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘deviceInquire’:
usb_modeswitch.c:622: warning: implicit declaration of function ‘usb_claim_interface’
usb_modeswitch.c:627: warning: implicit declaration of function ‘usb_clear_halt’
usb_modeswitch.c:629: warning: implicit declaration of function ‘usb_bulk_write’
usb_modeswitch.c:635: warning: implicit declaration of function ‘usb_bulk_read’
usb_modeswitch.c:662: warning: implicit declaration of function ‘usb_release_interface’
usb_modeswitch.c: In function ‘resetUSB’:
usb_modeswitch.c:678: warning: implicit declaration of function ‘sleep’
usb_modeswitch.c:680: warning: implicit declaration of function ‘usb_reset’
usb_modeswitch.c: In function ‘switchSendMessage’:
usb_modeswitch.c:731: warning: implicit declaration of function ‘usleep’
usb_modeswitch.c: In function ‘switchConfiguration’:
usb_modeswitch.c:798: warning: implicit declaration of function ‘usb_set_configuration’
usb_modeswitch.c: In function ‘switchAltSetting’:
usb_modeswitch.c:814: warning: implicit declaration of function ‘usb_set_altinterface’
usb_modeswitch.c: In function ‘switchHuaweiMode’:
usb_modeswitch.c:831: warning: implicit declaration of function ‘usb_control_msg’
usb_modeswitch.c:831: error: ‘USB_TYPE_STANDARD’ undeclared (first use in this function)
usb_modeswitch.c:831: error: (Each undeclared identifier is reported only once
usb_modeswitch.c:831: error: for each function it appears in.)
usb_modeswitch.c:831: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c:831: error: ‘USB_REQ_SET_FEATURE’ undeclared (first use in this function)
usb_modeswitch.c: In function ‘switchSonyMode’:
usb_modeswitch.c:917: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c: In function ‘detachDriver’:
usb_modeswitch.c:951: warning: implicit declaration of function ‘usb_get_driver_np’
usb_modeswitch.c:967: warning: implicit declaration of function ‘usb_detach_kernel_driver_np’
usb_modeswitch.c: In function ‘checkSuccess’:
usb_modeswitch.c:1051: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1057: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1057: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘search_devices’:
usb_modeswitch.c:1169: warning: implicit declaration of function ‘usb_get_busses’
usb_modeswitch.c:1169: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1169: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1171: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1171: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1173: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1173: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1174: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1195: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1202: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1202: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1204: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1214: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1223: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1225: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1228: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1229: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1255: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1255: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘find_first_bulk_output_endpoint’:
usb_modeswitch.c:1277: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1280: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1281: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1282: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1282: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1282: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
usb_modeswitch.c:1283: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1283: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1284: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘find_first_bulk_input_endpoint’:
usb_modeswitch.c:1295: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1298: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1299: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1300: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1300: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1300: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
usb_modeswitch.c:1301: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1301: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1302: error: dereferencing pointer to incomplete type
make: *** [usb_modeswitch] 错误 1
e21
帖子: 641
注册时间: 2008-01-24 9:47

Re: 无法安装usb-modeswitch-1.1.3

#2

帖子 e21 » 2010-08-15 8:30

直接装源里面的就能用。
回复