필터 지우기
필터 지우기

How do I create a mex file in Xcode 7

조회 수: 2 (최근 30일)
John Knowles
John Knowles 2016년 6월 15일
답변: John Knowles 2016년 6월 16일
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