rjeczalik / notify

File system event notification library on steroids.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build project for macOS

x1unix opened this issue · comments

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?

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.

@rjeczalik thank you for response