[Mrtrix-discussion] Installation errors in Mac OS: header inclusion
Zhuang Song
zhuang.song at gmail.com
Tue Mar 5 12:28:22 PST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.nitrc.org/pipermail/mrtrix-discussion/attachments/20130305/bd5b05f0/attachment.html
More information about the Mrtrix-discussion
mailing list