Filter löschen
Filter löschen

error in mrDiffusion (VistaSoft DTI tracking Fibers)

3 Ansichten (letzte 30 Tage)
Felix am 9 Apr. 2023
Kommentiert: Felix am 30 Apr. 2023
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,
  2 Kommentare
Walter Roberson
Walter Roberson am 30 Apr. 2023
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 am 30 Apr. 2023
Hi, is a 2.3 GHz 8-Core Intel Core i9

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Gokul Nath S J
Gokul Nath S J am 21 Apr. 2023
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:
Further, you can refer to the following MATLAB Answers for more information.
Gokul Nath S J
  1 Kommentar
Felix am 30 Apr. 2023
Hi thanks for taking the time to answer my query.
To start with, how do I manually add a such path?

Melden Sie sich an, um zu kommentieren.


Mehr zu C Shared Library Integration finden Sie in Help Center und File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by