The "deep network quantizer" APP has problem with C++ MEX compiler

조회 수: 1 (최근 30일)
Tao Huang
Tao Huang 2023년 6월 15일
댓글: Dhananjay Kumar 2023년 7월 18일
I am using the "deep network quantizer" APP but it says my C++ MEX compiler is not supported. I look up at Quantization Workflow Prerequisites - MATLAB & Simulink - MathWorks 中国 and see "On Windows®, the MinGW C/C++ compiler is not supported. Use Microsoft Visual C++ 2019, Microsoft Visual C++ 2017, or Microsoft Visual C++ 2015." So I configure the Visual C++ 2019. It looks like the configuration is successful. But it still says my C++ MEX compiler is not supported. Could anybody help? Thanks.
  댓글 수: 2
Dhananjay Kumar
Dhananjay Kumar 2023년 7월 17일
편집: Dhananjay Kumar 2023년 7월 17일
Hi Tao, were you able to resolve this issue ?
As far as I understand mex -setup command successfully selected a default compiler which is not MinGW but you are still getting the unsupported compiler error ?
Tao Huang
Tao Huang 2023년 7월 17일
Hello! I haven't solve it yet. The "deep network quantizer" APP still says compiler is not supported.
Should I uninstall the MinGW and keep Visual C++ only?

댓글을 달려면 로그인하십시오.

답변 (1개)

Ranjeet
Ranjeet 2023년 6월 26일
Hi Tao,
The error message in the image attached clearly show that the selected C++ compiler is “MinGW64”. As you state that you have installed/configured Visual C++ 2019, “MinGW64” might still be configured as the C++ compiler.
You may check what compiler is configured by the following command –
mex -setup cpp
It should show the following output –
MEX configured to use 'Microsoft Visual C++ 2019' for C++ language compilation.
To choose a different C++ compiler, select one from the following:
MinGW64 Compiler (C++) mex -setup:'C:\Program Files\MATLAB\R2022b\bin\win64\mexopts\mingw64_g++.xml' C++
MinGW64 Compiler with Windows 10 SDK or later (C++) mex -setup:'C:\Program Files\MATLAB\R2022b\bin\win64\mexopts\mingw64_g++_sdk10+.xml' C++
Microsoft Visual C++ 2019 mex -setup:C:\Users\ranjeetk\AppData\Roaming\MathWorks\MATLAB\R2022b\mex_C++_win64.xml C++
You can use the following resource on how to setup a particular compiler for C++
  댓글 수: 2
Tao Huang
Tao Huang 2023년 6월 28일
Thanks for your answer! But I have already use "mex -setup cpp" to configure Visual C++ 2019 as c++ compiler and it seems successful because it says "MEX configured to use 'Microsoft Visual C++ 2019' for C++ language compilation. ".
Could you think about other reasons why I meet this problem? Maybe I think it is the problem of the app "deep network quantizer".
Dhananjay Kumar
Dhananjay Kumar 2023년 7월 18일
As the issue seems complicated, I think you can create a service request by attaching step wise reproduction steps and relevant files here : https://www.mathworks.com/support/contact_us.html

댓글을 달려면 로그인하십시오.

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by