[Mrtrix-discussion] Installation errors in Mac OS: header
inclusion
Donald Tournier
d.tournier at brain.org.au
Tue Mar 5 16:45:35 PST 2013
Hi Zhuang,
Thanks for the feedback. These changes are indeed in the current
development branch <https://code.google.com/p/mrtrix/>, but you're right, a
new official release is probably due. I'll package it up and release in the
near future.
Cheers,
Donald.
On 6 March 2013 07:28, Zhuang Song <zhuang.song at gmail.com> wrote:
> Hi Donald,
>
> When I installed the most recent release of MRtrix (version 0.2.10) in Mac
> OS Lion, I got a number of errors like:
> #error "Only <glib.h> can be included directly."
>
> 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:
> lib/file/dicom/select_cmdline.cpp
> lib/mrtrix.h
>
> Just thought other people might encounter the same problem and it would be
> nice to fix it in the future releases.
>
> Best,
> Zhuang
>
> [Mrtrix-discussion] RE: MrTrix MacBook Installtion*Donald Tournier* d.tournier
> at brain.org.au <mrtrix-discussion%40www.nitrc.org?Subject=%5BMrtrix-discussion%5D%20RE%3A%20MrTrix%20MacBook%20Installtion&In-Reply-To=367A7D4B9B06EF4C95D106AD9EF930600F715012%40DB3PRD0104MB152.eurprd01.prod.exchangelabs.com>
> *Thu May 3 00:22:35 PDT 2012*
>
>
> - Previous message: [Mrtrix-discussion] RE: MrTrix MacBook Installtion<http://www.nitrc.org/pipermail/mrtrix-discussion/2012-May/000415.html>
> - Next message: [Mrtrix-discussion] From Neuroradiologic Unit of the
> University Hospital of Padua<http://www.nitrc.org/pipermail/mrtrix-discussion/2012-May/000417.html>
> - *Messages sorted by:* [ date ]<http://www.nitrc.org/pipermail/mrtrix-discussion/2012-May/date.html#416>
> [ thread ]<http://www.nitrc.org/pipermail/mrtrix-discussion/2012-May/thread.html#416>
> [ subject ]<http://www.nitrc.org/pipermail/mrtrix-discussion/2012-May/subject.html#416>
> [ author ]<http://www.nitrc.org/pipermail/mrtrix-discussion/2012-May/author.html#416>
>
> ------------------------------
>
> 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 <christopher.parker.10 at ucl.ac.uk <http://www.nitrc.org/mailman/listinfo/mrtrix-discussion>>wrote:
>
> >* 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 <http://www.nitrc.org/mailman/listinfo/mrtrix-discussion> [*>* mrtrix-discussion-bounces at www.nitrc.org <http://www.nitrc.org/mailman/listinfo/mrtrix-discussion>] on behalf of Parker, Christopher*>* [christopher.parker.10 at ucl.ac.uk <http://www.nitrc.org/mailman/listinfo/mrtrix-discussion>]*>* *Sent:* 27 April 2012 15:37*>* *To:* mrtrix-discussion at www.nitrc.org <http://www.nitrc.org/mailman/listinfo/mrtrix-discussion>*>* *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*>**>* _______________________________________________*>* Mrtrix-discussion mailing list*>* Mrtrix-discussion at www.nitrc.org <http://www.nitrc.org/mailman/listinfo/mrtrix-discussion>*>* http://www.nitrc.org/mailman/listinfo/mrtrix-discussion*>**>**
>
> --
> Jacques-Donald Tournier (PhD)
> Brain Research Institute, Melbourne, Australia
> Tel: +61 (0)3 9035 7033
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://www.nitrc.org/pipermail/mrtrix-discussion/attachments/20120503/c8a13996/attachment.html
>
>
> _______________________________________________
> Mrtrix-discussion mailing list
> Mrtrix-discussion at www.nitrc.org
> http://www.nitrc.org/mailman/listinfo/mrtrix-discussion
>
>
--
*Dr Jacques-Donald Tournier
*
Research Fellow
The Florey Institute of Neuroscience and Mental Health
Melbourne Brain Centre - Austin Campus
245 Burgundy Street
Heidelberg Vic 3084
Ph: +61 3 9035 7033
Fax: +61 3 9035 7307
www.florey.edu.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.nitrc.org/pipermail/mrtrix-discussion/attachments/20130306/be035cf0/attachment-0001.html
More information about the Mrtrix-discussion
mailing list