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.
2016年6月20日更新: 经过穷折腾以及查资料,mac下以matlab使用libsvm无法使用其python工具grid.py进行参数寻优,因为grid.py是基于win编写的,其中需要调用运行svmtrain.exe以及gnuplot的一个可执行文件,而mac不能正确运. Install libSVM-3.17 on Mac OS X 10.9. Learn more about libsvm, mac. Compiling libsvm failed in Matlab 2010a on macos. Learn more about libsvm, macos lion, os-x. Below, I will call the libsvm-3.14 (for example: C: libsvm-3.14) extracted folder ROOT (so replace ROOT wilth C: libsvm-3.14 below). So, fire up Matlab and, then, at its command prompt, type: cd ROOT cd matlab make Now, in the ROOT/matlab folder, you should have obtained two MEX files (with the.mexw32 or.mexw64 extension).
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 changes Enter the number of the compiler (0-1): 1 Overwrite /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: 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 >> make xcodebuild: 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. Just to add the procedure for other people, after line 119 or maci64 in mexopts.sh file, you need to change macosx10.7 or if you have macosx10.10 to macosx10.11 for rest of the lines in the file. Cxt modem driver for mac.
My girlfriend has a Zen Sleek Mp3 player 20gb (non photo). S/n DAP-HD0018 she also has an iBook with the newest Mac OS on it, and apparently creative doesn't offer a driver for it. Zen sleek photo driver for mac.
As explained by the process here you may not have mexopt directory as indicated by the fourth step >> cd( fullfile(matlabroot,'bin','maci64','mexopts')); Therefore, just create mexopts folder in maci64 folder of bin and move the files of xcode7_mexopts in that folder. After that go to mexopts.sh file using cd(matlabroot) cd bin edit mexopts.sh in the command window of MATLAB and change line 137 to CFLAGS='$CFLAGS -fexceptions -Dchar16_t=UINT16_T' Also change line 150 to CXXFLAGS='-fno-common -fexceptions -arch $ARCHS -isysroot $MW_SDKROOT -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -std=c++11' And recompile mex -setup and make file. It will create relevant mex files for the libsvm.
Installation of libsvm for Matlab R2012b on OS X 10.9 with Xcode 5.0 17 Dec 2013 Tutorials on installation of libsvm for matlab on mac could be fetched easily on the internet. However, most of them did not mention some problems that could be met during the installation. Therefore, I’d like to make a more comprehensive version of tutorial. My environment is like: Mac OS X 10.9 Xcode 5 Matlab R2012b Step 1.Preparation Of course, you have to download libsvm from its official site:.
There is no versions specially for matlab, so, just download the package. You could unzip the package to any directory you like, but I’d prefer to unzip it to (matlabroot)/toolbox/libsvm. Step 2.Make Compile After preparation, launch matlab and go to the directory you unzipped the files to.
For me, it will be like: cd ( matlabroot ) cd toolbox / libsvm / matlab Now, we need to compile. Just type the following command: make If everything goes right, just wait for a few seconds, it will be done and nothing will be displayed. You will find some files with the suffix.mexmaci64. Unfortunately, I went into trouble during the process. Step 3.Troubleshooting If anything goes wrong, try the following command first: mex - setup This one let you to choose a proper compiler.