Hi Zhuang,<br><br>Thanks for the feedback. These changes are indeed in the <a href="https://code.google.com/p/mrtrix/">current development branch</a>, but you're right, a new official release is probably due. I'll package it up and release in the near future.<br>
<br>Cheers,<br><br>Donald.<div><br></div><div><br></div><div><div class="gmail_quote">On 6 March 2013 07:28, Zhuang Song <span dir="ltr"><<a href="mailto:zhuang.song@gmail.com" target="_blank">zhuang.song@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi Donald, </div><div><br></div><div>When I installed the most recent release of MRtrix (version 0.2.10) in Mac OS Lion, I got a number of errors like:</div>
<div>#error "Only <glib.h> can be included directly." Â </div>
<div><br></div><div>I found that these errors were discussed in this maillist last year (as attached messages below). I fixed the problem by following Chris's suggestion to change  "#include <glib/anything.h>" to "#include <glib.h>" in the two files:</div>
lib/file/dicom/select_cmdline.cpp <div>lib/mrtrix.h </div><div><br></div><div>Just thought other people might encounter the same problem and it would be nice to fix it in the future releases.</div><div><br></div><div>Best, </div>
<div>Zhuang</div><div><br></div><div><h1 style="font-family:Times;font-size:medium">[Mrtrix-discussion] RE: MrTrix MacBook Installtion</h1><span style="font-family:Times;font-size:medium"><b>Donald Tournier</b></span><span style="font-family:Times;font-size:medium"> </span><span style="font-family:Times;font-size:medium"><a href="mailto:mrtrix-discussion%40www.nitrc.org?Subject=%5BMrtrix-discussion%5D%20RE%3A%20MrTrix%20MacBook%20Installtion&In-Reply-To=367A7D4B9B06EF4C95D106AD9EF930600F715012%40DB3PRD0104MB152.eurprd01.prod.exchangelabs.com" title="[Mrtrix-discussion] RE: MrTrix MacBook Installtion" target="_blank">d.tournier at brain.org.au </a></span><span style="font-family:Times;font-size:medium"><br>
</span><span style="font-family:Times;font-size:medium"><i>Thu May 3 00:22:35 PDT 2012</i></span><p style="font-family:Times;font-size:medium"></p><ul style="font-family:Times;font-size:medium"><li>
Previous message:Â <a href="http://www.nitrc.org/pipermail/mrtrix-discussion/2012-May/000415.html" target="_blank">[Mrtrix-discussion] RE: MrTrix MacBook Installtion</a></li><li>Next message:Â <a href="http://www.nitrc.org/pipermail/mrtrix-discussion/2012-May/000417.html" target="_blank">[Mrtrix-discussion] From Neuroradiologic Unit of the University Hospital of Padua</a></li>
<li><b>Messages sorted by:</b>Â <a href="http://www.nitrc.org/pipermail/mrtrix-discussion/2012-May/date.html#416" target="_blank">[ date ]</a>Â <a href="http://www.nitrc.org/pipermail/mrtrix-discussion/2012-May/thread.html#416" target="_blank">[ thread ]</a>Â <a href="http://www.nitrc.org/pipermail/mrtrix-discussion/2012-May/subject.html#416" target="_blank">[ subject ]</a>Â <a href="http://www.nitrc.org/pipermail/mrtrix-discussion/2012-May/author.html#416" target="_blank">[ author ]</a></li>
</ul><hr style="font-family:Times;font-size:medium"><span style="font-family:Times;font-size:medium"><pre>Hi Chris,
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.
Thanks!
Donald.
On 2 May 2012 20:27, Parker, Christopher <<a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">christopher.parker.10 at ucl.ac.uk</a>>wrote:
><i> Hi All,
</i>><i>
</i>><i> I fixed the problem. Other people might encounter the same problem
</i>><i> building MrTrix v.0.2.1 on a Mac if using glib2 v. 2.3.2 (and maybe earlier
</i>><i> versions of glib). To fix this, you can change the lines in the files
</i>><i> /lib/file/dicom/select_cmdline.cpp and /lib/mrtrix.h (in the mrtrix
</i>><i> folder), from "#include <glib/anything.h>" to "#include <glib.h>". This
</i>><i> prevents an error from glib while building. It seems to work fine now.
</i>><i>
</i>><i> Best,
</i>><i> Chris
</i>><i> ------------------------------
</i>><i> *From:* <a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">mrtrix-discussion-bounces at www.nitrc.org</a> [
</i>><i> <a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">mrtrix-discussion-bounces at www.nitrc.org</a>] on behalf of Parker, Christopher
</i>><i> [<a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">christopher.parker.10 at ucl.ac.uk</a>]
</i>><i> *Sent:* 27 April 2012 15:37
</i>><i> *To:* <a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">mrtrix-discussion at www.nitrc.org</a>
</i>><i> *Subject:* [Mrtrix-discussion] MrTrix MacBook Installtion
</i>><i>
</i>><i> Hi All,
</i>><i>
</i>><i> I am hoping someone may shed some light on the installation problems I
</i>><i> am having with MrTrix (version 0-2.2.10_2012-02-10). I have followed the
</i>><i> instructions on the MrTrix website for Mac installation via Homebrew.
</i>><i> Homebrew seems to have installed correctly as did the dependencies, but
</i>><i> after downloading and typing "./build" in the matrix folder, I get the
</i>><i> following output (which I have summarised):
</i>><i>
</i>><i> [CC] cmd/dir2amp.o
</i>><i> [CC] lib/file/dicom/quick_scan.o
</i>><i> [CC] cmd/streamtrack.o
</i>><i> [CC] lib/file/dicom/study.o
</i>><i> [CC] cmd/gen_unit_warp.o
</i>><i> [CC] src/dwi/tractography/tracker/sd_prob.o
</i>><i> [CC] cmd/import_tracks.o
</i>><i> [CC] src/dwi/tractography/tracker/base.o
</i>><i>
</i>><i> ERROR: [CC] lib/file/dicom/quick_scan.o
</i>><i> g++ -c -Wall -mtune=native -fPIC -fno-strict-aliasing
</i>><i> -DGL_GLEXT_PROTOTYPES.........
</i>><i> failed with output:
</i>><i>
</i>><i> <repeated for ~ 10 *.o files>
</i>><i>
</i>><i> and
</i>><i>
</i>><i> In file included from lib/mrtrix.h:65,
</i>><i> from lib/ptr.h:26,
</i>><i> from lib/file/dicom/patient.h:26,
</i>><i> from lib/file/dicom/study.cpp:27:
</i>><i> /usr/local/Cellar/glib/2.32.1/include/glib-2.0/glib/gtypes.h:28:2: error:
</i>><i> #error "Only <glib.h> can be included directly."
</i>><i>
</i>><i> <repeated for ~30 times for various "h:*:*">
</i>><i>
</i>><i> :(
</i>><i>
</i>><i> I can provide the full list of errors or any further information, if
</i>><i> this is needed.
</i>><i>
</i>><i> Any help would be greatly appreciated!
</i>><i>
</i>><i> Best,
</i>><i>
</i>><i> Chris
</i>><i>
</i>><i> _______________________________________________
</i>><i> Mrtrix-discussion mailing list
</i>><i> <a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">Mrtrix-discussion at www.nitrc.org</a>
</i>><i> <a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">http://www.nitrc.org/mailman/listinfo/mrtrix-discussion</a>
</i>><i>
</i>><span class="HOEnZb"><font color="#888888"><i>
</i>
--
Jacques-Donald Tournier (PhD)
Brain Research Institute, Melbourne, Australia
Tel: +61 (0)3 9035 7033
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <a href="http://www.nitrc.org/pipermail/mrtrix-discussion/attachments/20120503/c8a13996/attachment.html" target="_blank">http://www.nitrc.org/pipermail/mrtrix-discussion/attachments/20120503/c8a13996/attachment.html</a></font></span></pre>
</span></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><font color="#ff6600" size="1"><b>Dr Jacques-Donald Tournier<br></b></font><div><font color="#ff6600" size="1">Research Fellow</font></div><div><font size="1"><br>
</font></div><div><font size="1">The Florey Institute of Neuroscience and Mental Health</font></div><div><font size="1">Melbourne Brain Centre - Austin Campus</font></div><div><font size="1">245 Burgundy Street</font></div>
<div><font size="1">Heidelberg  Vic  3084</font></div><div><font size="1">Ph:  +61 3 9035 7033</font></div><div><font size="1">Fax:  +61 3 9035 7307</font></div><div><font size="1"><a href="http://www.florey.edu.au" target="_blank">www.florey.edu.au</a></font></div>
<br>
</div>