当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 安装usb-modeswitch求助
帖子发表于 : 2010-05-22 18:48 

注册: 2009-05-11 16:40
帖子: 4
送出感谢: 0 次
接收感谢: 0 次
我想在ubuntu10.04下使用华为无线上网卡,所以学习了使用usb-modeswitch.下了.usb-modeswitch-1.1.2.tar.bz2. usb-modeswitch-data. usb_modeswitch.setup. libusb这几个软件包。
安装libusb时出现下面提示
代码:
root@ASUS:/media/Documents/教程/Linux/usb-modeswitch/libusb-1.0.8# make install
make: *** 没有规则可以创建目标“install”。 停止


安装usb-modeswitch时出现下面提示:
代码:
root@ASUS:/media/Documents/教程/Linux/usb-modeswitch/usb-modeswitch-1.1.2# make install
gcc -o usb_modeswitch usb_modeswitch.c -Wall -l usb
usb_modeswitch.c:66:17: error: usb.h: 没有那个文件或目录
usb_modeswitch.c: In function ‘main’:
usb_modeswitch.c:359: warning: implicit declaration of function ‘usb_init’
usb_modeswitch.c:362: warning: implicit declaration of function ‘usb_set_debug’
usb_modeswitch.c:364: warning: implicit declaration of function ‘usb_find_busses’
usb_modeswitch.c:365: warning: implicit declaration of function ‘usb_find_devices’
usb_modeswitch.c:408: error: dereferencing pointer to incomplete type
usb_modeswitch.c:409: error: dereferencing pointer to incomplete type
usb_modeswitch.c:411: warning: implicit declaration of function ‘usb_open’
usb_modeswitch.c:411: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:418: error: dereferencing pointer to incomplete type
usb_modeswitch.c:420: error: dereferencing pointer to incomplete type
usb_modeswitch.c:422: error: dereferencing pointer to incomplete type
usb_modeswitch.c:570: warning: implicit declaration of function ‘usb_close’
usb_modeswitch.c: In function ‘deviceDescription’:
usb_modeswitch.c:584: error: dereferencing pointer to incomplete type
usb_modeswitch.c:585: warning: implicit declaration of function ‘usb_get_string_simple’
usb_modeswitch.c:585: error: dereferencing pointer to incomplete type
usb_modeswitch.c:594: error: dereferencing pointer to incomplete type
usb_modeswitch.c:595: error: dereferencing pointer to incomplete type
usb_modeswitch.c:604: error: dereferencing pointer to incomplete type
usb_modeswitch.c:605: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘deviceInquire’:
usb_modeswitch.c:637: warning: implicit declaration of function ‘usb_claim_interface’
usb_modeswitch.c:642: warning: implicit declaration of function ‘usb_clear_halt’
usb_modeswitch.c:644: warning: implicit declaration of function ‘usb_bulk_write’
usb_modeswitch.c:650: warning: implicit declaration of function ‘usb_bulk_read’
usb_modeswitch.c:677: warning: implicit declaration of function ‘usb_release_interface’
usb_modeswitch.c: In function ‘resetUSB’:
usb_modeswitch.c:693: warning: implicit declaration of function ‘sleep’
usb_modeswitch.c:695: warning: implicit declaration of function ‘usb_reset’
usb_modeswitch.c: In function ‘switchConfiguration’:
usb_modeswitch.c:761: warning: implicit declaration of function ‘usb_set_configuration’
usb_modeswitch.c: In function ‘switchAltSetting’:
usb_modeswitch.c:777: warning: implicit declaration of function ‘usb_set_altinterface’
usb_modeswitch.c: In function ‘switchHuaweiMode’:
usb_modeswitch.c:794: warning: implicit declaration of function ‘usb_control_msg’
usb_modeswitch.c:794: error: ‘USB_TYPE_STANDARD’ undeclared (first use in this function)
usb_modeswitch.c:794: error: (Each undeclared identifier is reported only once
usb_modeswitch.c:794: error: for each function it appears in.)
usb_modeswitch.c:794: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c:794: error: ‘USB_REQ_SET_FEATURE’ undeclared (first use in this function)
usb_modeswitch.c: In function ‘switchSonyMode’:
usb_modeswitch.c:880: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c: In function ‘detachDriver’:
usb_modeswitch.c:914: warning: implicit declaration of function ‘usb_get_driver_np’
usb_modeswitch.c:930: warning: implicit declaration of function ‘usb_detach_kernel_driver_np’
usb_modeswitch.c: In function ‘checkSuccess’:
usb_modeswitch.c:1020: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1026: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1026: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘search_devices’:
usb_modeswitch.c:1134: warning: implicit declaration of function ‘usb_get_busses’
usb_modeswitch.c:1134: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1134: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1136: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1136: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1138: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1138: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1139: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1160: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1167: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1167: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1169: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1179: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1188: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1190: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1193: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1194: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1220: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1220: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘find_first_bulk_output_endpoint’:
usb_modeswitch.c:1242: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1245: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1246: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1247: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1247: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1247: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
usb_modeswitch.c:1248: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1248: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1249: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘find_first_bulk_input_endpoint’:
usb_modeswitch.c:1260: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1263: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1264: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1265: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1265: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1265: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
usb_modeswitch.c:1266: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1266: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1267: error: dereferencing pointer to incomplete type
make: *** [usb_modeswitch] 错误 1


谁能帮我解决下。


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

当前时区为 UTC + 8 小时


在线用户

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


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

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

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