Problem in "mbuild -setup" and configuration

조회 수: 1 (최근 30일)
Mani Ahmadian
Mani Ahmadian 2014년 10월 26일
댓글: Geoff Hayes 2014년 10월 27일
Hi, I'm master in VB.Net programming and now, I want to integrate MATLAB in VB.Net by use of my dll files converted from my m-files.
I use MATLAB 2014a x86(32 bit) in my PC and MATLAB 2014 x64(64 bit) in my laptop and visual studio 2010 ultimate x86 on both systems.
When I run command "mbuild -setup" to configure my PC I receive an error message as:
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/R2014a/win32.
I use this command to check my license:
>> computer
ans =
PCWIN
>> license('checkout','Compiler')
ans =
1
I'm sure I have installed Visual Studio on my PC and I don't understand the reason of this error message.
I have the same problem on my laptop, too.
Would you please guide me to solve the issue?
Thanks a lot
Mani
  댓글 수: 3
Mani Ahmadian
Mani Ahmadian 2014년 10월 27일
편집: Mani Ahmadian 2014년 10월 27일
Hi, | Installed Microsoft Visual C++ 2010 Professional and configured it by use of "mbuild -setup" command as bellow:
>> mbuild -setup
MBUILD configured to use 'Microsoft Visual C++ 2010 Professional (C)' for C language compilation.
To choose a different language, select one from the following:
mex -setup C++ -client MBUILD
mex -setup FORTRAN -client MBUILD
Now I'm trying to create dll files by use of APPS > Library Compiler. After complete all fields, and click package button, I receive error message as bellow, too:
ant:
<ant>
<mkdir dir="C:\Documents and Settings\My Documents\MATLAB\test3\for_redistribution" />
<mkdir dir="C:\Documents and Settings\My Documents\MATLAB\test3\for_testing" />
</ant>
mcc -W 'dotnet:test3,Class1,0.0,private' -T link:lib -d 'C:\Documents and Settings\My Documents\MATLAB\test3\for_testing' -v 'C:\Documents and Settings\My Documents\MATLAB\test3.m' 'class{Class1:C:\Documents and Settings\My Documents\MATLAB\test3.m}'
Test checkout of feature 'Compiler' failed.
mcc failed.
What's wrong about my process? Would you please help me?
Thanks, Mani
Geoff Hayes
Geoff Hayes 2014년 10월 27일
Mani - you may want to look at the answer at http://www.mathworks.com/matlabcentral/answers/132882-problem-while-creating-exe-file which may give you an idea on how to proceed.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by