- Modify the 2 clang XML files in there and then both new MBUILD and new MEX will work correctly
- Modify the mbuildopts.sh file (which you have already done), set environment variable MBUILD_VERSION1 and then old MBUILD will work correctly.
mbuild -setup failed while mex -setup succeeded
1 回表示 (過去 30 日間)
古いコメントを表示
I use mac 10.11, matlab_2014b, and xCode 7.2. At first I could not run mex -setup but after I change the mac version in mexopts.sh, it succeeded. And then I also changed the mac version in mbuildopts.sh, but this time, when I ran mbuild -setup, it just failed. It says
Error using mbuild (line 164)
Unable to complete successfully.
No supported compiler or SDK was found. For options, visit
http://www.mathworks.com/support/compilers/R2014b/maci64.html.
Any help would be super appreciated!!!
0 件のコメント
回答 (1 件)
Harsheel
2016 年 1 月 21 日
Since R2014a, a new MBUILD and new MEX were shipped. It seems like you are using the old MEX (which uses mexopts.sh file) instead of the new MEX (which uses the matlabroot\bin\maci64\mexopts\clang ... xml files..2 of them).
Either you can:
setenv('MBUILD_VERSION1','1')
You need to set this variable every time MATLAB starts, so I'd keep that line of code in startup.m file.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で C Shared Library Integration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!