Skip to content
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

Issue building NIX-MX on macOS #181

Open
vidaurre opened this issue Dec 29, 2021 · 3 comments
Open

Issue building NIX-MX on macOS #181

vidaurre opened this issue Dec 29, 2021 · 3 comments

Comments

@vidaurre
Copy link

Hi,

this is a probably a trivial issue (apologies) but I'm having troubles building NIX-MX on macOS, as per the instructions here: https://github.com/G-Node/nix-mx/blob/master/MacOSBuild.md

In particular cmake complains "No computing environment found! Install GNU Octave (or MathWorks MATLAB)."

But my Matlab is in place here: /Applications/MATLAB_R2020b.app/bin/matlab, and my PATH contains /Applications/MATLAB_R2020b.app/bin:/Applications/MATLAB_R2020b.app.
CMakeOutput.log doesn't seem to offer much useful information.

Is there any way to inform cmake of where is Matlab properly?

I'm using macOS Catalina if that's of any use.

Many thanks!!
d

@vidaurre
Copy link
Author

I see that the precompiled MEX files work for me, but maybe the question is still useful for other people with different environments..

@gicmo
Copy link
Member

gicmo commented Jan 10, 2022

Thanks for the issue report! I think it is an easy fix but updating the CMake code that detects Matlab:

FOREACH(MATVER "R2020a" "R2019b" "R2019a" "R2018b" "R2018a" "R2017b" "R2017a" "R2016b" "R2016a" "R2015b" "R2015a" "R2014b" "R2014a" "R2013b" "R2013a" "R2012b" "R2012a" "R2011b" "R2011a" "R2010b" "R2010a" "R2009b" "R2009a" "R2008b")

@jgrewe
Copy link
Member

jgrewe commented Jan 10, 2022

sorry for the delay, yes this is the reoccurring issue with the new Matlab version. See also #172
Unfortunately, I do not have a more recent version than the 2020a. If you can build it successfully with a newer version one could simply extend the line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants