[Mrtrix-discussion] Another successful OS X build
Craig Stark
cestark at uci.edu
Tue Nov 29 17:28:22 PST 2011
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/20111129/9719b3f3/attachment.html
More information about the Mrtrix-discussion
mailing list