[Mrtrix-discussion] Another successful OS X build
Donald Tournier
d.tournier at brain.org.au
Thu Dec 1 18:46:01 PST 2011
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 30 November 2011 12:28, Craig Stark <cestark at uci.edu> 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
>
>
> _______________________________________________
> Mrtrix-discussion mailing list
> Mrtrix-discussion at www.nitrc.org
> http://www.nitrc.org/mailman/listinfo/mrtrix-discussion
>
>
--
Jacques-Donald Tournier (PhD)
Brain Research Institute, Melbourne, Australia
Tel: +61 (0)3 9035 7033
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.nitrc.org/pipermail/mrtrix-discussion/attachments/20111202/8fca3303/attachment.html
More information about the Mrtrix-discussion
mailing list