[Mrtrix-discussion] RE: MrTrix MacBook Installtion

Parker, Christopher christopher.parker.10 at ucl.ac.uk
Wed May 2 03:27:15 PDT 2012


Hi All,

I fixed the problem. Other people might encounter the same problem building MrTrix v.0.2.1 on a Mac if using glib2 v. 2.3.2 (and maybe earlier versions of glib). To fix this, you can change the lines in the files /lib/file/dicom/select_cmdline.cpp and /lib/mrtrix.h (in the mrtrix folder), from "#include <glib/anything.h>" to "#include <glib.h>". This prevents an error from glib while building. It seems to work fine now.

Best,
Chris
________________________________
From: mrtrix-discussion-bounces at www.nitrc.org [mrtrix-discussion-bounces at www.nitrc.org] on behalf of Parker, Christopher [christopher.parker.10 at ucl.ac.uk]
Sent: 27 April 2012 15:37
To: mrtrix-discussion at www.nitrc.org
Subject: [Mrtrix-discussion] MrTrix MacBook Installtion

Hi All,

I am hoping someone may shed some light on the installation problems I am having with MrTrix (version 0-2.2.10_2012-02-10). I have followed the instructions on the MrTrix website for Mac installation via Homebrew. Homebrew seems to have installed correctly as did the dependencies, but after downloading and typing "./build" in the matrix folder, I get the following output (which I have summarised):

[CC] cmd/dir2amp.o
[CC] lib/file/dicom/quick_scan.o
[CC] cmd/streamtrack.o
[CC] lib/file/dicom/study.o
[CC] cmd/gen_unit_warp.o
[CC] src/dwi/tractography/tracker/sd_prob.o
[CC] cmd/import_tracks.o
[CC] src/dwi/tractography/tracker/base.o

ERROR: [CC] lib/file/dicom/quick_scan.o
g++ -c -Wall -mtune=native -fPIC -fno-strict-aliasing -DGL_GLEXT_PROTOTYPES.........
failed with output:

<repeated for ~ 10 *.o files>

and

In file included from lib/mrtrix.h:65,
                 from lib/ptr.h:26,
                 from lib/file/dicom/patient.h:26,
                 from lib/file/dicom/study.cpp:27:
/usr/local/Cellar/glib/2.32.1/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."

<repeated for ~30 times for various "h:*:*">

:(

I can provide the full list of errors or any further information, if this is needed.

Any help would be greatly appreciated!

Best,

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.nitrc.org/pipermail/mrtrix-discussion/attachments/20120502/2487f137/attachment.html


More information about the Mrtrix-discussion mailing list