Hi Stephane, newtmgr depends on that gatt library for bluetooth communications. Based on that error you’re getting it’s clearly not been tried out on FreeBSD.
I see there’s AF_BLUETOOTH in FreeBSD, but I have not looked at how (dis)similar it is to Linux. > On Mar 10, 2017, at 7:22 AM, Stephane D'Alu <[email protected]> wrote: > > Hi, > > Trying to build newt on FreeBSD, I got the following errors: > > $ go get mynewt.apache.org/newt/... > # mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt > src/mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/central.go:118: > undefined: central > # > mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/linux/socket > src/mynewt.apache.org/newt/newtmgr/vendor/github.com/runtimeco/gatt/linux/socket/socket.go:66: > undefined: AF_BLUETOOTH > > > After installing, newtmgr is missing (which is certainly related > to the previous error) > > $ cd $GOPATH/src/mynewt.apache.org/newt/newt > $ go install > $ ls "$GOPATH"/bin/ > newt newtvm > > > Regards > -- > Stephane D'Alu
