Is this a missing file or just another Apple mex issue? #2106
Replies: 10 comments 17 replies
-
Hi Zach, if you run mex_install (or For now, either you could try to find a way to pass -Wno-error as a compiler flag and build a nice intel mac binary (which could then also be distributed), or find a way to use a real gcc (https://github.com/danfortunato/matlab-gcc) which seems also to be more forgiving with the warning, or maybe the person who build the arm macos binary could help out since the same issue persited there as well. An unsatisfying workaround would be to use a different voronoi method (see mtex_settings), however this way you wouldn't benefit from the up to 20x speedup in grain computation. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hi all, Thanks for the suggestions! Update: I used a fresh homebrew install of gcc and set it to be used in Matlab (as mentioned in the link provided by Rüdiger). Using this setup, I am able to "successfully" complete the MTEX startup for 5.11.1. Even after I get the jcvoronoi_mex file compiled with gcc and MTEX 5.11.1 starts without errors, any attempt to construct grains gives an error that the mex file (jcvoronoi_mex.mexmaci64) is invalid and throws errors about "missing" files (i.e., libMatlabEngine.dylib) that are not missing (confirmed they are present in the indicated folder)... and it all seems [from some limited internet searching] perhaps related to the scattered and mismatched state of support in Matlab for the latest Apple silicon. But I am speculating and don't know what I am talking about. In the end, I achieved an error-free-startup MTEX 5.11.1 fairly easily, but the installation did not work properly. Not sure what to modify for a better result, but I'm open to any suggestions. |
Beta Was this translation helpful? Give feedback.
-
I have an ARM Mac for the last 6 months — and I have been using 2023b without trouble (for intel I believe?). I have tried to install MTEX 5.11.1 on both the 2023b and 2024a (for ARM but with Rosetta?), and had no luck with either. For now, I’m continuing on 2023b because 5.10.x runs great on it, but I cannot get either to build correctly for 2024a.Cheers,ZachOn Apr 2, 2024, at 12:43 AM, Rüdiger Kilian ***@***.***> wrote:
Hi Zach,
just to be sure. You are using an intel mac, not an arm mac with a an intel matlab, right?
Cheers,
Rüdiger
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Sorry, I mistakingly put some ChatGPT prompts here... 😅 deleted |
Beta Was this translation helpful? Give feedback.
-
Hi, MTEX Toolbox group –
I’m Lisa Kempler from MathWorks.
@tijmen – If you believe your error may be related your MEX-file (.mex) implementation and your debugging efforts aren’t getting you to a resolution, consider contacting MathWorks technical support:
***@***.******@***.***>.
I recognize this is C++ code, but worth a try, especially if you believe the problem maybe be related to the MATLAB to C++ interface.
@zachary Michels - Is this related to your original issue with this? Is that resolved?
I’ll look for a post from you if it gets resolved in the meantime.
Lisa
From: Tijmen Vermeij ***@***.***>
Sent: Wednesday, April 17, 2024 6:11 AM
To: mtex-toolbox/mtex ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [mtex-toolbox/mtex] Is this a missing file or just another Apple mex issue? (Discussion #2106)
I'm going to put the c++ code and the include file below, please check if there any potential error sources, especially related to "type casting":
|
Beta Was this translation helpful? Give feedback.
-
Did you report this to MathWorks technical support? ***@***.*** and @adam Creuziger)
From: Zachary Michels ***@***.***>
Sent: Tuesday, April 23, 2024 11:19 AM
To: mtex-toolbox/mtex ***@***.***>
Cc: Lisa Kempler ***@***.***>; Comment ***@***.***>
Subject: Re: [mtex-toolbox/mtex] Is this a missing file or just another Apple mex issue? (Discussion #2106)
Yeah. I thought it was rough getting students setup before, but now none of my students (or myself) can get 5.11.x working (no configuration of Matlab versions + alternative compilers + different mex files are working for us), so we are planning to just keep using 5.10.x (at least we've got a system of functional workarounds for installing 5.10.x versions) until something readily installable comes along.
—
Reply to this email directly, view it on GitHub<#2106 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADCNSXNHDPII24KZYXLN6RDY6Z3UNAVCNFSM6AAAAABFQDO2ECVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TEMBSGM4DS>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi Zach,
I'm currently working on MTEX 5.11.2 which will ship with new Mac binaries
and more checks. I will let you know when it is ready.
Ralf.
…On Tue, 23 Apr 2024 at 18:23, Zachary Michels ***@***.***> wrote:
Rüdiger,
That's correct. I'm not claiming it's undoable by any means, but we
haven't sorted out how to get it working. I'm not crushed by this as we are
getting along fine with 5.10.x for now. It's only 3 students, and they're
doing fairly routine stuff. I mainly wanted it for the faster grain
construction... but usually I just do that once and save the data, so it's
no problem.
—
Reply to this email directly, view it on GitHub
<#2106 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACBYJ2MH2BJ2UFHRJNYO5C3Y62DG5AVCNFSM6AAAAABFQDO2ECVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TEMBTGE3DG>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
MTEX 5.11.2 is out and ready for testing https://github.com/mtex-toolbox/mtex/releases/download/mtex-5.11.2/mtex-5.11.2.zip There is no automatic check at startup. You may want to type check_mex to get a detailed overview about which mex files are working and which not. mex_install force to recompile the mex-files on your own computer. Any feedback is appreciated. |
Beta Was this translation helpful? Give feedback.
-
Well, it installed without error for me, which is great! Thank you! |
Beta Was this translation helpful? Give feedback.
-
I just downloaded the 5.11 mtex (https://github.com/mtex-toolbox/mtex/releases/download/mtex-5.11.1/mtex-5.11.1.zip) and went to install on my Apple laptop. I am familiar with a number of install issues and workarounds regarding the mex files, their compilation, and installation. When I run this latest startup_mtex, all of the present mex files compile, but I get the following error about a missing file:
Is this in-fact an error due to a file that is missing from the install folder? Or is it just some new artifact of the Apple+mex+MTEX installation nightmare?
Thanks for any info or thoughts.
Cheers,
Zach
Beta Was this translation helpful? Give feedback.
All reactions