kidoman / embd

Embedded Programming Framework in Go
http://embd.kidoman.io
MIT License
1.28k stars 156 forks source link

go get error #57

Open mattetti opened 8 years ago

mattetti commented 8 years ago

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
kidoman commented 8 years ago

Thanks for reporting this... will have a look

mattetti commented 8 years ago

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.

declanshanaghy commented 7 years ago

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/

pravipati commented 6 years ago

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

ripienaar commented 6 years ago

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

pwaterz commented 6 years ago

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