[Mrtrix-discussion] RE: MrTrix MacBook Installtion
Donald Tournier
d.tournier at brain.org.au
Thu May 3 00:22:35 PDT 2012
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>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 [
> mrtrix-discussion-bounces at www.nitrc.org] on behalf of Parker, Christopher
> [christopher.parker.10 at ucl.ac.uk]
> *Sent:* 27 April 2012 15:37
> *To:* mrtrix-discussion at www.nitrc.org
> *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
>
>
--
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
More information about the Mrtrix-discussion
mailing list