rjeczalik / notify

File system event notification library on steroids.
MIT License
900 stars 128 forks source link

Cannot build project for macOS #177

Closed x1unix closed 5 years ago

x1unix commented 5 years ago

Hello.

I'm trying to build a project on linux for target darwin amd64 and getting this error:

 # github.com/x1unix/gilbert/vendor/github.com/rjeczalik/notify
vendor/github.com/rjeczalik/notify/watcher_fsevents.go:49:11: undefined: stream

Are cross-builds supported?

rjeczalik commented 5 years ago

Hey @x1unix! It's not possible to cross-compile for darwin from linux, since notify uses CGO on darwin. You'd need to build it on macOS instead.

x1unix commented 5 years ago

@rjeczalik thank you for response