-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with M1 chip #8
Comments
Hi! I suppose you met the error when compiling the code. Could you provide more details like a screenshot? |
Hi, thank you for replying! Attached please find all the information I have when compiling the codes. Thanks! Warning Messages when compiling the codes in the terminal: weizhilin@Tobys-MacBook-Air src % make debug Error when run example1 in the MATLAB Error using loadlibrary Error in geodesic_new_mesh (line 9) Error in example1 (line 13) Caused by: |
Looks like you have finished: cd src
make debug
cp ./geodesic_debug.so ../matlab/ Can you try: cd src
make example0
./example0.out hedgehog_mesh.txt 3 14 It is highly possible to be a matlab issue if |
Hi, thanks again for your reply. I run the codes. It finished smoothly in
the terminal. But when I tried Example1 in the matlab. It gave me the same
error.
…On Thu, May 19, 2022 at 10:54 PM Zishun Liu ***@***.***> wrote:
Looks like you have finished:
cd src
make debug
cp ./geodesic_debug.so ../matlab/
Can you try:
cd src
make example0
./example0.out hedgehog_mesh.txt 3 14
It is highly possible to be a matlab issue if example0 exits successfully.
—
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/zishun/geodesic_matlab/issues/8*issuecomment-1132502170__;Iw!!LIr3w8kk_Xxm!pJ4aZ7cdGRjFbZ1ujBj5DfhD0fHCSTin60os2AlqRbqZPzJQ07ha93LLdC7YD6-AplqVUjiwISd7-heTorL14bqA$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AN3JERQHDQKDM6IYUUB5PKLVK4SJNANCNFSM5WOFDMLQ__;!!LIr3w8kk_Xxm!pJ4aZ7cdGRjFbZ1ujBj5DfhD0fHCSTin60os2AlqRbqZPzJQ07ha93LLdC7YD6-AplqVUjiwISd7-heTogabybhZ$>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I see. I think the problem happens inside
Good luck with your work! |
I was having the same problem. What happens is that when we compile on M1, we get an arm64 binary, but currently (as of 2023a), Matlab is still x86_64 (even when we install on Apple Silicon). The workaround, therefore, is to compile in an old Intel Mac, then transfer the geodesic_debug.so file to the newer M1 Mac. I just did that and it worked. If it helps, I'm attaching the file here (gzipped; use at your own risk). |
Hi, thank you very much for the wonderful solutions on the geodesic distance computation toolbox. It works with windows and old macOS perfectly. However, I encountered issues with new Apple model with M1 chip. The error was:
"... (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), ..."
I would appreciate it sincerely if you can help with this issue. Many thanks!
The text was updated successfully, but these errors were encountered: