Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows下无法编译client #14

Open
mengxin239 opened this issue Sep 9, 2023 · 1 comment
Open

Windows下无法编译client #14

mengxin239 opened this issue Sep 9, 2023 · 1 comment

Comments

@mengxin239
Copy link

mengxin239 commented Sep 9, 2023

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
@mengxin239
Copy link
Author

mengxin239 commented Sep 9, 2023

一顿折腾编译出来了能在安卓上拿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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant