Why do I receive the error message "No supported compiler was found." and "Looking for registry setting 'path_to\Microsoft SDKs\Windows\v10.0' InstallationFolder ...No." when compiling a MATLAB application using the Library Compiler to an Excel Add-in?

4 次查看(过去 30 天)
It is sought to compile a MATLAB application into an Excel Add-in using the Library Compiler. However, when packaging the application I am receiving the following error message,
... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0' InstallationFolder ...No.
No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; visit https://www.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html. For more options, visit https://www.mathworks.com/support/compilers.
and the packaging errors out. It turns out that MATLAB cannot find the registry entry for the Windows SDK 10, although Windows SDK 10 has been installed. When downloading the installer using the following link,
then I am prompted to download additional packages for the installation. Then, it is possible to download the missing Windows SDK 10 packages, see the following screenshot,
However, this does not resolve the issue and I am still faced with the same error when packaging the application.
Why do I receive the error message "No supported compiler was found." and "Looking for registry setting 'path_to\Microsoft SDKs\Windows\v10.0' InstallationFolder ...No." when compiling a MATLAB application using the Library Compiler to an Excel Add-in?

采纳的回答

MathWorks Support Team
The issue is that updating the remaining packages by complementing the installation of the Windows SDK 10 in this way might have the registry entry not appropriately updated, thus having MATLAB not being able to retrive this information.
Please uninstall Windows SDK 10 and re-install it along with the missing packages to have the issue resolved.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 C Shared Library Integration 的更多信息

标签

尚未输入任何标签。

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by