error in mrDiffusion (VistaSoft DTI tracking Fibers)
1 回表示 (過去 30 日間)
古いコメントを表示
Dear All,
I would be grateful if you could suggest a view on the following error.
I use MatLab R2022b on MacOS Monterey 12.6.3, MacBook Pro 16.
I installed VistaSoft (Stanfor Uni, latest version) and SPM12. VistaSoft appears in order and loads correctly on dtiFiberUI command. However, when I try to load dt6.mat to start fibre tracking analysis, I get the following error:
>> dtiFiberUI
An error occurred in mrDiffusion:
Invalid MEX-file '/Users/felice/Documents/vistasoft-master/mrDiffusion/src/dtiSplitTensor.mexmaci64': dlopen(/Users/felice/Documents/vistasoft-master/mrDiffusion/src/dtiSplitTensor.mexmaci64, 0x0006): Library not loaded: '@loader_path/libmex.dylib'
Referenced from: '/Users/felice/Documents/vistasoft-master/mrDiffusion/src/dtiSplitTensor.mexmaci64'
Reason: tried: '/Users/felice/Documents/vistasoft-master/mrDiffusion/src/libmex.dylib' (no such file), '/usr/local/lib/libmex.dylib' (no such file), '/usr/lib/libmex.dylib' (no such file)
Thrown in:
/Users/felice/Documents/vistasoft-master/mrDiffusion/file/dt6/dtiLoadDt6Gui.m line 69
I tried to follow some suggestions online around installing Xcode to build the MEX-file library but I don't really understand how it works. I would be really grateful you could point me in the right direction.
many thanks,
Felice
2 件のコメント
Walter Roberson
2023 年 4 月 30 日
The 2019 MacBook Pro was their only 16" model that was offered in Intel processor; all of the newer versions were Apple Silicon chips. Is that what you are using, or are you using a later model under Rosetta 2?
回答 (1 件)
Gokul Nath S J
2023 年 4 月 21 日
Hi Felix,
Based on my understanding it seems that you faced some problem while trying to compile a mex file.
The issue is that the path "@loader_path" is no longer where "libmex.dylib" is stored in the MATLAB installation. The new path is "@rpath". The easiest fix is to recompile the MEX file in the current version of MATLAB.
If source code cannot be obtained, the following path can be manually added to the system path:
$matlabroot/bin/$arch
Further, you can refer to the following MATLAB Answers for more information.
Thanks,
Gokul Nath S J
参考
カテゴリ
Help Center および File Exchange で Troubleshooting in MATLAB Compiler SDK についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!