Trouble creating an exe file matlab compiler
1 次查看(过去 30 天)
显示 更早的评论
Hi all, i'm having trouble creating an exe file from a GUI i created in matlab 2014b. When i use deploytool i get the following errors
ant:
<ant>
<mkdir dir="C:\Users\...\MATLAB\Sphere_GUI\for_redistribution" />
<mkdir dir="C:\Users\...\MATLAB\Sphere_GUI\for_testing" />
<mkdir dir="C:\Users\...\MATLAB\Sphere_GUI\for_redistribution_files_only" />
</ant>
mcc -C -o Sphere_GUI -W WinMain:Sphere_GUI -T link:exe -d C:\Users\...\MATLAB\Sphere_GUI\for_testing -v 'C:\Users\Moz\...\Sphere GUI\Sphere_GUI.m'
Test checkout of feature 'Compiler' failed.
mcc failed.
Also
>> mbuild -setup
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/win64.html.
and
>> mex -setup
Error using mex
No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014b/win64.html.
I did install Microsoft Windows SDK 7.1 and .NET Framework 4.0.
What am i doing wrong?
2 个评论
Adam
2016-2-19
The first error is clearly telling you that it failed to find the license for the compiler.
To use mex you need a C++ compiler installed. I don't really know anything about Microsoft Windows SDK, but a quick glance online seems to suggest it supports .NET, not C++.
Walter Roberson
2016-2-19
mex should be able to detect SDK 7.1. SDK 7.1 does support compiling C and C++.
However, we need to ask which MS Windows you are using. If you are using Windows 10 then the installation of SDK 7.1 and .NET 4.0 very likely failed. If you are using Windows 8 then you would probably have had difficulty installing .NET 4.0 but my understanding is that there was a work-around to get it installed.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!