当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 无法安装usb-modeswitch-1.1.3
帖子发表于 : 2010-08-15 8:09 

注册: 2007-04-29 15:51
帖子: 18
送出感谢: 0 次
接收感谢: 0 次
莫非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


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 无法安装usb-modeswitch-1.1.3
帖子发表于 : 2010-08-15 8:30 

注册: 2008-01-24 9:47
帖子: 641
送出感谢: 0 次
接收感谢: 4
直接装源里面的就能用。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译