linux机器R2013a中的mcc -mv [英] mcc -mv in linux machine R2013a

查看:109
本文介绍了linux机器R2013a中的mcc -mv的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图在Linux机器上制作我的.m文件的可执行文件时,某些.m文件运行得很好.

When I am trying to make executable files of my .m-files on a Linux machine, some of the the .m-files are working absolutely fine.

但是,在.m文件内部有摄像机输入的一个文件给了我这个错误:

However, one file which has camera input inside the .m-file is giving me this error:

Depfun错误:'MEX文件中出现意外的标准异常. What()是:..'使用mcc时出错执行mcc时出错,返回状态= 1(0x1).

Depfun error: 'Unexpected Standard exception from MEX file. What() is: ..' Error using mcc Error executing mcc, return status = 1 (0x1).

但是当我在Windows和R2012a上使用相同的.m文件时,它可以正常工作而没有任何错误.

But when I use the same .m-file on Windows and R2012a it is working properly without any error.

我发现此处有错误报告-这是一个类似的问题吗?

I found a bug report here - is this a similar problem?

我该如何解决?

这是我的.m文件的简单代码:

Here is the simple code of my .m-file:

function yuv()
 vid1 = videoinput('linuxvideo', 1, 'YUYV_1280x960');
 set(vid1,'FramesPerTrigger',1);
 start(vid1);
 imageData1=getdata(vid1,1);
 imageData=ycbcr2rgb(imageData1);
 imagesc(imageData(:,:,:,1));
end

推荐答案

在Linux上的R2013a下,我遇到相同的Depfun错误,"What()is:..",但使用其他OS或更旧版本时没有错误MATLAB版本来编译我的代码.遵循错误报告,您已为我进行了修复.

I was getting the same Depfun error, "What() is: ..", under R2013a on Linux but no errors when using a different OS or an older MATLAB version to compile my code. Following the bug report you linked to fixed it for me.

错误报告中链接的zip文件中,您会找到一个depfun .opts文件.重命名或移动位于[matlabroot]/toolbox/compiler中的原始depfun.opts文件,然后将新文件复制到其位置.

In the zip file linked to in the bug report you'll find a depfun.opts file. Rename or move your original depfun.opts file that's located in [matlabroot]/toolbox/compiler and copy the new one in its place.

将新的depfun.opts文件放置到位是我能够在Linux上使用R2013a进行编译所需要的全部内容.

Putting the new depfun.opts file in place is all it took for me to be able to compile using R2013a on Linux.

还请注意,错误报告说它可能是由importdata函数或Parallel Computing Toolbox引起的,但我没有使用它们中的任何一个.

Also note, the bug report says that it could be caused by the importdata function or the Parallel Computing Toolbox but I'm not using either of those.

这篇关于linux机器R2013a中的mcc -mv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆