<div dir="ltr">By the way, to actually run the arbtt-capture command from Terminal and have it be detached, I had to do (./arbtt-capture &) rather than just ./arbtt-capture&.<div><br></div><div>Also, to set it up to run automatically at startup, I did crontab -e and wrote @reboot /Users/peekmeddev/.cabal/bin/arbtt-capture (according to this: <a href="http://apple.stackexchange.com/questions/156288/how-to-get-shell-scripts-to-run-at-startup-on-yosemite">http://apple.stackexchange.com/questions/156288/how-to-get-shell-scripts-to-run-at-startup-on-yosemite</a>)</div><div><br></div><div>--Waldir</div>







</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 30, 2016 at 11:39 PM, Waldir Pimenta <span dir="ltr"><<a href="mailto:waldir@email.com" target="_blank">waldir@email.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Vincent! What a great timing! My work laptop is a Mac and I've been sorely missing arbtt since I started using it. Your instructions worked great, thanks for the detail! I'll give you feedback on my experience, hoping it can be useful.<div><br></div><div>I use Homebrew, and already had cabal-install, pkg-config and pcre installed through it. One curious detail, which I'm not sure is relevant, is that the first time I ranĀ <span style="font-size:12.8px">cabal install --only-dependencies it only configured/built/installed pcre, but told me I should update cabal; after running cabal update, I tried runningĀ </span><span style="font-size:12.8px">cabal install --only-dependencies again, and this time it installed a bunch of other packages: fail, tagged, semigroups and aeson. I wonder if this means something.</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Afterwards, cabal build worked, although there were quite a few deprecation warnings. Installation worked seamlessly. However, there's no ~/Library/Haskell directory on my machine. The arbtt binaries were placed in ~/</span>.cabal/bin/. I wonder if this is a difference between Homebrew and MacPorts...</div><div><br></div><div>Other than that, it seems to be working perfectly. Amazing work! Let me know if i can assist in anyway in getting this ready to merge upstream :)</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>--Waldir</div><div><br></div><div><br></div>







</font></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 29, 2016 at 12:12 PM,  <span dir="ltr"><<a href="mailto:vrasneur@free.fr" target="_blank">vrasneur@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have some code that makes arbtt work with MAC OS X.<br>
The changes are available in a git branch: <a href="https://github.com/vrasneur/darcs-mirror-arbtt/commit/e2a138ae865a68bd1b9117f41a1f5ea881995e71" rel="noreferrer" target="_blank">https://github.com/vrasneur/darcs-mirror-arbtt/commit/e2a138ae865a68bd1b9117f41a1f5ea881995e71</a><br>
<br>
Can somebody with a Mac test that arbtt works correctly with his computer?<br>
<br>
Here are the compilation instructions:<br>
<br>
First, you need the Haskell platform for Mac.<br>
You also need:<br>
* git<br>
* a package manager for OS X. I use MacPorts (<a href="https://www.macports.org/" rel="noreferrer" target="_blank">https://www.macports.org/</a>) but it should work with Homebrew.<br>
* XCode and the XCode command line tools<br>
<br>
Note: the OS X port itself does not need a C/Objective-C compiler. It uses the Haskell FFI to call the Mac OS X specific functions.<br>
<br>
then,<br>
<br>
* install the C dependencies with your package manager<br>
sudo port install pkgconfig<br>
sudo port install pcre<br>
<br>
* clone the OS X git branch<br>
git clone -b osx-support <a href="https://github.com/vrasneur/darcs-mirror-arbtt/" rel="noreferrer" target="_blank">https://github.com/vrasneur/darcs-mirror-arbtt/</a><br>
<br>
* use cabal to build/install arbtt<br>
cd darcs-mirror-arbtt<br>
cabal install --only-dependencies<br>
cabal configure --extra-lib-dir=/usr/lib<br>
cabal build<br>
cabal install<br>
<br>
The option "--extra-lib-dir=/usr/lib" is necessary because of a conflict with iconv. (See <a href="http://blog.omega-prime.co.uk/?p=96" rel="noreferrer" target="_blank">http://blog.omega-prime.co.uk/?p=96</a> for a detailed explanation)<br>
<br>
* then, go to /Users/<user>/Library/Haskell/bin/ and type ls<br>
You should see all the arbtt binaries.<br>
<br>
* then, you can execute the binaries:<br>
cd /Users/<user>/Library/Haskell/bin/<br>
./arbtt-capture&<br>
./arbtt-dump<br>
<br>
Regards,<br>
<br>
Vincent Rasneur<br>
<br>
_______________________________________________<br>
arbtt mailing list<br>
<a href="mailto:arbtt@lists.nomeata.de" target="_blank">arbtt@lists.nomeata.de</a><br>
<a href="https://lists.nomeata.de/mailman/listinfo/arbtt" rel="noreferrer" target="_blank">https://lists.nomeata.de/mailman/listinfo/arbtt</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>