<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:14px">Hi Michael,</span><div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">I think that problem was identified recently and fixed in the code repository - although it hasn&#39;t been pushed out for general release at this point. If you want to give it a try, you&#39;ll need subversion, and you can get the source from here: <a href="https://code.google.com/p/mrtrix/source/checkout" target="_blank">https://code.google.com/p/mrtrix/source/checkout</a></div>
<div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">Let me know if that doesn&#39;t work, it&#39;s probably not too much work to fix it.</div><div style="font-family:arial,sans-serif;font-size:14px">
<br></div><div style="font-family:arial,sans-serif;font-size:14px">Cheers,</div><div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">Donald.</div><div class="" style="font-family:arial,sans-serif;font-size:14px">
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 14 January 2014 17:01, Michael Schirner <span dir="ltr">&lt;<a href="mailto:m.schirner@fu-berlin.de" target="_blank">m.schirner@fu-berlin.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
it seems like the clang compiler shipped with newer versions of XCode is<br>
too restrictive and doesn&#39;t allow variable length arrays of non-POD<br>
element type.<br>
Upon running ./build I get the following messages:<br>
<br>
mrtrix-0.2.11$ ./build<br>
[CC] cmd/dir2amp.o<br>
 [CC] lib/file/dicom/quick_scan.o<br>
[CC] cmd/streamtrack.o<br>
[CC] lib/file/dicom/study.o<br>
[CC] cmd/gen_unit_warp.o<br>
[CC] src/dwi/tractography/tracker/sd_prob.o<br>
[CC] cmd/import_tracks.o<br>
 [CC] src/dwi/tractography/tracker/base.o<br>
[CC] src/mrview/sidebar/orientation_plot.o<br>
 [CC] lib/file/dicom/patient.o<br>
[CC] lib/image/header.o<br>
[CC] cmd/mrabs.o<br>
[CC] src/mrview/sidebar/overlay.o<br>
[CC] src/mrview/dialog/opengl.o<br>
[CC] cmd/gendir.o<br>
[CC] src/mrview/sidebar/screen_capture.o<br>
[CC] src/dwi/tractography/file.o<br>
[CC] src/dwi/SH.o<br>
[CC] cmd/tensor2ADC.o<br>
[CC] lib/image/format/mri.o<br>
[CC] cmd/dwi2tensor.o<br>
[CC] src/mrview/sidebar/tractography.o<br>
[CC] src/mrview/display_area.o<br>
[CC] src/icon.o<br>
[CC] src/mrview/image.o<br>
[CC] lib/math/vector.o<br>
[CC] src/mrview/mode/base.o<br>
[CC] lib/image/format/list.o<br>
[CC] lib/image/format/xds.o<br>
[CC] src/mrview/texture.o<br>
[CC] lib/file/dicom/dict.o<br>
[CC] src/histogram.o<br>
[CC] lib/image/axis.o<br>
[CC] lib/file/dicom/series.o<br>
[CC] src/mrview/sidebar/tractography/track_list.o<br>
[CC] src/mrview/slice.o<br>
[CC] cmd/disp_profile.o<br>
[CC] lib/file/dicom/mapper.o<br>
[CC] cmd/resample_tracks.o<br>
[CC] lib/file/dicom/select_cmdline.o<br>
[CC] cmd/tracks2prob.o<br>
[CC] lib/image/object.o<br>
[CC] src/mrview/dialog/error.o<br>
[CC] cmd/dwi2SH.o<br>
[CC] lib/image/name_parser.o<br>
[CC] src/dwi/sdeconv/constrained.o<br>
[CC] lib/math/matrix.o<br>
[CC] lib/file/key_value.o<br>
STDERR: [CC] lib/image/name_parser.o<br>
lib/image/name_parser.cpp:35:19: warning: unused function &#39;is_seq_char&#39;<br>
[-Wunused-function]<br>
      inline bool is_seq_char (gchar c) { return (g_ascii_isdigit (c) || c<br>
== &#39;,&#39; || c == &#39;:&#39; || c == &#39;%&#39;); }<br>
                  ^<br>
lib/image/name_parser.cpp:37:18: warning: unused function &#39;last_bracket&#39;<br>
[-Wunused-function]<br>
      inline int last_bracket (const String&amp; str, int from, gchar c)<br>
                 ^<br>
2 warnings generated.<br>
<br>
[CC] cmd/mrtransform.o<br>
[CC] src/dwi/gradient.o<br>
[CC] cmd/gen_ROI.o<br>
<br>
ERROR: [CC] cmd/gen_ROI.o<br>
<br>
g++ -c -Wall -mtune=native -fPIC -fno-strict-aliasing<br>
-DGL_GLEXT_PROTOTYPES -DUSE_TR1 -I/opt/local/include -O2 -D_REENTRANT<br>
-I/opt/local/include/glibmm-2.4 -I/opt/local/lib/glibmm-2.4/include<br>
-I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include<br>
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include<br>
-I/opt/local/include -Ilib -Isrc cmd/gen_ROI.cpp -o cmd/gen_ROI.o<br>
<br>
failed with output:<br>
<br>
cmd/gen_ROI.cpp:89:23: error: variable length array of non-POD element<br>
type &#39;std::vector&lt;int&gt;&#39;<br>
  std::vector&lt;int&gt; pos[in_obj.ndim()];<br>
                      ^<br>
1 error generated.<br>
<br>
STOP<br>
<br>
<br>
Is there any workaround for that problem?<br>
<br>
Thanks,<br>
Michael<br>
<br>
<br>
<br>
<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><b><font color="#990000">Dr J-Donald Tournier (PhD)</font></b><br><div><font color="#990000"><br></font></div><i><font color="#990000">Senior Lecturer, </font></i><i><font color="#990000">Biomedical Engineering</font></i><div>
<i><font color="#990000">Division of Imaging Sciences &amp; Biomedical Engineering<br>King&#39;s College London</font></i><div><i><font color="#990000"><br></font></i></div><div><i><font color="#990000"><b style="font-family:Calibri,sans-serif;font-size:15px"><span style="font-size:10pt">A:</span></b><span style="font-family:Calibri,sans-serif;font-size:10pt"> Department of Perinatal Imaging &amp; Health, 1<sup>st</sup> Floor South Wing, St Thomas&#39; Hospital, London. SE1 7EH</span><br>
</font></i></div><div><i><font color="#990000"><b>T:</b> +44 (0)20 7188 7118 ext 53613</font></i></div></div><div><i><font color="#990000"><b>W:</b> <a href="http://www.kcl.ac.uk/medicine/research/divisions/imaging/departments/biomedengineering" target="_blank">http://www.kcl.ac.uk/medicine/research/divisions/imaging/departments/biomedengineering</a></font></i><br>
</div></div>
</div>