OpenCV with Visual Studio 2015 ( msvcr120d.dll error ) - opencv

I have tried to link OpenCV with VS Express 2015 as I was doing in VS 2013 but I got msvcr120d.dll error. It says that this .dll was not found in my system.
Any Ideas of how I can link OpenCV with VS 2015 Express?

Prebuild Libs are only for VS11 and VS12 this is Visual studio 2012 and 2013. You can build and release your own OpenCV libs for Visual Studio 2015 comm. edition.
Just use this tutorial
Install OpenCV Visual Studio 2015

I managed to make the OpenCV Debug configuration working in Visual Studio 2015 Community Edition by installing Visual Studio 2013 Express on my system. As the result, the file msvcr120d.dll appeared in Windows\System32, and after the reboot of the computer I was able to debug OpenCV example in Visual Studio 2015.

Installed Visual Studio 2013 Community Edition on a different machine and then copied the dlls msvcp120d.dll and msvcr120d.dll into Windows\System32\ of my work machine. Worked a treat for opencv 2.4 x64 development.
This is not required for opencv 3+ as there are vs14 binaries available.
-- edit 23/8/16--
Not working so well, actually. Runtime errors arising in msvcr120d.dll when vectors containing opencv objects including Mat and KeyPoint are deconstructed, or are constructed using a large reserve.

Related

Where is Code Analysis in Project properties of Visual Studio 2022

If I open a .NET 5 project in Visual Studio 2019, I see code analysis as follows.
And now if I open the same project in Visual Studio 2022 Preview, I dont see that any more.
What am I missing?
Maybe it was a Release Candidate version because in the latest VS2022 the Code Analysis is there:

After installing Visual Studio 2019 I can't find gacutil.exe

I'm trying to install gacutil in order to remove some assemblies from the GAC. My understanding is that it's included with Visual Studio, so I installed Visual Studio Community Edition 2019. gacutil.exe does not seem to be included with the installation. What am I missing?
I had the same issue and was able to fix it by installing the .NET Framework 4.6.1 SDK component shipped with VS 2019 Community.

Where in the Visual Studio installer do I find the BuildTools component?

In which Workload of the Visual Studio 2017 Community 15.9 installation would I find the VS2017 BuildTools component?
I am looking at the workloads in the installer options and there seems not to be any workload that has such a thing.
I even searched in the component in the Individual Components tab also but couldn't find anything matching the exact string.
The reason I am looking for it is that when I try to build the source code for ASP.NET MVC v5.2.6, I get the error message as follows.
> build
Could not find MSBuild.exe. Please install the VS2017
BuildTools component or a workload that includes it.
*** BUILD FAILED **
I had written to the ASP.NET MVC team earlier about this message before I had installed Visual Studio 2017. I had had just Visual Studio 2019 then and they asked that I install Visual Studio 2017.
I already have MS Build at various locations. I had multiple versions of MSBuild even before having installed VS 2017.
Build Tools for Visual Studio 2017 is still available as an online installer. You can get the current version here: https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15.

Installing Visual F# in Express with Professional already installed

I have Visual Studio 2013 Professional, and I'm trying to get an installation of VS Express for Desktop 2013 with F# support. I installed VS Express and the Visual F# Out Of Band Release 3.1.1 as indicated on fsharp.org, but after both completed, nothing F# shows up in VS Express. No F# Interactive window is available and no templates for creating an F# project. Is this because of a conflict with Visual Studio 2013 Professional? Is there a way to get F# support in VS Express with VS Professional installed side by side?
I simply uninstalled and reinstalled Visual F# and that seemed to fix the problem. I have no idea what caused it in the first place. :S

Setting up OpenCV 2.4.3 & Microsoft Visual Studio 2012 ( Win8 x64 )

I want to configure opencv with Visual Studio 2012 on Windows 8 x64.
I configured opencv and there is no compilation errors, but when I execute my program I get this error :
The program can’t start because MSVCR100D.dll is missing from your
computer
I tried to install Visual C++ Redistributable for Visual Studio 2012 and Microsoft Visual C++ 2010 Redistributable Package (x64) but always the same error.
If it's still relevant, try this tutorial to create project and configure OpenCV directories:
http://karanjthakkar.wordpress.com/2012/11/21/usin-opencv-2-4-2-with-visual-studio-2012-on-windows-7-64-bit/
It worked for me on Windows 8 (x64) with Visual Studio 2012 and OpenCV 2.4.3.
After configuring the paths and libraries in Visual Studio as mentioned in http://karanjthakkar.wordpress.com/2012/11/21/usin-opencv-2-4-2-with-visual-studio-2012-on-windows-7-64-bit/ you need to install the Visual C++ Redistributable for Visual Studio 2012 from http://www.microsoft.com/en-us/download/details.aspx?id=30679
After restarting your PC, opencv code could be executed in Release mode. If you need to execute the code in Debug mode, then you would have to install the Redistributable version with "D".
This worked with Opencv 2.4.6, Windows 8.1 and VS 2012 Desktop.
Without having any experience with Windows 8 myself, I think this post could solve your problem.
Basically it says that the default system folder for Win 8 is c:\windows\system, unlike c:\windows\system32 on earlier systems. The redistributables probably install to the old system directory, so you have to move the dll to the correct folder manually.
You could also search the file on your PC and put it into the working folder of your program. This is in most cases the output folder, if you run it in Debug mode from VS it can also be the project folder.

Resources