[Owncloud] mirall (inotify) os x
freitag at owncloud.com
Fri Apr 13 07:48:39 UTC 2012
On 13.04.2012 09:23, Michele Marcionelli wrote:
> I am trying to compile mirall-1.0.0 on my Mac (OS X 10.7.3) and I get following error:
Thanks for your interest - I appreciate that!
> $ mkdir build
> $ cd build
> $ cmake ..
> $ make
> [ 21%] Building CXX object src/CMakeFiles/mirall_static.dir/mirall/folderwatcher.cpp.o
> /Users/michele/mirall-1.0.0/src/mirall/folderwatcher.cpp:32:25: error: sys/inotify.h: No such file or directory
Yes, for the time being, the Mac Version could use the (not optimal)
local file system polling as win does, what you experience here is a bug
in with the #defines, from the top of my head I think you have to undef
USE_WATCHER to switch on the polling.
> This is actually correct since under OS X the "sys/inotify.h" header file is not installed and as I read on some forums I can not install it but there are other options to use, for instance FSEvents , kqueue and kevent ). So… what are we - mac users - supposed to do ;-) ?
Yes, the FSEvents solution will be the one to go, but there is still
code to write. If you are interested to look into that, I'd really happy
about. Otherwise, we will look into the Mac build this weekend on the
dev meeting, so probably soon it will at least compile :-)
>  http://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/FSEvents_ProgGuide/Introduction/Introduction.html
>  http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man2/kqueue.2.html
> ISG D-MATH ETH Zürich · Webmaster& IT-Specialist
> Michele Marcionelli · mm at ethz.ch · +41 44 632 6193
> * Please consider the environment before printing
> Owncloud mailing list
> Owncloud at kde.org
More information about the Owncloud