ps3手柄连Linux,树莓派连接 Dualshock3(ps3手柄)

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

root@raspberrypi:/home/pi/tools/QtSixA-1.5.1/sixad# make

mkdir -p bins

g++ -O2 -Wall -Wl,-Bsymbolic-functions sixad-bin.cpp bluetooth.cpp shared.cpp textfile.cpp -o bins/sixad-bin `pkg-config --cflags --libs bluez` -lpthread -fpermissive

sixad-bin.cpp: In function ‘int main(int, char**)’:

sixad-bin.cpp:84:20: warning: taking address of temporary [-fpermissive]

sixad-bin.cpp:89:18: error: ‘close’ was not declared in this scope

sixad-bin.cpp:100:20: error: ‘sleep’ was not declared in this scope

sixad-bin.cpp:109:22: error: ‘close’ was not declared in this scope

sixad-bin.cpp:117:22: error: ‘close’ was not declared in this scope

sixad-bin.cpp:140:18: error: ‘close’ was not declared in this scope

sixad-bin.cpp:144:14: error: ‘close’ was not declared in this scope

bluetooth.cpp: In function ‘void do_connect(int, bdaddr_t*, bdaddr_t*, int)’:

bluetooth.cpp:104:30: error: ‘close’ was not declared in this scope

bluetooth.cpp:110:24: error: ‘dup2’ was not declared in this scope

bluetooth.cpp:111:22: error: ‘close’ was not declared in this scope

bluetooth.cpp: In function ‘int l2cap_listen(const bdaddr_t*, short unsigned int, int, int)’:

bluetooth.cpp:148:17: error: ‘close’ was not declared in this scope

bluetooth.cpp:162:17: error: ‘close’ was not declared in this scope

bluetooth.cpp: In function ‘void l2cap_accept(int, int, int, int, int)’:

bluetooth.cpp:195:26: error: ‘close’ was not declared in this scope

bluetooth.cpp:201:26: error: ‘close’ was not declared in this scope

bluetooth.cpp:221:26: error: ‘fork’ was not declared in this scope

bluetooth.cpp:228:32: error: ‘dup2’ was not declared in this scope

bluetooth.cpp:229:30: error: ‘close’ was not declared in this scope

bluetooth.cpp:242:57: error: ‘execve’ was not declared in this scope

bluetooth.cpp:254:26: error: ‘close’ was not declared in this scope

bluetooth.cpp: In function ‘int l2cap_connect(bdaddr_t*, bdaddr_t*, short unsigned int)’:

bluetooth.cpp:274:25: error: ‘close’ was not declared in this scope

bluetooth.cpp:291:25: error: ‘close’ was not declared in this scope

Makefile:10: recipe for target 'sixad_bins' failed

make: *** [sixad_bins] Error 1

root@raspberrypi:/home/pi/tools/QtSixA-1.5.1/sixad# makemkdir -p binsg++ -O2 -Wall -Wl,-Bsymbolic-functions sixad-bin.cpp bluetooth.cpp shared.cpp textfile.cpp -o bins/sixad-bin `pkg-config --cflags --libs bluez` -lpthread -fpermissivesixad-bin.cpp: In function ‘int main(int, char**)’:sixad-bin.cpp:84:20: warning: taking address of temporary [-fpermissive]sixad-bin.cpp:89:18: error: ‘close’ was not declared in this scopesixad-bin.cpp:100:20: error: ‘sleep’ was not declared in this scopesixad-bin.cpp:109:22: error: ‘close’ was not declared in this scopesixad-bin.cpp:117:22: error: ‘close’ was not declared in this scopesixad-bin.cpp:140:18: error: ‘close’ was not declared in this scopesixad-bin.cpp:144:14: error: ‘close’ was not declared in this scopebluetooth.cpp: In function ‘void do_connect(int, bdaddr_t*, bdaddr_t*, int)’:bluetooth.cpp:104:30: error: ‘close’ was not declared in this scopebluetooth.cpp:110:24: error: ‘dup2’ was not declared in this scopebluetooth.cpp:111:22: error: ‘close’ was not declared in this scopebluetooth.cpp: In function ‘int l2cap_listen(const bdaddr_t*, short unsigned int, int, int)’:bluetooth.cpp:148:17: error: ‘close’ was not declared in this scopebluetooth.cpp:162:17: error: ‘close’ was not declared in this scopebluetooth.cpp: In function ‘void l2cap_accept(int, int, int, int, int)’:bluetooth.cpp:195:26: error: ‘close’ was not declared in this scopebluetooth.cpp:201:26: error: ‘close’ was not declared in this scopebluetooth.cpp:221:26: error: ‘fork’ was not declared in this scopebluetooth.cpp:228:32: error: ‘dup2’ was not declared in this scopebluetooth.cpp:229:30: error: ‘close’ was not declared in this scopebluetooth.cpp:242:57: error: ‘execve’ was not declared in this scopebluetooth.cpp:254:26: error: ‘close’ was not declared in this scopebluetooth.cpp: In function ‘int l2cap_connect(bdaddr_t*, bdaddr_t*, short unsigned int)’:bluetooth.cpp:274:25: error: ‘close’ was not declared in this scopebluetooth.cpp:291:25: error: ‘close’ was not declared in this scopeMakefile:10: recipe for target 'sixad_bins' failedmake: *** [sixad_bins] Error 1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值