[Mrtrix-discussion] Re: Another successful OS X build
Craig Stark
cestark at uci.edu
Fri Dec 9 07:43:06 PST 2011
Donald,
MacPorts does involve a lot of compiling of the dependencies as well. So, no real plus over the other two options there. But, as I've got a lot of other things managed by MacPorts, sticking there is easier. I'd also tried the Homebrew solution but hit some snag along the way.
Craig
> Hi Craig,
>
> Thanks for that, I'm sure that'll be of great value to a lot of Mac users!
> Just to confirm one thing though: am I right in thinking that macports does
> not involve compiling all the dependencies on your own machine? If so, that
> would make it a much easier install than either homebrew or fink...
>
> Regards,
>
> Donald.
> On Nov 29, 2011, at 5:28 PM, Craig Stark wrote:
>
>> There have now been at least two threads here - Jon using Homebrew and Michael using Fink. Just to round it all out, I thought I'd post that MacPorts can be used as well.
>>
>> Run a "port install" on:
>> glib2
>> glibmm
>> (libpng - needed this to get gtk2 to go for some reason - perhaps a local issue)
>> gtk2
>> gtkmm
>> gtkglext
>> gsl
>>
>> Then as Michael noted, copy linux.py to darwin.py to read:
>> cpp_flags = [ '-Wall', '-mtune=native', '-fPIC', '-fno-strict-aliasing', '-DGL_GLEXT_PROTOTYPES', '-DUSE_TR1', '-L/opt/local/lib', '-I/opt/local/include' ]
>>
>> ./build and away we go. Also, as others have noted, you've got a huge list of shared libraries (run "otool -L mrview") as this is built using the dylibs. You can get fairly far in making things static by changing all of the -lXXXX bits (run ./build -verbose) to /opt/local/lib/libXXXX.a
>>
>> Craig
>>
>> Craig Stark, Ph.D.
>> Director, Center for the Neurobiology of Learning and Memory
>> Professor, Department of Neurobiology and Behavior
>> University of California, Irvine
>> cestark at uci.edu
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.nitrc.org/pipermail/mrtrix-discussion/attachments/20111209/56effafd/attachment.html
More information about the Mrtrix-discussion
mailing list