How to run matcont in Mac computer
23 ビュー (過去 30 日間)
古いコメントを表示
I'm using a Mac computer, and I installed Matlab R2013a, also downloaded the latest matcont profile, but it just cannot run the matcont. Is there anyone who has the same situation likes me? I really hope I could get a help here! I appreciate. Thank you!
4 件のコメント
AA
2013 年 12 月 20 日
AndreaS- could you please help me. I followed the link you suggested and went through all the steps: I have Xcode 5.0.2 and MATLAB R2013b on my new MacBook Air with OS X Mavericks (10.9.1). After I went through the steps outlined in the above link and then select the matcont directory and type in: matcont in the command line I get: Undefined function or variable 'matcont'!!!!!!! please could you tell me what exactly you did to get it to work? I have never used matlab or matcont on a mac and this is the first time I'm using a Mac too.
回答 (4 件)
Rich
2013 年 10 月 26 日
I'm having the same problem. I'm trying to install MatCont (5p3) build on my iMac running OS X Mavericks. I have Xcode installed correctly but when I run the 'init.m' file in the MatCont package I get the following error in the command window:
EDU>> init xcodebuild: error: SDK "macosx10.7" cannot be located. xcrun: error: unable to find utility "clang", not a developer tool or in PATH
mex: compile of ' "BVP_LC_jac.c"' failed.
Error using mex (line 206) Unable to complete successfully.
Error in init (line 35) mex -largeArrayDims -O BVP_LC_jac.c;
It looks as if the MatCont package is looking for a specific Xcode build "macosx10.7".
0 件のコメント
Wouter
2013 年 11 月 1 日
Did you try to open the new Xcode already in order to download the required compiling/sdk tools? I had to do that in order before being able to compile anything.
0 件のコメント
AndreaS
2013 年 11 月 11 日
編集済み: AndreaS
2013 年 11 月 11 日
I am having the same problem. I recently upgraded to OSX 10.9 Mavericks, I'm using Matlab R2013a on an iMac. It's a trial version, but according to the mathworks help desk it shouldn't matter. What is the new Xcode - do I need to download some additional software to use the MATCONT package in Matlab?
Below are the error messages that I am getting when trying to use MATCONT:
Trial>> mex -setup
Options files control which compiler to use, the compiler and link command
options, and the runtime libraries to link against.
Using the 'mex -setup' command selects an options file that is
placed in /Users/abruder/.matlab/R2013a and used by default for 'mex'. An options
file in the current working directory or specified on the command line
overrides the default options file in /Users/abruder/.matlab/R2013a.
To override the default options file, use the 'mex -f' command
(see 'mex -help' for more information).
The options files available for mex are:
1: /Applications/MATLAB_R2013a.app/bin/mexopts.sh :
Template Options file for building MEX-files
0: Exit with no changes
Enter the number of the compiler (0-1): 1
Overwrite /Users/abruder/.matlab/R2013a/mexopts.sh ([y]/n)? y
/Applications/MATLAB_R2013a.app/bin/mexopts.sh is being copied to /Users/abruder/.matlab/R2013a/mexopts.sh
************************************************************************ Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. In the near future you will be required to update your code to utilize the new API. You can find more information about this at: http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html Building with the -largeArrayDims option enables the new API. ************************************************************************
Trial>> matcont xcrun: error: SDK "macosx10.7" cannot be located clang: warning: no such sysroot directory: '-mmacosx-version-min=10.7' BVP_LC_jac.c:10:9: fatal error: 'math.h' file not found #include<math.h> ^ 1 error generated.
mex: compile of ' "BVP_LC_jac.c"' failed.
Error using mex (line 206) Unable to complete successfully.
Error in matcont (line 61) mex -largeArrayDims -O BVP_LC_jac.c;
Trial>>
0 件のコメント
AndreaS
2013 年 11 月 12 日
After installing Xcode, the error message changes slightly, but the problem persists:
Trial>> mex -setup
Options files control which compiler to use, the compiler and link command
options, and the runtime libraries to link against.
Using the 'mex -setup' command selects an options file that is
placed in /Users/abruder/.matlab/R2013a and used by default for 'mex'. An options
file in the current working directory or specified on the command line
overrides the default options file in /Users/abruder/.matlab/R2013a.
To override the default options file, use the 'mex -f' command
(see 'mex -help' for more information).
The options files available for mex are:
1: /Applications/MATLAB_R2013a.app/bin/mexopts.sh :
Template Options file for building MEX-files
0: Exit with no changes
Enter the number of the compiler (0-1): 1
Overwrite /Users/abruder/.matlab/R2013a/mexopts.sh ([y]/n)? y
/Applications/MATLAB_R2013a.app/bin/mexopts.sh is being copied to /Users/abruder/.matlab/R2013a/mexopts.sh
************************************************************************ Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. In the near future you will be required to update your code to utilize the new API. You can find more information about this at: http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html Building with the -largeArrayDims option enables the new API. ************************************************************************
Trial>> matcont xcodebuild: error: SDK "macosx10.7" cannot be located. xcrun: error: unable to find utility "clang", not a developer tool or in PATH
mex: compile of ' "BVP_LC_jac.c"' failed.
Error using mex (line 206) Unable to complete successfully.
Error in matcont (line 61) mex -largeArrayDims -O BVP_LC_jac.c;
Trial>>
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Troubleshooting in MATLAB Compiler SDK についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!