Hi there,
I am trying to setup libsvm for mac version of MATLAB R2013a. I have XCode 7.0.1 as C and C++ compiler. I have trouble setting up the libsvm library. I have used the commands as directed in the README file of the MATLAB LIBSVM however I havent got any results. Upon running
mex -setup
I get this result
mex -setup
Options files control which compiler to use, the compiler and link command options, and the runtime libraries to link against. Using the 'mex -setup' command selects an options file that is placed in /Users/OP/.matlab/R2013a and used by default for 'mex'. An options file in the current working directory or specified on the command line overrides the default options file in /Users/OP/.matlab/R2013a. To override the default options file, use the 'mex -f' command (see 'mex -help' for more information).The options files available for mex are: 1: /Applications/MATLAB.app/bin/mexopts.sh : Template Options file for building MEX-files 0: Exit with no changesEnter the number of the compiler (0-1):1Overwrite /Users/OP/.matlab/R2013a/mexopts.sh ([y]/n)? y/Applications/MATLAB.app/bin/mexopts.sh is being copied to /Users/OP/.matlab/R2013a/mexopts.sh************************************************************************** Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. In the near future you will be required to update your code to utilize the new API. You can find more information about this at: http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html Building with the -largeArrayDims option enables the new API. **************************************************************************
I have also configured the Makefile as
MATLABDIR ?= /Users/OP/Applications/MATLAB
Now when I try to run make I get this error
>> makexcodebuild: error: SDK "macosx10.10" cannot be located.xcrun: error: unable to find utility "clang", not a developer tool or in PATH mex: compile of ' "libsvmread.c"' failed.If make.m fails, please check README about detailed instructions.
After which I have no idea how to configure this out, So anyhelp is much appreciated.
Many Thanks
Best Answer