error in mrDiffusion (VistaSoft DTI tracking Fibers)

조회 수: 2 (최근 30일)
Felix
Felix 2023년 4월 9일
댓글: Felix 2023년 4월 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
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?
Felix
Felix 2023년 4월 30일
Hi, is a 2.3 GHz 8-Core Intel Core i9

댓글을 달려면 로그인하십시오.

답변 (1개)

Gokul Nath S J
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
  댓글 수: 1
Felix
Felix 2023년 4월 30일
Hi thanks for taking the time to answer my query.
To start with, how do I manually add a such path?
Felice

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by