<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Got it working! At least the basics … mrview and mrconvert etc. Didn't test tractography yet ..<div><br></div><div><p class="MsoNormal">I tried copying from one machine (10.6.5) to another (10.6), but this didn’t work, so I don’t think it is worth putting binaries anywhere …</p><div></div><div><!--StartFragment--><p class="MsoNormal">Here is what I had to do</p><p class="MsoNormal">Install fink per webpage in /sw64</p><p class="MsoNormal">Download tarball</p><p class="MsoNormal" style="tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><span style="font-size:10.0pt;font-family:Courier;mso-bidi-font-family:Courier">tar
-xvzf fink-0.29.19.tar.gz<o:p></o:p></span></p><p class="MsoNormal">cd<span style="mso-spacerun: yes"> </span>fink-0.29.19</p><p class="MsoNormal">./bootstrap sw64 (puts fink in /sw64)</p><p class="MsoNormal">fink install python glib gtk+ glibmm2.4 gtkmm2.4 gtkglext1
gsl</p><p class="MsoNormal">at some point it bottoms out, so just repeat it, and it
works</p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">copy linux.py Darwin.py</p><p class="MsoNormal">modify Darwin.py cpp flags to read –mtune=native rather than –march=native</p><div>modify darwin.py to add to the cpp flags: '-L/sw64/lib', '-I/sw64/include'</div><p class="MsoNormal">./build</p><div><span style="mso-spacerun: yes"> </span><br class="webkit-block-placeholder"></div><p class="MsoNormal">copy to /usr/local/mri</p><p class="MsoNormal">change permissions so all users can read</p><p class="MsoNormal">change path to include /usr/local/mri/bin</p><p class="MsoNormal">export DYLD_LIBRARY_PATH="/usr/local/mrtrix/lib"</p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Then things work!</p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">One time, it was complaining regarding the freetype library,
and this required copying the /usr/x11/bin/libfreetype.6.dylib to /sw64/lib/freetype219/lib,
though it didn’t require it the second time.</p><p class="MsoNormal"><o:p> </o:p>On Feb 17, 2011, at 11:56 PM, Donald Tournier wrote:</p><div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Michael,<div><br></div><div>Perhaps not surprisingly, you're not the first to express interest in a Mac version of MRtrix... I did try once a while ago, and kind of managed to get something working, but it wasn't really satisfactory. To cut a long story short, the command-line utilities seemed to work OK, but the GUI components didn't really seem to work well. I'd eventually convinced myself that it was down to poor OpenGL support on the X compatibility layer. Mind you, this was on an older PowerPC Mac, so things might have changed since then...</div>
<div><br></div><div>The most painful part was the installation of the dependencies, in particular gtkmm and gtkglext. I had to compile these from source, since the pre-compiled versions available at the time were too old. There's a website that provides pre-compiled packages for Mac at <a href="http://www.finkproject.org/">http://www.finkproject.org</a>. I've just had a brief look, and it now looks like all the required dependencies are there and sufficiently up to date - you might be in luck!</div>
<div><br></div><div>So it looks like it would be worth giving it a shot. If you feel up to it, here's a few pointers: you'll need to generate a new config file for the build - probably named darwin.py (it's named according whatever Python's platform.system() function returns), in the sysconf folder. I'd recommend you start with a copy of the linux one, and modify it as needed. It should be a simple matter of figuring out the correct include paths, and possibly changing a few compiler options. You shouldn't need to modify the code in any way. </div>
<div><br></div><div>Needless to say, if you manage to get it working, I'd be more than happy for you to load it up on NITRC... :) <br></div><div><br></div><div>Cheers,</div><div><br></div><div>Donald.</div><div><br></div>
<div><br><div class="gmail_quote">
On 17 February 2011 07:05, Michael Zeineh <span dir="ltr"><<a href="mailto:mmzeineh@gmail.com" target="_blank">mmzeineh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Has anyone been able to compile any part of mrtrix on the mac? mrview and mrconvert are outstanding general tools, along with all the other great dti/csd tools!<br>
<br>
Thank you,<br>
Michael Zeineh<br>
<br>
_______________________________________________<br>
Mrtrix-discussion mailing list<br>
<a href="mailto:Mrtrix-discussion@www.nitrc.org" target="_blank">Mrtrix-discussion@www.nitrc.org</a><br>
<a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">http://www.nitrc.org/mailman/listinfo/mrtrix-discussion</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jacques-Donald Tournier (PhD)<br>Brain Research Institute, Melbourne, Australia<br>Tel: +61 (0)3 9496 4078<br>
</div>
</blockquote></div><br></div></div></body></html>