bluetooth icon indicating copy to clipboard operation
bluetooth copied to clipboard

Cannot compile in windows

Open tmtong opened this issue 2 years ago • 2 comments

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

tmtong avatar Jun 11 '22 03:06 tmtong

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.

bartmeuris avatar Jul 10 '22 22:07 bartmeuris

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

deadprogram avatar Jul 11 '22 19:07 deadprogram

This should now be corrected, so now closing.

deadprogram avatar Feb 21 '24 11:02 deadprogram