Macos 其中-所有svmtrain都不';t显示libsvm';s svmtrain
我正在尝试使用libsvm的svmtrain。我有包含mex文件的libsvm。我在MacOSX 10.10.2和xcode 4.4上运行Matlab2013a 我检查了gcc,它说: 配置为:--prefix=/Library/Developer/CommandLineTools/usr --使用gxx include dir=/usr/include/c++/4.2.1 Apple LLVM版本6.1.0(clang-602.0.53)(基于LLVM 3.6.0svn)目标: x86_64-apple-darwin14.1.1线程模型:posix 当我运行包含svmtrain的代码时,它会说: .使用svmtrain(第233行)时出错Y必须是矢量或字符 数组。列车(47号线)模型中的错误=svmtrain(列车分数), 壮举","s 4-c"num2str(c)"-t 0-q"; mex-安装程序说: 选项文件控制要使用的编译器、编译器和link命令 选项,以及要链接的运行库Macos 其中-所有svmtrain都不';t显示libsvm';s svmtrain,macos,matlab,Macos,Matlab,我正在尝试使用libsvm的svmtrain。我有包含mex文件的libsvm。我在MacOSX 10.10.2和xcode 4.4上运行Matlab2013a 我检查了gcc,它说: 配置为:--prefix=/Library/Developer/CommandLineTools/usr --使用gxx include dir=/usr/include/c++/4.2.1 Apple LLVM版本6.1.0(clang-602.0.53)(基于LLVM 3.6.0svn)目标: x86_64-
Using the 'mex -setup' command selects an options file that is
placed in /Users/hossein/.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/hossein/.matlab/R2013a.
To override the default options file, use the 'mex -f' command
(see 'mex -help' for more information).
mex可用的选项文件有:
1:/Applications/MATLAB_r2013 a.app/bin/mexopts.sh:
用于构建MEX文件的模板选项文件
0:退出,不做任何更改
以及哪些-所有svmtrain:
哪一个-所有svmtrain
/Applications/MATLAB_r2013 a.app/toolbox/stats/stats/svmtrain.m
我还将libsvm添加到path中。我在网上找到了很多方法,但问题仍然存在。我应该怎么做才能识别libsvm的svmtrain?(它已经添加到路径的顶部)
tnx提前实际上xcode是6 beta 3,我忘了更改它,sry:-)编译时有错误吗?是否生成了mex文件?(例如,
svmtrain.mexmaci64
)它说Y必须是向量或字符数组。libsvm中包括trainsvm.mexa64和predictsvm.mexa64。。。当我在windows中使用这个libsvm时,它写得很好,但在mac中它说Y必须是向量或字符数组。预编译文件在mac OS X上不工作,因为它们是为windows编译的。在Mac上,您需要自己编译MEX文件。在MATLAB中打开包含所有源文件的文件夹并调用make
。make显示:mex:libsvmread.c不是普通文件或不存在。如果make.m失败,请查看自述详细说明。