Can't use mex function in Macbook with MATLAB R2018b
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
drummer
el 6 de Mayo de 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 comentarios
Ver también
Categorías
Más información sobre MATLAB Compiler en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!