You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing go install in the folder github.com/cfreeman/WeatherMachine2-hrm I get errors:
../gatt/device_linux.go:7:2: cannot find package "github.com/paypal/gatt/linux" in any of:
/usr/local/go/src/github.com/paypal/gatt/linux (from $GOROOT)
/root/work/src/github.com/paypal/gatt/linux (from $GOPATH)
../gatt/device_linux.go:8:2: cannot find package "github.com/paypal/gatt/linux/cmd" in any of:
/usr/local/go/src/github.com/paypal/gatt/linux/cmd (from $GOROOT)
/root/work/src/github.com/paypal/gatt/linux/cmd (from $GOPATH)
../gatt/linux/cmd/cmd.go:10:2: cannot find package "github.com/paypal/gatt/linux/evt" in any of:
/usr/local/go/src/github.com/paypal/gatt/linux/evt (from $GOROOT)
/root/work/src/github.com/paypal/gatt/linux/evt (from $GOPATH)
../gatt/linux/cmd/cmd.go:11:2: cannot find package "github.com/paypal/gatt/linux/util" in any of:
/usr/local/go/src/github.com/paypal/gatt/linux/util (from $GOROOT)
/root/work/src/github.com/paypal/gatt/linux/util (from $GOPATH)
I looked into the file github.com/cfreeman/gatt/examples/option/option_linux.go and there, the paypal/gatt is still referenced.
To resolve this, you can use sed:
cd ${GOPATH}/github.com/cfreeman/gatt
find ./ -type f -exec sed -i -e 's/paypal/cfreeman/g' {} \; # This removes references to paypal
After I did this, WeatherMachine2-scan and WeatherMachine2-hrm both compiled.
The text was updated successfully, but these errors were encountered:
Sorry about that. I left the original paypal references to make it easier for them to merge: paypal/gatt#60 -- Unfortunately it hasn't been merged yet.
If you shoot through a pull request with the updated references I will merge them here.
Should also compile with go1.6. Official builds for the Pi (armv6l) are also available from the download page: https://golang.org/dl/
When doing
go install
in the folder github.com/cfreeman/WeatherMachine2-hrm I get errors:I looked into the file
github.com/cfreeman/gatt/examples/option/option_linux.go
and there, the paypal/gatt is still referenced.To resolve this, you can use sed:
After I did this, WeatherMachine2-scan and WeatherMachine2-hrm both compiled.
The text was updated successfully, but these errors were encountered: