How do I create a mex file in Xcode 7

2 次查看(过去 30 天)
I have installed Xcode 7, and when i use the IDE to build pre-existing code for mex files, it works fine, yielding a file with a .mexmaci64 suffix. However when I try to create a new target, Xcode no longer offers me the Mathworks template, so it is not clear what sort of template I should create. I tried command line tool but this is obviously wrong: it builds fine but creates a file without a suffix. What template type should I select? Is there a Mathworks template for Xcode 7?
Also, do I still need the mex.xcconfig file? I included it as I used to with older Xcode versions, but it seems to have no effect.

采纳的回答

John Knowles
John Knowles 2016-6-16
Answering my own question. It turns out that the old template for Xcode 5.1 still works, though it does seem to destabilize Xcode: I've had several crashes of Xcode, despite it being an extremely stable app otherwise. But once the template is installed, Xcode offers the familiar Mex-files option when a target is created. And choosing this option results in the mex.xcconfig file being automatically included. After installing the template and restarting Xcode, there is still some manipulation of the build settings to be done (User path, library path etc don't seem to work with relative paths), but otherwise its business as usual.

更多回答(0 个)

类别

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