error in mrDiffusion (VistaSoft DTI tracking Fibers)
2 次查看(过去 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!