MCR incompatibility with Mountain Lion?
显示 更早的评论
Hello,
It seems there is an incompatibility between the MCR and Mountain Lion. The following minimal Python code is just trying to initialize the MCR. It works fine with the MCR v711, but it breaks with the latest one (downloaded from http://www.mathworks.co.uk/products/compiler/mcr/index.html) v80.
import ctypes
libtest = ctypes.cdll.LoadLibrary('libmwmclmcrrt.dylib')
libtest.mclInitializeApplication_proxy(None, 0)
libtest.mclTerminateApplication_proxy
This: mclInitializeApplication_proxy crashes with the following message: libc++abi.dylib: terminate called throwing an exception Abort trap: 6
Does anyone know how to handle this?
Thanks! PJ
回答(7 个)
Andreas Goser
2013-1-15
1 个投票
According this reference, the latest MCR version as of today is MCR 8.0 as part of the product MATLAB Compiler 4.18 and the Release R2012b.
I conclude that it is correct to assume that software versions should not be part of the problem. I cannot assess the cause of the problem, but before you contact MathWorks Technical Support, try createing a very simple stand-alone application in MATLAB Release R2012b and run it on this computer with just the MCR and see how it behaves. This helps to distinguish the location of the error.
2 个评论
Pierre-Jean
2013-1-15
Andreas Goser
2013-2-5
A bug was identified by MathWorks Technical Support and Development and a patch was provided for this user.
Pierre-Jean
2013-1-13
0 个投票
1 个评论
Walter Roberson
2013-1-15
I do not have the compiler toolbox, but if you put a copy of your binary up somewhere, I'll try it on Lion (not Mountain Lion) to see what happens here.
You can email me the link; please mention MATLAB in the subject.
Pierre-Jean
2013-1-15
编辑:Pierre-Jean
2013-1-15
0 个投票
1 个评论
Andreas Goser
2013-1-15
I will give a technical response below. First a comment with regards to "bugging people" and "MathWorks watching this forum". There are many MathWorks employees contributing to MATLAB Answers. But typically those contributions are based on personal experience and viewpoints and are not an official MathWorks position. If you like to report a bug, please contact MathWorks Technical Support. And with regards to bugging people: You either bug nobody here or everybody. All contributors are here free to read or not, write or not.
Pierre-Jean
2013-1-16
编辑:Pierre-Jean
2013-1-16
Malcolm Lidierth
2013-1-17
0 个投票
It does work on Mountain Lion.
Have you installed the Command Line Tools in XCode Preferences (needed in Mountain Lion) and the patches from TMW:
Pierre-Jean
2013-1-17
0 个投票
3 个评论
Malcolm Lidierth
2013-1-17
编辑:Malcolm Lidierth
2013-1-17
@Pierre-Jean
I do not have access to it at present so will not be able to check details today but gcc 4.4 springs to mind (possible wrongly). I am using the latest Mountain Lion and XCode 4.5.(2?) - on a machine recently updated from Snow Leopard - so 2-3 years old.
I have little experience of the mcr having only recently been given access to it. My test was just to deploy an m-file with surf(peaks(20)) to give a clear visual output and then double clicked "Untitled.app".
I have Java 6 installed as well as 7 (which I guess you must too). I also recently ran the Apple Disk Utility to "fix permissions" following a web suggestion related to something else (I forget exactly what). I was surprised by how many file permissions it fixed. Not sure if that could be relevant here.
ML
PS Also the MCR is in the default /Applications/MATLAB/.... - I has problems when I put it elsewhere.
Pierre-Jean
2013-1-17
Malcolm Lidierth
2013-1-17
@PJ
I will be trying to do that too in a few weeks - so any tips you can share here if you solve it would be welcome.
ML
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!