How to solve Invalid MEX-file

Hello.
When I use the below code, I got this error.
Can I get an idea to solve the problem?

4 Comments

Which MacOS release are you using?
Does the code (or script used to invoke the code) try to set the DYLD_LIBRARY_PATH or LD_LIBRARY_PATH environment variable, or do you have a .bashrc or similar that sets one of those?
Kong
Kong on 14 Mar 2020
Edited: Kong on 14 Mar 2020
Thank you.
I am using a macOS.(version 10.14.6.)
Is it related to OS?
Frankly, I don't know what DYLD_LIBRARY_PATH or LD_LIBRARY_PATH is?
I attached file that I am using.
Is it different with OS?
Yes, MacOS started changing the effect of LD_LIBRARY_PATH in Sierra. You are using Catalina, which
Are you using "NuMax, a highly efficient algorithm for constructing near-isometric linear embeddings for arbitrary datasets" such as from http://people.csail.mit.edu/chinmay/resources.html ?
How can I change Catalina to LD_LIBRARY_PATH?

Sign in to comment.

 Accepted Answer

I was able to work around parts of the problem by copying libraries into appropriate places. However, I then get
Symbol not found: _mxGetDimensions_700
When I check into that, I see that the code has been compiled for 32 bit MATLAB, which has not been available on Mac for some time, and will absolutely not run on Catalina (the operating system you have.)
I have just now sent a message to the author of the program about the difficulty.

More Answers (0)

Categories

Asked:

on 14 Mar 2020

Commented:

on 14 Mar 2020

Community Treasure Hunt

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

Start Hunting!