Can't use mex function in Macbook with MATLAB R2018b
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I tried to use the mex function in MATLAB R2018b. But it failed and showed like below:
Building with 'Xcode with Clang'.
Error using mex
xcodebuild: error: SDK "macosx10.15.4" cannot be located.
xcrun: error: sh -c
'/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk
macosx10.15.4 -find clang 2> /dev/null' failed with exit code 16384: (null)
(errno=No such file or directory)
xcrun: error: unable to find utility "clang", not a developer tool or in PATH
It seems that the problem is happned in Xcode. Because I can run these two code.
mex -setup C++
mex -setup C
Thank you so much for your help!!!
0 Kommentare
Antworten (1)
drummer
am 6 Mai 2020
I think you're supposed to compile your mex files for macOS so you get mexmaci64 files.
Also, your Xcode is up-to-date?
Cheers.
0 Kommentare
Siehe auch
Kategorien
Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!