matlab compiler on osx: using a matlab generated shared library

조회 수: 1 (최근 30일)
Juan Cardelino
Juan Cardelino 2012년 10월 27일
Dear all, I've successfully generated a shared library in osx 10.8 with matlab R2011b, from a buch of .m files. I can make a standalone C++ test program that uses the library without any problem. Note that this program was built with mbuild. However, when calling function from this library from a more complex program, compiled with cmake on command line. The program fails with this error: " No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting". Please note that my program does not generate any bundle, just a command line executable.
Do I have to make my build output a bundle? Is there any other way to circunvent this?
EDIT 1: I've just generated a bundle, but and I arrive to the point where the matlab function gets called, but nothing happens, the program stays there forever.
Thanks in advance. Best, Juan
  댓글 수: 1
Siva
Siva 2013년 2월 3일
I have the same problem (I am using the matlab library in a larger XCode project). Did you find any solution?

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

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 10월 29일
This seems to be a Mac-specific issue. I don't know too much about this, but perhaps this Technical Solution will be useful: Why do I receive ' No Info.plist file in application bundle' errors when I try to execute my compiled MATLAB code on Maci 64-bit systems?
  댓글 수: 2
Juan Cardelino
Juan Cardelino 2012년 10월 30일
It is indeed a mac specific issue. The answer in the technical solution is clear, however as I'm using the matlab code as part of a bigger application, I can't compile it with mbuild nor run with run_script.sh. The pity is that I have this application running both in windows and linux. Do you know why is this requirement of running through a bundle? Thanks for your time.
Kaustubha Govind
Kaustubha Govind 2012년 10월 31일
Juan: Sorry, I'm not a Mac user/developer, so I don't know the answer to your question. Could you please contact MathWorks Tech Support for more information? Perhaps some Mac developer forums might also give you more insight.

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

카테고리

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