Closed kkdai closed 3 years ago
comment written by Willy Ko, created at 21 Mar 16 01:24 UTC,
你好 用GO跑會出現編譯錯誤 代碼如下
可以請問原因是為何嗎?
beacon.go:7:2: cannot find package "github.com/paypal/gatt" in any of:
/usr/local/Cellar/go/1.6/libexec/src/github.com/paypal/gatt (from $GOROOT)
/Users/-----/Eddystone/src/github.com/paypal/gatt (from $GOPATH)
beacon.go:8:2: cannot find package "github.com/paypal/gatt/exam..." in any of:
/usr/local/Cellar/go/1.6/libexec/src/github.com/paypal/gatt/exam... (from $GOROOT)
/Users/------/Eddystone/src/github.com/paypal/gatt/exam... (from $GOPATH)
comment written by Evan Lin, created at 21 Mar 16 01:27 UTC,
Hi Willy
如果你不是透過`go get github.com/kkdai/beacon`
先在該目錄下 使用 `go get -d `
然後再編譯(`go build`) 即可
comment written by Willy Ko, created at 21 Mar 16 02:13 UTC,
不好意思我不太了解GO語言
go run beacon.go後有出現
panic: runtime error: cgo argument has Go pointer to Go pointer
...
...
exit status 2
再Build之後出現一個example 開啟後說程序完成
可是用app掃瞄還是沒有搜尋到
comment written by Evan Lin, created at 21 Mar 16 02:51 UTC,
Hi Willy,
我怕你問題有點多.. 透過gitter吧 https://gitter.im/kkdai/beacon
[Golang][BLE] Eddystone 初體驗(包含Beacon模擬器)
http://www.evanlin.com/eddystone-first-note/