Hi Chris,<div><br></div><div>Great that you worked out a solution, and thanks very much for posting it here. I've included your changes in the current development branch (they work fine on my system), so they'll be the default for the next release of MRtrix.</div>
<div><br></div><div>Thanks!</div><div><br></div><div>Donald.</div><div> </div><div><br><div class="gmail_quote">On 2 May 2012 20:27, Parker, Christopher <span dir="ltr"><<a href="mailto:christopher.parker.10@ucl.ac.uk" target="_blank">christopher.parker.10@ucl.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">
<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-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000"><b>From:</b> <a href="mailto:mrtrix-discussion-bounces@www.nitrc.org" target="_blank">mrtrix-discussion-bounces@www.nitrc.org</a> [<a href="mailto:mrtrix-discussion-bounces@www.nitrc.org" target="_blank">mrtrix-discussion-bounces@www.nitrc.org</a>] on behalf of Parker, Christopher [<a href="mailto:christopher.parker.10@ucl.ac.uk" target="_blank">christopher.parker.10@ucl.ac.uk</a>]<br>
<b>Sent:</b> 27 April 2012 15:37<br>
<b>To:</b> <a href="mailto:mrtrix-discussion@www.nitrc.org" target="_blank">mrtrix-discussion@www.nitrc.org</a><br>
<b>Subject:</b> [Mrtrix-discussion] MrTrix MacBook Installtion<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">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></div>
</div>
</div>
<br>_______________________________________________<br>
Mrtrix-discussion mailing list<br>
<a href="mailto:Mrtrix-discussion@www.nitrc.org">Mrtrix-discussion@www.nitrc.org</a><br>
<a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">http://www.nitrc.org/mailman/listinfo/mrtrix-discussion</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jacques-Donald Tournier (PhD)<br>Brain Research Institute, Melbourne, Australia<br>Tel: +61 (0)3 9035 7033<br>
</div>