Why can't MEX find a supported compiler in MATLAB R2015b after I upgraded to Xcode 7.0?
来源:互联网 发布:苹果mac怎么删除照片 编辑:程序博客网 时间:2024/06/05 19:38
转自 http://www.mathworks.com/matlabcentral/answers/246507-why-can-t-mex-find-a-supported-compiler-in-matlab-r2015b-after-i-upgraded-to-xcode-7-0
By default, MATLAB R2015b does not detect Xcode 7.0. To add support for Xcode 7.0 in MATLAB R2015b, download the files attached to this article. Please follow these instructions to download and install the files (screenshots were taken in Mac OS X 10.10.5 Yosemite):
1) Download the file xcode7_mexopts.zip, which you will find attached to this article. Extract the contents of xcode7_mexopts.zip to your Downloads directory. Extracting the ZIP file will create a directory in Downloads called xcode7_mexopts.
2) Open MATLAB R2015b. Navigate to MATLAB's preference directory by typing the following command in the command window:
>> cd( prefdir );
3) Using MATLAB's "Current Folder" browser, ensure that there are no XML files that begin with "mex_" (e.g. mex_C_maci64.xml). If such files exist, remove them from the preference directory.
4) Navigate to the MATLAB directory. In MATLAB, you can do so by entering the following command at the MATLAB command prompt:
>> cd( fullfile( matlabroot, 'bin', 'maci64', 'mexopts' ) );
5) Back up the original files in the mexopts directory. You can run the following MATLAB commands to back up the files:
>> mkdir mexoptsContentsOLD>> movefile *.xml mexoptsContentsOLD/
Keep the backup separate from the downloaded files such that you can revert to the backup files if necessary.
6) Replace any files in the mexopts directory with the corresponding files in the Downloads folder, xcode7_mexopts. You can replace the files in MATLAB by entering the following command at the MATLAB command prompt:
>> movefile( '~/Downloads/xcode7_mexopts/*.xml', '.' );
7) Restart MATLAB R2015b. Execute "mex -setup" at the MATLAB command prompt as shown below and verify that MEX detects Xcode 7.0.
>> mex -setup
If MEX continues to return an error, please contact MathWorks Technical Support.
- xcode7_mexopts.zip
- Why can't MEX find a supported compiler in MATLAB R2015b after I upgraded to Xcode 7.0?
- Why can't I ...? Why won't ... work?" What to do in case of problems
- Why can't I find the object associated with the ACL that I want to delete?
- MATLAB R2015b 编译 No supported compiler or SDK was found
- Why can't I have a shorter username?
- File permissions: why can't I list a directory?
- Why can't g++ find iostream.h?
- How can I use Microsoft Visual C++ 2010 to create MEX files with MATLAB 7.10 (R2010a)?
- How can I use Microsoft Visual C++ 2010 to create MEX files with MATLAB 7.10 (R2010a)?
- Why I can't keep on going?
- go test can't find function in a same package
- Code::blocks报错Can't find compiler executable in you……
- Why Can’t I See My Tables in Oracle SQL Developer?
- No system information found in LMDB, can't find Technical system after RZ70
- Why I can’t convert my Windows Server 2012 R2 Core to GUI
- GDB:Data Formatters temporarily unavailable,will re-try after a 'continue'.(Can't find dlopen func
- Mac Matlab R2014b 解决Mex 出现No supported compiler or SDK was found的问题
- Re: Can't install nvidia devdriver in FC15 after kernel update to 2.6.40-4
- Android Handler Memory Leak
- hdu 4052 线段树扫描线、奇特处理
- Clone使用方法详解
- Android Studio安装过程以及导入eclipse工程遇到的问题
- 【JQuery】addClass()和css()
- Why can't MEX find a supported compiler in MATLAB R2015b after I upgraded to Xcode 7.0?
- leetcode_108 Convert Sorted Array to Binary Search Tree
- javaEE
- FZU 2110Star(计算几何)
- [BZOJ1477]青蛙的约会(扩欧)
- 1009
- Quadratic primes
- hdu 3308 最长连续上升区间
- GeoHash核心原理解析 附近的人算法