I'm trying to compile an Excel add-in in Matlab, but I'm having an "Error during packaging":
No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler; visit http://www.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html . For more options, visit http://www.mathworks.com/support/compilers/R2016a/win64.html.
Error: An error occurred while shelling out to mbuild (error code = -1).
Unable to build executable.
In the log it also appear:
No MEX options file identified; looking for an implicit selection.
No MEX options file identified; looking for an implicit selection.
Did not find installed compiler 'Intel C++ Composer XE 2013 with Microsoft SDK 7.1'.
Did not find installed compiler 'Intel C++ Composer XE 2013 with Microsoft Visual Studio 2010'.
Did not find installed compiler 'Intel C++ Composer XE 2013 with Microsoft Visual Studio 2012'.
Did not find installed compiler 'Intel C++ Composer XE 2013 with Microsoft Visual Studio 2013'.
Did not find installed compiler 'Intel Parallel Studio XE 2015 for C++ with Microsoft SDK 7.1'.
Did not find installed compiler 'Intel Parallel Studio XE 2015 for C++ with Microsoft Visual Studio 2010'.
Did not find installed compiler 'Intel Parallel Studio XE 2015 for C++ with Microsoft Visual Studio 2012'.
Did not find installed compiler 'Intel Parallel Studio XE 2015 for C++ with Microsoft Visual Studio 2013'.
Did not find installed compiler 'Intel Parallel Studio XE 2015 for C++ with Microsoft Visual Studio 2015'.
Did not find installed compiler 'Intel Parallel Studio XE 2016 for C++ with Microsoft SDK 7.1'.
Did not find installed compiler 'Intel Parallel Studio XE 2016 for C++ with Microsoft Visual Studio 2010'.
Did not find installed compiler 'Intel Parallel Studio XE 2016 for C++ with Microsoft Visual Studio 2012'.
Did not find installed compiler 'Intel Parallel Studio XE 2016 for C++ with Microsoft Visual Studio 2013'.
Did not find installed compiler 'Intel Parallel Studio XE 2016 for C++ with Microsoft Visual Studio 2015'.
Found installed compiler 'MinGW64 Compiler (C++)'.
Did not find installed compiler 'Microsoft Visual C++ 2010'.
Did not find installed compiler 'Microsoft Visual C++ 2012'.
Did not find installed compiler 'Microsoft Visual C++ 2013 Professional'.
Did not find installed compiler 'Microsoft Visual C++ 2015 Professional'.
I've all Visual Studio Versions installed on my machine.
Anyone with solution for that?
Thank you
Just found the solution.
Install Visual Studio (in case I installed the 2015 pro version) in custom mode and add all C++ itens.
Related
I have been using visual studio 2010 for long time now and just upgraded to VS 2015 (installed with default options). But I'm not able to find MSMs such as Microsoft_VC140_CRT_x64.msm
Where are the MSM files for the 2015 VC runtime?
The VC++ 2015 MSMs are located in %ProgramFiles(x86)%\Common Files\Merge Modules.
From Redistributing Visual C++ Files / Locate the redistributable files:
Another deployment option is to use redistributable merge modules (.msm files). In Visual Studio 2019, these files are part of an optional installable component named C++ 2019 Redistributable MSMs in the Visual Studio Installer. The merge modules are installed by default as part of a C++ install in Visual Studio 2017 and Visual Studio 2015. When installed in the latest version of Visual Studio 2019, you'll find the redistributable merge modules in %VCINSTALLDIR%Redist\MSVC\v142\MergeModules. In both Visual Studio 2019 and Visual Studio 2017, they're also found in %VCToolsRedistDir%MergeModules. In Visual Studio 2015, they're found in Program Files [(x86)]\Common Files\Merge Modules.
It is important that the VC++ runtimes be installed with proper version checking, since the major version and file names have stayed the same between VC++ 2015, 2017 and 2019.
From C++ binary compatibility between Visual Studio 2015, 2017, and 2019:
We've kept the Microsoft Visual C++ Redistributable major version number the same for Visual Studio 2015, 2017, and 2019. That means only one instance of the Redistributable can be installed at a time.
Installation of visual studio 2013 ultimate with update 5 is setting up successful but some of the features are not installing correctly. Whenever I run code I am facing a LINK ERROR. And visual studio c++ 2013 redistributable package is not installed.
I'm trying to compile my node.js project into a binary using nexe. I only have Microsoft Visual studio 2012, so the compiler complains it can't find MSVS2010
error MSB8020: The builds tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found.
In nexe's requirement section, it does mention MSVS2012 can be supported, so I'd like to figure out a way to specify MSVS version.
I tried --msversion=2012 as in NPM installation but no luck.
Appreciate any advice on this.
I need to be able to distribute Visual C++ Runtime Distributables 2010 in Visual Studio 2012 using ClickOnce. How do I get the 2010 C++ bootstrapper to appear in the VS 2012 Prerequisites? The 2012 bootstrapper is already there. Can I have both?
You can accomplish this by hacking your project file and copying some files. The example below is for using the Visual C++ 2012 Runtime libraries in Visual Studio 2013. You will have to change some version numbers if you are using a different version of Visual Studio or want a different version of the Visual C++ Runtime libraries.
First add the following to your project file:
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Visual.C++.11.0.x64">
<Visible>False</Visible>
<ProductName>Visual C++ 2012 Runtime Libraries %28x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
The example above is for the 64-bit version of the Visual C++ 2012 Runtime Libraries. If you want to use the 32-bit version you should replace x64 with x86. And if you want to use a different version of the C++ library you will have to change the 11.0 version number. If you open your project at this point and go to the prerequisites you will notice a warning that Visual Studio 2013 cannot find the Visual C++ Runtime Libraries. To fix this you will need to copy some files.
Go to the following folder: C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\Bootstrapper\Packages. If you want a different version of the C++ Runtime Libraries you should change the v8.0a version number.
Copy the folder vcredist_x86 to the folder that Visual Studio 2013 uses: C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages. Make sure you use a different name to avoid overwriting the 2013 libraries. I used vcredist_x64.2012.
At this point you can open your solution and publish your solution. When users install your application they will be asked to also install the C++ Runtime libraries. If your users already installed the application they will need to reinstall otherwise they won't get the question to install the C++ Runtime libraries.
It might be possible that you don't have the C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\Bootstrapper\Packages folder on your system. I think you only get this folder when you install Visual Studio 2012 besides Visual Studio 2013. Feel free to edit this question if you know where you can just download the files without having to install Visual Studio 2012.
I have Microsoft Visual C++ 2012 redistributable installed on my PC, but when I try to use the NMAKE command in the cmd it says:
'nmake' is not recognized as an internal or external command,
operable program or batch file.
I went to the Visual Studio 8 folder, and I couldn't find nmake.exe or vcvars32.bat.
What should I do?
"Microsoft Visual C++ 2012 redistributable" just contains runtime libraries needed by applications developed with Visual C++ 2012. No development tools are included.
To obtain "nmake" you either have to buy "Visual Studio" or download the Windows SDK from Microsoft. When installing the SDK you'll find "nmake" in folder "\Program Files (x86)\Microsoft Visual Studio xx.x\VC\bin" (xx.x depending on SDK Version).
Visual Studio installs a couple of command-shell links under Start|Programs|Microsoft Visual Studio xx.