embd icon indicating copy to clipboard operation
embd copied to clipboard

go get error

Open mattetti opened this issue 9 years ago • 6 comments

Probably not a big deal but wanted to mention it

$ go get -u github.com/kidoman/embd/...
# github.com/kidoman/embd/host/generic
../../../github.com/kidoman/embd/host/generic/interrupt.go:50: undefined: syscall.EpollCreate1
../../../github.com/kidoman/embd/host/generic/interrupt.go:57: undefined: syscall.EpollEvent
../../../github.com/kidoman/embd/host/generic/interrupt.go:60: undefined: syscall.EpollWait

mattetti avatar May 09 '16 01:05 mattetti

Thanks for reporting this... will have a look

kidoman avatar May 09 '16 01:05 kidoman

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.

mattetti avatar May 09 '16 03:05 mattetti

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/

declanshanaghy avatar Nov 30 '16 21:11 declanshanaghy

@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).

pravipati avatar Dec 07 '17 22:12 pravipati

GOOS=linux GOARCH=arm GOARM=5 go build use a dependency manager like deb or glide to get the code on the build env

ripienaar avatar Jan 05 '18 14:01 ripienaar

Another super awesome tool is https://github.com/goreleaser/goreleaser

pwaterz avatar May 05 '18 15:05 pwaterz