<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><pre class="gmail-"><font face="Helvetica" class="">Hello fieldtrip experts, </font></pre><pre class="gmail-"><font face="Helvetica" class="">when trying to run ‘ft_prepare_mesh’ command from fieldtrip with MATLAB R2018a, I run into the error below.</font></pre><pre class="gmail-"><font face="Helvetica" class="">I was preprocessing MRI date according with the paper ’Nature Protocol 2018; 13: 1699-1723. <a href="http://doi.org/10.1038/s41596-018-0009-6" class="">http://doi.org/10.1038/s41596-018-0009-6</a> ‘.</font></pre><pre class="gmail-"><pre class="gmail-"><font face="Helvetica" class="">I’m running this on a iMac, macOS High Sierra 10.13.6, with fieldtrip-20180909, </font><span style="font-family: Helvetica;" class="">freesurfer-Darwin-OSX-stable-pub-v6.0.0-2beb96c. </span></pre><pre class="gmail-"><font face="Helvetica" class="">From past archives, I think this is because of SIP. So </font><span class="" style="font-family: Helvetica;">I disabled SIP of OSX, but I run into same errors.</span><div class=""><font face="Helvetica" class="">I tried different subjects, which caused similar errors. </font></div></pre><div class=""><span style="font-family: Helvetica; white-space: normal;" class="">Any ideas would be greatly appreciated, thank you! </span></div></pre><pre class="gmail-"><br class=""></pre><pre class="gmail-">[CODE]</pre><pre class="gmail-">cfg = [];</pre><pre class="gmail-">cfg.method = ‘cortexhull’;</pre><pre class="gmail-">cfg.headshape = <path to freesurfer/surf/lh.pial>;</pre><pre class="gmail-">cfg.fshome = <path to freesurfer home directory>;</pre><pre class="gmail-">hull_lh = ft_prepare_mesh (cfg);</pre><pre class="gmail-"><br class=""></pre><div class="page" title="Page 12"><div class="layoutArea"><div class="column"><p class="">[ERROR]</p></div></div></div><pre class="gmail-"><font face="Helvetica" class="">dyld: lazy symbol binding failed: Symbol not found: ___emutls_get_address<br class=""></font></pre><pre class="gmail-"><font color="#000000" face="Helvetica" class="">  Referenced from: /Applications/freesurfer/bin/../lib/gcc/lib/libgomp.1.dylib
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___emutls_get_address
  Referenced from: /Applications/freesurfer/bin/../lib/gcc/lib/libgomp.1.dylib
  Expected in: /usr/lib/libSystem.B.dylib

mris_fill -c -r 1 /Users/okadometoshiki/Desktop/SubjectUCI29/freesurfer/surf/lh.pial /private/var/folders/cc/fv5fk09d3hj5g5kx7dg7pqq80000gn/T/tp0a8d7856_136c_4156_bf73_d23f64bbf687_pial.filled.mgz: Aborted
reading filled volume...
gunzip: can't stat: /private/var/folders/cc/fv5fk09d3hj5g5kx7dg7pqq80000gn/T/tp0a8d7856_136c_4156_bf73_d23f64bbf687_pial.filled.mgz (/private/var/folders/cc/fv5fk09d3hj5g5kx7dg7pqq80000gn/T/tp0a8d7856_136c_4156_bf73_d23f64bbf687_pial.filled.mgz.gz): No such file or directory
ERROR: problem reading fname</font></pre><div class="gmail-"><br class=""></div><div class="gmail-"><br class=""></div><div class="gmail-">========</div><div class="gmail-"><br class=""></div><div class="gmail-">Toshiki Okadome</div></body></html>