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

41 views (last 30 days)
Daiki Kakiuchi
Daiki Kakiuchi on 19 Mar 2020
Edited: Musashi Ito on 19 Mar 2020
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です。

Answers (1)

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

Categories

Find more on MATLAB Compiler SDK のトラブルシューティング in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!