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?

3 views (last 30 days)
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?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 26 Nov 2021
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.

More Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!