LeoSvenningsson / TensorViewforMatlab

A tool to visualize tensors and molecules
5 stars 2 forks source link

TensorView for matlab macos intel #3

Open jp78fr opened 5 months ago

jp78fr commented 5 months ago

Hi, I installed the matlab runtime in the default directory proposed by the installer: /Applications/MATLAB/MATLAB_Runtime/R2024a/

When I run tensorview for mac, I get the following error:

Cannot locate a valid install area applauncher cannot locate a valid install area. If a MATLAB Runtime is not in the default location, then you must establish a valid install area by using the system preferences panel.

although LD_LIBRARY_PATH and DYLIB_LIBRARY_PATH are initialized in my .zshrc with the PATH of the runtime as indicated at the time of the installation.

Do you have any idea of a solution?

Best regards, jean-Pierre

LeoSvenningsson commented 5 months ago

I dont have a direct idea at the moment. But i will look into it and see if there is a fix. I compiled that version on an M2 chip mac. It could be related to that, but i dont have an intel mac with matlab to compare to at the moment. Another option is trying the 2022 compiler. But i have to read into the details.

LeoSvenningsson commented 5 months ago

So i found this thread: https://se.mathworks.com/matlabcentral/answers/2029739-can-i-use-matlab-runtime-for-native-apple-silicon-and-intel-both-on-the-same-machine

It indicates that there is a difference between the intel runtime and the apple silicon runtime. Since i compiled it on apple silicon, i think you need to use the apple silicon runtime. But i don't know if that works for an intel mac, could you try? On an apple silicon it seems like both runtimes works and can even be installed at the same time, though they need to be in different folders.

jp78fr commented 5 months ago

I've tried several combinations. The Apple Silicon version of the runtime doesn't install on Intel. On Apple Silicon, it is possible that the intel version works in emulation. Thank you very much for your work.

LeoSvenningsson commented 5 months ago

I think we narrowed down where the error comes from at least. I can try to get matlab on my apple silicon and see if i can compile it for intel. But it could take some time, but i will get matlab from my new work eventually. I need to update the app with the latest patch anyhow.

jp78fr commented 5 months ago

Thank you very much