mebeats
mebeats copied to clipboard
Windows下无法编译client
PS D:\mebeats\cmd\mebeats-client> go build .
github.com/raff/goble/xpc: build constraints exclude all Go files in C:\Users\mengx\go\pkg\mod\github.com\raff\[email protected]\xpc
# github.com/JuulLabs-OSS/cbgo
C:\Users\mengx\go\pkg\mod\github.com\!juul!labs-!o!s!s\[email protected]\centralmanagerdelegate.go:6:28: undefined: CentralManager
C:\Users\mengx\go\pkg\mod\github.com\!juul!labs-!o!s!s\[email protected]\centralmanagerdelegate.go:6:49: undefined: Peripheral
C:\Users\mengx\go\pkg\mod\github.com\!juul!labs-!o!s!s\[email protected]\centralmanagerdelegate.go:9:31: undefined: CentralManager
C:\Users\mengx\go\pkg\mod\github.com\!juul!labs-!o!s!s\[email protected]\centralmanagerdelegate.go:9:52: undefined: Peripheral
C:\Users\mengx\go\pkg\mod\github.com\!juul!labs-!o!s!s\[email protected]\centralmanagerdelegate.go:12:34: undefined: CentralManager
C:\Users\mengx\go\pkg\mod\github.com\!juul!labs-!o!s!s\[email protected]\centralmanagerdelegate.go:12:55: undefined: Peripheral
C:\Users\mengx\go\pkg\mod\github.com\!juul!labs-!o!s!s\[email protected]\centralmanagerdelegate.go:15:29: undefined: CentralManager
C:\Users\mengx\go\pkg\mod\github.com\!juul!labs-!o!s!s\[email protected]\centralmanagerdelegate.go:15:50: undefined: Peripheral
C:\Users\mengx\go\pkg\mod\github.com\!juul!labs-!o!s!s\[email protected]\centralmanagerdelegate.go:18:36: undefined: CentralManager
C:\Users\mengx\go\pkg\mod\github.com\!juul!labs-!o!s!s\[email protected]\centralmanagerdelegate.go:21:38: undefined: CentralManager
C:\Users\mengx\go\pkg\mod\github.com\!juul!labs-!o!s!s\[email protected]\centralmanagerdelegate.go:21:38: too many errors
一顿折腾编译出来了能在安卓上拿adb跑的mebeats-client,然后连上去发现他没蓝牙权限
# ./mebeats-client
2023/09/09 04:29:36 [TRACE] Try to connect ""...
2023/09/09 04:29:36 [FATAL] [...beats/cmd/mebeats-client/main.go:45 main()] Failed to new Mi Band: new device: can't init hci: no devices available: