When building the package against the NCSDK V1 API locally on macOS I encountered the following error:
~/go/src/github.com/hybridgroup/go-ncs (master)$ go build # github.com/hybridgroup/go-ncs In file included from ./ncs.go:5: ./ncs.h:11:3: error: unknown type name 'uint'; did you mean 'int'? uint length; ^~~~ int 1 error generated.
This was due to missing header file when compiling on macOS platform which this commit includes in the
I deleted my old comment @deadprogram as it turned into a complete mess. Here are the correct links to my forks that I made to get the NCSDK API working on my macOS:
I only got the API working so far -- in fact I haven't spent much time getting the rest of the toolkit working on macOS, so can't really say if it can even be done at the moment.
I forked the official SDK repo and made a few hacks on my
Everything compiles fine besides a few warnings that dont seem to be that important from the looks of it. Test examples seem to work.
I also tested the example program in this repo and it works perfectly fine too:
go run main.go NCS: 8 Opening NCS device 8... Closing NCS device 8...
I also have a few hacks to get the API V2 compiled on macOS on macos-V2 branch, but it seems the API V2 is broken and no one at Intel seems to be paying attention to their forums as you can see in my comment here.
Nevertheless, I have started hacking on poring API V2 to Go with a goal to then push it to this repo once I get something working here. I got
Hi @marktheunissen I stopped for a bit as I was finishing my last freelance gig and wrapping things up.
I'll be picking it up this week -- there might be one thing which might prevent me from making more progress: APIv2 was broken on my work environment which is virtualbox. Intel claim to be aware of this as you can read here.
Some people suggested upgrading virtualbox and extensions - I'll be attempting that today and see if I can make it work so I can invest proper hacking time into it. I'll update the thread here.
Ok so I made a bit of progress with this today. I've upgraded the virtualbox on my Mac to the latest available version along with extension packs.
After the upgrade I could run the basic examples shipped with the NCS SDK, however there is still some weird error being returned by SDK libraries. See my comments on the official forum. The example apps do work as they should though ¯_(ツ)_/¯
that the communication with the NCS works and there should hopefully be nothing preventing me from restarting my work on this