Download Mex compilers
43 次查看(过去 30 天)
显示 更早的评论
hello. I have found 2 very useful programs in Mathworks but i have problem for running. source of my problem is using mex and i should download sdk and visual c++ but i have problem for downloading. any advice? thanks i insulated c++ 2010 express successful(but i am not sure still!) and for sdk 7.1, i received this error “Setup could not find the file WinSDK_amd64\WinSDK_amd64.msi at any of the specified source locations” but without fixing it, i tried again and i received this error twice Installation of the "Microsoft Windows SDK XXXXXX" product has reported the following error: Fatal error during finally it wrote it has complete. but when i want use it mex -setup
Welcome to mex -setup. This utility will help you set up a default compiler. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2011a/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? n
Select a compiler: [1] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [2] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [3] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker) [4] Microsoft Visual C++ 2005 SP1 [5] Microsoft Visual C++ 2008 SP1 [6] Microsoft Visual C++ 2010 [7] Microsoft Visual C++ 2010 Express
[0] None
Compiler: 7
Your machine has a Microsoft Visual C++ 2010 Express compiler located at C:\Program Files (x86)\Microsoft Visual Studio 10.0. Do you want to use this compiler [y]/n? y
Please verify your choices:
Compiler: Microsoft Visual C++ 2010 Express Location: C:\Program Files (x86)\Microsoft Visual Studio 10.0
Are these correct [y]/n? y
************************************************************************* Warning: MEX-files generated using Microsoft Visual C++ 2010 require that Microsoft Visual Studio 2010 run-time libraries be available on the computer they are run on. If you plan to redistribute your MEX-files to other MATLAB users, be sure that they have the run-time libraries. *************************************************************************
Trying to update options file: C:\Users\rayan negar\AppData\Roaming\MathWorks\MATLAB\R2011a\mexopts.bat From template: C:\PROGRA~1\MATLAB\R2011a\bin\win64\mexopts\msvc100freeopts.bat
Done . . .
************************************************************************ 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/support/solutions/en/data/1-5C27B9/?solution=1-5C27B9 Building with the -largeArrayDims option enables the new API. ************************************************************************
>> mex eig3volume.c Error: Could not find the compiler "cl" on the DOS path. Use mex -setup to configure your environment properly.
C:\PROGRA~1\MATLAB\R2011A\BIN\MEX.PL: Error: Unable to locate compiler.
??? Error using ==> mex at 208 Unable to complete successfully.
1 个评论
Jan
2011-12-1
It would be possible to answer, if you explain, what kind of problems occur at downloading the SDK and MSVC. Please insert these information by editing your question.
If you only want to compile the MEX-files, it is enough to install the SDK - the version depends on the Matlab release you are using.
回答(3 个)
Jan
2011-12-2
Of course you have to install at least the SDK successfully, before you can use it. I do not understand what exactly happens, but it seems, like the installation has failed. Then you have to try it again.
0 个评论
yaseen shaikh
2018-11-7
编辑:yaseen shaikh
2018-11-7
Error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014a/win64.
Error in install_STB>compile_CVM (line 229) eval(mex_cmd);
Error in install_STB (line 44) compile_CVM(mexcompiler,stb,sun,par);
in windows 8.1 64bit OS trying to install the Sundails 3.2.1
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!