<p dir="ltr">Hi Stephan,</p>
<p dir="ltr">Sounds like your compiler is stricter than most... Can I ask what version of g++ you&#39;re running (g++ --version), and if this is the latest version of macosx? Is this version of g++ the standard one that was installed along with xcode? </p>

<p dir="ltr">The reason I ask is that solving this problem is going to require some changes to the code. I wanted to know whether this is specific to your installation, or whether a lot of users will soon be affected by the same problem...</p>

<p dir="ltr">I&#39;ll start making the required changes in the meantime. </p>
<p dir="ltr">Cheers,<br>
Donald.<br></p>
<p dir="ltr">--<br>
Dr J-Donald Tournier (PhD)</p>
<p dir="ltr">Senior Lecturer, Biomedical Engineering<br>
Division of Imaging Sciences &amp; Biomedical Engineering<br>
King&#39;s College London</p>
<p dir="ltr">A: Department of Perinatal Imaging &amp; Health, 1st Floor South Wing, St Thomas&#39; Hospital, London. SE1 7EH<br>
T: +44 (0)20 7188 7118 ext 53613<br>
W: <a href="http://www.kcl.ac.uk/medicine/research/divisions/imaging/departments/biomedengineering">http://www.kcl.ac.uk/medicine/research/divisions/imaging/departments/biomedengineering</a><br>
    </p>
<div class="gmail_quote">On 4 Oct 2013 15:20,  &lt;<a href="mailto:s070439@student.dtu.dk">s070439@student.dtu.dk</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I have some problems at &quot;The compilation step&quot; and &quot;Installation of<br>
executables&quot; step. Could you possibly help?<br>
<br>
In Installing dependencies step:<br>
First I tried installing dependencies with MacPorts (recommended) method<br>
as on <a href="http://www.brain.org.au/software/mrtrix/install/macosx.html" target="_blank">http://www.brain.org.au/software/mrtrix/install/macosx.html</a>, but it<br>
failed.<br>
<br>
So I tried Homebrew method and succeeded in Get and build the<br>
dependencies, i.e.<br>
when I typed in &quot;brew install python glib gtk+ glibmm gtkmm gtkglext gsl&quot;.<br>
I got:<br>
Warning: python-2.7.5 already installed<br>
Warning: glib-2.38.0 already installed<br>
Warning: gtk+-2.24.21 already installed<br>
Warning: glibmm-2.36.2 already installed<br>
Warning: gtkmm-2.24.4 already installed<br>
Warning: gtkglext-1.2.0 already installed<br>
Warning: gsl-1.16 already installed<br>
<br>
In Compile MRtrix step:<br>
1. $ cd /Users/Stephan/Documents/MSc_Thesis/mrtrix-0.2.11<br>
2. then when I tried: &quot;./build&quot;<br>
and I got:<br>
-bash: ./build: /usr/bin/python2: bad interpreter: No such file or directory<br>
<br>
so I tried: &quot;python2.7 ./build&quot; and got:<br>
Package xcb-shm was not found in the pkg-config search path.<br>
Perhaps you should add the directory containing `xcb-shm.pc&#39;<br>
to the PKG_CONFIG_PATH environment variable<br>
Package &#39;xcb-shm&#39;, required by &#39;cairo&#39;, not found<br>
WARNING: unable to find gtkmm-2.4 configuration<br>
Package xcb-shm was not found in the pkg-config search path.<br>
Perhaps you should add the directory containing `xcb-shm.pc&#39;<br>
to the PKG_CONFIG_PATH environment variable<br>
Package &#39;xcb-shm&#39;, required by &#39;cairo&#39;, not found<br>
WARNING: unable to find gtkmm-2.4 configuration<br>
Traceback (most recent call last):<br>
  File &quot;./build&quot;, line 980, in &lt;module&gt;<br>
  Â  [ Entry(item) for item in targets ]<br>
  File &quot;./build&quot;, line 253, in __init__<br>
  Â  [ Entry(item) for item in self.deps ]<br>
  File &quot;./build&quot;, line 250, in __init__<br>
  Â  elif is_object (<a href="http://self.name" target="_blank">self.name</a>): self.set_object()<br>
  File &quot;./build&quot;, line 305, in set_object<br>
  Â  &#39;$src$&#39;: [ cc_file ] })<br>
  File &quot;./build&quot;, line 379, in fillin<br>
  Â  if item in keyvalue: cmd += keyvalue[item]<br>
TypeError: &#39;NoneType&#39; object is not iterable<br>
<br>
So, I read some discussions on your forum and tried:<br>
i. export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig<br>
ii. python2.7 ./build<br>
and I got:<br>
[CC] cmd/gen_ROI.o[CC] cmd/mradd.o<br>
<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 -O2 -D_REENTRANT<br>
-I/usr/local/Cellar/glibmm/2.36.2/include/glibmm-2.4<br>
-I/usr/local/Cellar/glibmm/2.36.2/lib/glibmm-2.4/include<br>
-I/usr/local/Cellar/libsigc++/2.2.11/include/sigc++-2.0<br>
-I/usr/local/Cellar/libsigc++/2.2.11/lib/sigc++-2.0/include<br>
-I/usr/local/Cellar/glib/2.38.0/include/glib-2.0<br>
-I/usr/local/Cellar/glib/2.38.0/lib/glib-2.0/include<br>
-I/usr/local/opt/gettext/include -Ilib -Isrc cmd/gen_ROI.cpp -o<br>
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>
ERROR: [CC] cmd/mradd.o<br>
<br>
g++ -c -Wall -mtune=native -fPIC -fno-strict-aliasing<br>
-DGL_GLEXT_PROTOTYPES -DUSE_TR1 -O2 -D_REENTRANT<br>
-I/usr/local/Cellar/glibmm/2.36.2/include/glibmm-2.4<br>
-I/usr/local/Cellar/glibmm/2.36.2/lib/glibmm-2.4/include<br>
-I/usr/local/Cellar/libsigc++/2.2.11/include/sigc++-2.0<br>
-I/usr/local/Cellar/libsigc++/2.2.11/lib/sigc++-2.0/include<br>
-I/usr/local/Cellar/glib/2.38.0/include/glib-2.0<br>
-I/usr/local/Cellar/glib/2.38.0/lib/glib-2.0/include<br>
-I/usr/local/opt/gettext/include -Ilib -Isrc cmd/mradd.cpp -o cmd/mradd.o<br>
<br>
failed with output:<br>
<br>
cmd/mradd.cpp:56:27: error: variable length array of non-POD element type<br>
&#39;RefPtr&lt;Image::Object&gt;&#39;<br>
  RefPtr&lt;Image::Object&gt; in[num_images];<br>
  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  ^<br>
1 error generated.<br>
<br>
STOP<br>
<br>
I also tried:<br>
1. export PATH=/Users/Stephan/Documents/MSc_Thesis/mrtrix-0.2.11/bin:$PATH<br>
2. export<br>
LD_LIBRARY_PATH=/Users/Stephan/Documents/MSc_Thesis/mrtrix-0.2.11/lib<br>
3. python2.7 ./build install<br>
and I got:<br>
installing executables to &quot;/usr/local/mrtrix/bin&quot; and dynamic library to<br>
&quot;/usr/local/mrtrix/lib&quot;...<br>
Traceback (most recent call last):<br>
  File &quot;./build&quot;, line 925, in &lt;module&gt;<br>
  Â  apply_recursive (install, os.path.join (lib_dir, libname),<br>
os.path.join (dest_lib, libname))<br>
  File &quot;./build&quot;, line 747, in apply_recursive<br>
  Â  action (source, destination)<br>
  File &quot;./build&quot;, line 764, in install<br>
  Â  shutil.copy (source, destination)<br>
  File<br>
&quot;/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py&quot;,<br>
line 116, in copy<br>
  Â  copyfile(src, dst)<br>
  File<br>
&quot;/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py&quot;,<br>
line 81, in copyfile<br>
  Â  with open(src, &#39;rb&#39;) as fsrc:<br>
IOError: [Errno 2] No such file or directory: &#39;lib/libmrtrix-0_2_11.dylib&#39;<br>
<br>
Best,<br>
Stephan<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>