[Owncloud] mirall (inotify) os x

Michele Marcionelli michele.marcionelli at math.ethz.ch
Fri Apr 13 10:23:23 UTC 2012


Hi Klaas

> Hi Michele,
> 
>> 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.

I already tried that (src/mirall/folder.h) but it compiles only a little bit more:

...
[ 33%] Building CXX object src/CMakeFiles/mirall_static.dir/mirall/inotify.cpp.o
/Users/michele/tmp/owncloud-client/mirall-1.0.0/src/mirall/inotify.cpp: In destructor ‘virtual Mirall::INotify::~INotify()’:
/Users/michele/tmp/owncloud-client/mirall-1.0.0/src/mirall/inotify.cpp:53: error: ‘inotify_rm_watch’ was not declared in this scope
...

>> 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 [1], kqueue and kevent [2]). 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.

I'm sorry but I don't have the necessary skills to do that ;-)

> Otherwise, we will look into the Mac build this weekend on the dev meeting, so probably soon it will at least compile :-)

Would be great!!

Danke,
Michele

> Best,
> 
> Klaas
> 
>> [1] http://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/FSEvents_ProgGuide/Introduction/Introduction.html
>> [2] 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




More information about the Owncloud mailing list