How to run matcont in Mac computer
    조회 수: 14 (최근 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에서 C Shared Library Integration에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!