tinygo-org / bluetooth

Cross-platform Bluetooth API for Go and TinyGo. Supports Linux, macOS, Windows, and bare metal using Nordic SoftDevice or HCI
https://tinygo.org
Other
708 stars 134 forks source link

Cannot compile in windows #102

Closed tmtong closed 5 months ago

tmtong commented 2 years ago

I install cygwin in windows 10

export GOARCH=amd64
export GOOS=windows
git clone https://github.com/tinygo-org/bluetooth.git

bash:/tmp/bluetooth$ go run ./examples/scanner/main.go
# tinygo.org/x/bluetooth/winbt
winbt\advertisement.go:59:11: undefined: NewEvent
winbt\advertisement.go:59:87: undefined: Event
winbt\advertisement.go:75:11: undefined: NewEvent
winbt\advertisement.go:75:87: undefined: Event
bartmeuris commented 2 years ago

I got it working with the 64bit version of msys2 ( https://www.msys2.org/ ) - but windows support is currently very lacking, it only supports some (very basic) scanning at the moment.

deadprogram commented 2 years ago

Please see https://github.com/tinygo-org/bluetooth/issues/13

deadprogram commented 5 months ago

This should now be corrected, so now closing.