Open mattetti opened 8 years ago
Thanks for reporting this... will have a look
np, this issue seems to be due to the fact that the syscall doesn't exist on OS X so if one were to pull the package on that os, the error would occur. You might need to split the file into multiple files and use build tags.
From as far as im seeing there's no option but to pull the host/generic package because host/rpi imports it.
How does the sample in the video shown here compile on OSX when the host/rpi package is imported? - http://embd.kidoman.io/
@kidoman I was wondering if you've had a chance to look at this issue. Per @declanshanaghy's comment ☝️, I'd be curious to see how you were able to compile on OSX in the demo video. For now, I'm working on splitting my package up (one version for OS X and one for rpi).
GOOS=linux GOARCH=arm GOARM=5 go build
use a dependency manager like deb or glide to get the code on the build env
Another super awesome tool is https://github.com/goreleaser/goreleaser
Probably not a big deal but wanted to mention it