从 Cocoa 应用程序调用 MATLAB 引擎
我正在编写一个 Cocoa 应用程序,并尝试将其与 MATLAB 引擎链接以调用 MATLAB 函数。到目前为止,我已将 .app/extern/include/ 目录(包含 engine.h 标头的目录)添加到标头搜索路径(以及随后的#imported engine.h),并添加了 .app/extern/lib/ maci64 目录添加到库搜索路径(尽管这并没有真正执行任何操作)。我一直在浏览 MATLAB 文档,看起来 MATLAB 有自己的用于 MATLAB 引擎应用程序的编译器“mex”……但显然这不适用于 Cocoa 应用程序(无论如何,在我的系统上,“mex”命令启动 PDFTex,与 MATLAB 无关)。此外,该目录中的引擎库采用奇怪的格式(.map),这似乎是一个调试符号文件,而不是普通的 Mac 库(dylib、a、framework 等)。想法?
I'm writing a Cocoa application and I'm trying to link it with the MATLAB Engine to call MATLAB functions. So far I've added the .app/extern/include/ directory (the one that contains the engine.h header) to the header search paths (and subsequently #imported engine.h) and added the .app/extern/lib/maci64 directory to the library search paths (though that doesn't really do anything). I've been looking through the MATLAB documentation and it looks like MATLAB has its own compiler 'mex' for MATLAB engine applications… but clearly that doesn't work for a Cocoa app (and anyway, on my system, the 'mex' command starts PDFTex and has nothing to do with MATLAB). Also, the engine libraries in that directory are in an odd format (.map) which seems to be a debugging symbol file and not a normal Mac library (dylib, a, framework, etc.). Thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论