サポートされているコンパイラが見つかりません。

MATLAB2018bが入っているPCに,
以下の2つをインストールしたのにもかかわらず,
・Microsoft Visual C++ 2015-2019 x64 Redistributable
・Windows 10 SDK
mex -setupと入力すると,
「サポートされているコンパイラが見つかりません。無償提供されている MinGW-w64 C/C++ コンパイラをインストールできます。「Install MinGW-w64 Compiler」を参照してください。その他のオプションについては、https://www.mathworks.com/support/compilers を参照してください。」
とエラーが出るのでしょうか。
mbuild -setup -vと入力すると
'mbuild' には MATLAB Compiler SDK が必要です。
というエラーが出ます。
※インストールを行った順序はSDK→Microsoft Visual C++ 2015-2019 x64 Redistributableです。

Antworten (1)

Musashi Ito
Musashi Ito am 19 Mär. 2020
Bearbeitet: Musashi Ito am 19 Mär. 2020

1 Stimme

ご参考までに、自分はコンパイラのインストールで以下のコンパイラをインストールしたら
・MinGW を MATLAB のアドインからインストール もしくは、
・Microsoft Visual Studio 2017 Community で " Desktop development with C++ " をインストール
mex -setup
を実行したときにエラーが表示されなかったです。
R2018b でサポートしてるコンパイラは以下のページの Supported Compilers の Details から確認できそうです。

Kategorien

Mehr zu MATLAB Compiler SDK のトラブルシューティング finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018b

Gefragt:

am 19 Mär. 2020

Bearbeitet:

am 19 Mär. 2020

Community Treasure Hunt

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

Start Hunting!