error in mrDiffusion (VistaSoft DTI tracking Fibers)

1 visualización (últimos 30 días)
Felix
Felix el 9 de Abr. de 2023
Comentada: Felix el 30 de Abr. de 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,
Felice
  2 comentarios
Walter Roberson
Walter Roberson el 30 de Abr. de 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
Felix el 30 de Abr. de 2023
Hi, is a 2.3 GHz 8-Core Intel Core i9

Iniciar sesión para comentar.

Respuestas (1)

Gokul Nath S J
Gokul Nath S J el 21 de Abr. de 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:
$matlabroot/bin/$arch
Further, you can refer to the following MATLAB Answers for more information.
Thanks,
Gokul Nath S J
  1 comentario
Felix
Felix el 30 de Abr. de 2023
Hi thanks for taking the time to answer my query.
To start with, how do I manually add a such path?
Felice

Iniciar sesión para comentar.

Categorías

Más información sobre Troubleshooting in MATLAB Compiler SDK en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by