libsvm的make或者mex不成功(No supported compiler or SDK was found)
2017-02-17 10:22
507 查看
我们在进行机器学习或者数据挖掘的时候,我们总会用到svm的模型进行数据的挖掘和分析,但是我们使用SVM后,它只能二类的分类直接使用效果更好,但是我们往往是多类的分类。
那么我们就会采用libsvm工具箱,libsvm是啥呢?
首先感谢Lin教授及其实验室提供的libsvm工具箱,原始下载地址:下载主页:http://www.csie.ntu.edu.tw/~cjlin/libsvm/ 下载地址:http://www.csie.ntu.edu.tw/~cjlin/libsvm/#download
这是一个集成好的功能强大的SVM分类器。
但是,好的东西,总是会遇到很多很多的问题,我在第一次使用libsvm的时候,就遇到了如题的问题。找了好久,才找到这个问题的解决办法。当然有参考大神的博客。不过大神的博客有点久远,导致在下载SDK的时候,按照博客的方法根本不存在,所以现将现在可以用的方法写在这里,希望能帮助需要的人,节省时间。
在按照网上很多装libsvm的方法进行安装后,在make或者mex的时候,会出现问题,比如:
>> make
If make.m fails, please check README about detailed instructions.
>> mex -setup
Error using mex
No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2015a/win64.html.
若出现没有支持的编译器或者SDK,那么也就是意思,我们需要安装相应的编译器或者SDK,但是好像你如果以前装了微软的.NET 或者c/C++的IDE,好像也是可以的,但是可以在点击打开链接 上进行下载SDK,
选择自己的MATLAB版本后,点击Support Compilers选项,如下图所示,最后面一列。
进去后,你会发现是一个PDF的文档,有没有感觉不按套路出牌啊,本宝宝找了半天,还是一脸懵逼啊,还好功夫不负有心人。
在PDF文档往下拉,找到你电脑对应的版本,我的电脑是64位 Windows的,所以找到如下所示
然后会跳到一个问答论坛里。
进行下载。
下载后,关闭matlab,然后安装SDK。
安装的过程next就好了,但是好慢的。
然后你就可以检测一下了
>>make
Building with 'Microsoft Windows SDK 7.1 (C)'.
MEX completed successfully.
Building with 'Microsoft Windows SDK 7.1 (C)'.
MEX completed successfully.
Building with 'Microsoft Windows SDK 7.1 (C++)'.
MEX completed successfully.
Building with 'Microsoft Windows SDK 7.1 (C++)'.
MEX completed successfully.
编译成功
那么我们就会采用libsvm工具箱,libsvm是啥呢?
首先感谢Lin教授及其实验室提供的libsvm工具箱,原始下载地址:下载主页:http://www.csie.ntu.edu.tw/~cjlin/libsvm/ 下载地址:http://www.csie.ntu.edu.tw/~cjlin/libsvm/#download
这是一个集成好的功能强大的SVM分类器。
但是,好的东西,总是会遇到很多很多的问题,我在第一次使用libsvm的时候,就遇到了如题的问题。找了好久,才找到这个问题的解决办法。当然有参考大神的博客。不过大神的博客有点久远,导致在下载SDK的时候,按照博客的方法根本不存在,所以现将现在可以用的方法写在这里,希望能帮助需要的人,节省时间。
在按照网上很多装libsvm的方法进行安装后,在make或者mex的时候,会出现问题,比如:
>> make
If make.m fails, please check README about detailed instructions.
>> mex -setup
Error using mex
No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2015a/win64.html.
若出现没有支持的编译器或者SDK,那么也就是意思,我们需要安装相应的编译器或者SDK,但是好像你如果以前装了微软的.NET 或者c/C++的IDE,好像也是可以的,但是可以在点击打开链接 上进行下载SDK,
选择自己的MATLAB版本后,点击Support Compilers选项,如下图所示,最后面一列。
进去后,你会发现是一个PDF的文档,有没有感觉不按套路出牌啊,本宝宝找了半天,还是一脸懵逼啊,还好功夫不负有心人。
在PDF文档往下拉,找到你电脑对应的版本,我的电脑是64位 Windows的,所以找到如下所示
然后会跳到一个问答论坛里。
进行下载。
下载后,关闭matlab,然后安装SDK。
安装的过程next就好了,但是好慢的。
然后你就可以检测一下了
>>make
Building with 'Microsoft Windows SDK 7.1 (C)'.
MEX completed successfully.
Building with 'Microsoft Windows SDK 7.1 (C)'.
MEX completed successfully.
Building with 'Microsoft Windows SDK 7.1 (C++)'.
MEX completed successfully.
Building with 'Microsoft Windows SDK 7.1 (C++)'.
MEX completed successfully.
编译成功
相关文章推荐
- Error using mex No supported compiler or SDK was found.
- matlab中安装libsvm时No supported compiler or SDK was found问题
- MATLAB R2015b 编译 No supported compiler or SDK was found
- Xcode开发c++程序时,openssl/aes.h: No such file or directory(或者是file not found)怎么解决
- No supported encrypter found. The cipher and / or key length are invalid.
- The view 'Index' or its master was not found or no view engine supports the searched locations.
- 使用lavarel5.1碰到No supported encrypter found. The cipher and / or key length are invalid.
- ASP.NET MVC 出现错误 “The view 'XXX' or its master was not found or no view engine support”
- CAS TGT 校验不成功:No principal was found in the response from the CAS server.WHO: audit:unknown
- Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:…
- No supported encrypter found. The cipher and / or key length are invalid.
- A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /usr/local/eclipse/
- laravel No supported encrypter found. The cipher and / or key length are invalid
- Task failed because "sgen.exe" was not found, or the correct Microsoft Windows SDK is not installed.
- laravel No supported encrypter found. The cipher and / or key length are invalid.
- Laravel No supported encrypter found. The cipher and / or key length are invalid
- windows7 (eclipse)JRE or JDK No Java virtual machine was found 解决方法
- 部署laravel报错:No supported encrypter found. The cipher and / or key length are invalid.
- No supported encrypter found. The cipher and / or key length are invalid.
- NDK: jni/Android.mk:8: ../../sdk/native/jni/OpenCV.mk: No such file or directory make: