mcc -mv in linux machine R2013a to make executables

Hi,
When i am trying to make executable files of my .m file in linux machine some of the the .m files are working absolutely fine.
Where ever one file which has camera input inside the .m file is giving me error saying-
"Depfun error: 'Unexpected Standard exception from MEX file.
What() is:
..'
Error using mcc
Error executing mcc, return status = 1 (0x1)."
But when I use same .m file in window and R2012a it is working properly without any error.
I found a bug report here http://www.mathworks.com/support/bugreports/951485 is this a similar problem?
How do I solve it?

 채택된 답변

Walter Roberson
Walter Roberson 2013년 7월 1일

0 개 추천

Yes. Follow the instructions in the bug report.

댓글 수: 3

Hi Walter Roberson,
Thanks for your reply. But the bug report solution is little different as it only describ solution for 1.importdata function and 2. Parallel Computing Toolbox functions
And I am not doing anyone of it. I am just trying to get some image from the came its a simple MEX file as follows-
vid1 = videoinput('linuxvideo',2);
set(vid1,'FramesPerTrigger',1);
start(vid1);
imageData1=getdata(vid1,1);
imageData=ycbcr2rgb(imageData1);
imagesc(imageData(:,:,:,1));
stop(vid1);
The report says, "This error occurs only on certain Linux machines, and only when trying to deploy certain MATLAB code, such as Parallel Computing Toolbox functions or the importdata function. " "such as" means there may be other affected functions as well.
If you try the patch and it does not work, I suggest contacting technical support.
Thanks for your reply. I emailed for technical support and they replied saying it was a bug and told me to replace the 'depfun.opts' file. After replacing it works fine.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by