<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<font><span>Hi All,</span></font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<font><span><br>
</span></font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<font><span>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.</span></font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<font><span><br>
</span></font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<font><span>Best,</span></font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<font><span>Chris</span></font></div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF216369" style="direction: ltr; "><font face="Tahoma" size="2" color="#000000"><b>From:</b> mrtrix-discussion-bounces@www.nitrc.org [mrtrix-discussion-bounces@www.nitrc.org] on behalf of Parker, Christopher [christopher.parker.10@ucl.ac.uk]<br>
<b>Sent:</b> 27 April 2012 15:37<br>
<b>To:</b> mrtrix-discussion@www.nitrc.org<br>
<b>Subject:</b> [Mrtrix-discussion] MrTrix MacBook Installtion<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi All,
<div><br>
</div>
<div>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):</div>
<div><br>
</div>
<div>
<div>[CC] cmd/dir2amp.o</div>
<div>[CC] lib/file/dicom/quick_scan.o</div>
<div>[CC] cmd/streamtrack.o</div>
<div>[CC] lib/file/dicom/study.o</div>
<div>[CC] cmd/gen_unit_warp.o</div>
<div>[CC] src/dwi/tractography/tracker/sd_prob.o</div>
<div>[CC] cmd/import_tracks.o</div>
<div>[CC] src/dwi/tractography/tracker/base.o</div>
</div>
<div><br>
</div>
<div>ERROR: [CC] lib/file/dicom/quick_scan.o</div>
<div>g++ -c -Wall -mtune=native -fPIC -fno-strict-aliasing -DGL_GLEXT_PROTOTYPES.........</div>
<div>failed with output:</div>
<div><br>
</div>
<div><repeated for ~ 10 *.o files></div>
<div><br>
</div>
<div>and</div>
<div><br>
</div>
<div>
<div>In file included from lib/mrtrix.h:65,</div>
<div> from lib/ptr.h:26,</div>
<div> from lib/file/dicom/patient.h:26,</div>
<div> from lib/file/dicom/study.cpp:27:</div>
<div>/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."</div>
</div>
<div><br>
</div>
<div><repeated for ~30 times for various "h:*:*"></div>
<div><br>
</div>
<div>:( </div>
<div><br>
</div>
<div>I can provide the full list of errors or any further information, if this is needed. </div>
<div><br>
</div>
<div>Any help would be greatly appreciated!</div>
<div><br>
</div>
<div>Best,</div>
<div><br>
</div>
<div>Chris</div>
</div>
</div>
</div>
</div>
</body>
</html>