libSVM problem related to Compiler in MATLAB2017b , Window 8 (64 bit)

6 ビュー (過去 30 日間)
Anas Rao
Anas Rao 2020 年 6 月 9 日
回答済み: Chidvi Modala 2020 年 6 月 15 日
I was trying to learnt the libSVM on MATLAB, it is giving this error? Can any body please guide me how to add compiler on MATLAB
Error: D:\PhD\MATLAB\libsvm-3.24\libsvm-3.24\matlab\make.m failed (line 13)
No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler;
Thanks

採用された回答

Chidvi Modala
Chidvi Modala 2020 年 6 月 12 日
You may search for "MATLAB Support for the MinGW-w64 C/C++ Compiler" in the MATLAB Add-ons menu. You can then install the support package from the Add-on explorer.
More information on accessing the Add-ons menu can be found in the following link:
  1 件のコメント
Anas Rao
Anas Rao 2020 年 6 月 14 日
@ Chidvi Modala Sir,
Thankyou Sir, for your reply and it is working but in the next step it is giving another problem which is:
"
>> make
Building with 'MinGW64 Compiler (C)'.
Error: C:\Users\Ht\MATLAB\libsvm-3.24\matlab\make.m failed (line 13)
gcc: error: \-fexceptions: No such file or directory
=> Please check README for detailed instructions.
=> Please check README for detailed instructions."
Please guide me. Thankyou

サインインしてコメントする。

その他の回答 (1 件)

Chidvi Modala
Chidvi Modala 2020 年 6 月 15 日
This error may be due to a corrupt installation of the MinGW compiler.
To solve this issue, please re-install MinGW:
and then set it as compiler from the MATLAB Command Window:
>> mex -setup
You should then be able to build a mex file:
To build a C MEX S-function instead, you can try with timestwo.c at the following link:
If the issue is not solved, there may be incompatibilities with other compilers that have the same command gcc (for instance, GFortran and EGCS).
Removing those compilers should solve the issue.

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by