Hi Stephane,

sorry for belated response.

I suspect the fastest approach to getting some FreeBSD support would
be to make newtmgr GATT library dependency platform dependent.
I do not have enough working experience with go to immediately say
how to make this happen.

That aside, you can just install newt, and do development. The  plan is to
move newtmgr away from this bundle anyway.

go get mynewt.apache.org/newt/newt <http://mynewt.apache.org/newt/newt>

would do it. I have not taken newt through it’s paces on it to say for sure
that everything will work ok.

> On Mar 14, 2017, at 7:37 AM, Stephane D'Alu <[email protected]> wrote:
> 
> On 03/10/17 18:56, marko kiiskila wrote:
>> 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.
>> 
> 
> Hi, I don't know "go", but if you need some files or program outputs,
> let me know the command I should run
> 
>>> 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
>> 
> 
> 
> -- 
> Stephane D'Alu

Reply via email to