필터 지우기
필터 지우기

Problem compiling simple code with mcc

조회 수: 7 (최근 30일)
Ernst Schwartz
Ernst Schwartz 2014년 8월 8일
댓글: Santosh Tiwari 2017년 8월 18일
Hi!
I'm trying to compile a bigger project using mcc, but I'm already having loads of trouble getting a simple test-function to compile.
my test function looks like
function testCompile()
fprintf('I AM A COMPILED PROGRAM \n');
end
and what I get is
>> mcc -m testCompile
Attempt to execute SCRIPT nargin as a function:
/tmp/../home/ernst/matlab2014/toolbox/matlab/lang/nargin.m
Error in matlab.depfun.internal.requirements (line 55)
if nargin == 0
Unexpected error while determining required deployable files. Compilation terminated.
Attempt to execute SCRIPT warning as a function:
/tmp/../home/ernst/matlab2014/toolbox/matlab/lang/warning.m
Attempt to execute SCRIPT clear as a function:
/tmp/../home/ernst/matlab2014/toolbox/matlab/general/clear.m
Attempt to execute SCRIPT clear as a function:
/tmp/../home/ernst/matlab2014/toolbox/matlab/general/clear.m
Error using mcc
Error executing mcc, return status = 1 (0x1).
Any idea? I'm a bit at a loss here ...
cheers Ernst
  댓글 수: 1
Ernst Schwartz
Ernst Schwartz 2014년 8월 8일
... I'm using matlab2014a on linux btw.

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

채택된 답변

Ashish Gudla
Ashish Gudla 2014년 8월 8일
편집: Ashish Gudla 2014년 8월 8일
You could try using the old depfun (as shown below) and see if that works.
setenv('MCC_USE_DEPFUN','1')
  댓글 수: 3
johnfic
johnfic 2017년 3월 22일
I do the same,but I can't find the file .so
Santosh Tiwari
Santosh Tiwari 2017년 8월 18일
I tried the suggested workaround. It went further, but then crashed.
I got the following error.
Depfun error: 'The specified superclass 'coder.oneclick.TargetHook' contains a parse error, cannot be found on MATLAB's search path, or is shadowed by another file with the same name.'
Error using mcc
Error executing mcc, return status = 1 (0x1).
I am using Matlab 2014a 64-bit on Linux.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by