Debug Assertion failed in OpenCV HoughCircles Example (C++) from xstring in VS2013 - c++

I am using Visual Studio 2013 on Windows 8.1, with OpenCV installed. I have copied the example hoghCircles() code and have built it, but I get an error in "line 1168" of xstring.
Any help would be appreciated :)
http://docs.opencv.org/doc/tutorials/imgproc/imgtrans/hough_circle/hough_circle.html

Since you haven't really provided much detail I am hazarding a guess here.
Are you running the debug version from within the debugger? If so you need to go to the property pages of the project and add a command argument so it has an image to work with.

Related

How to fix error with SFML ln VS 2017?

Hi i followed this video to set-up VS2017 for sfml using.
Youtube Video
I did what he says but when i debug project i get this error:
Error MSB6006 "CL.exe" exited with code -1073741515.
I find out on google that this is some sort of compiler error but not how to fix this. Can someone help me or point me to answer?
I'm using Visual Studio 2017 and i downloaded SFML: Visual C++ 14 (2015) - 32-bit
Indeed, you compiler crashed. The status code -1073741515 translates to 0xC0000135 which in turn translates to STATUS_DLL_NOT_FOUND. That is bad. That is not about the SFML dlls, but a library Visual Studio itself uses. Something is very wrong with your Visual Studio installation.
Chances are you will get the same error without using SFML.
I don't know what the tutorial did and I'm not going to watch a video to find out. Your best chance is to do a clean reinstall of your Visual Studio installation and then follow the official guide from the SFML homepage. That works.

LNK1124 error debugger cannot find .exe file

image of error
I'm having an error with visual studio every time I'm trying to use cin to get the guess of the user without that it works fine.
code
console message with error
this happening to me since I install visual studio 2017 just a couple of days ago.
I'm trying to learn c++ for unreal engine just started learning and i came across
that error anyone who have this error maybe this can be helpful for them.
first, let me tell you wah t the problem was i was trying to run a 32bit debugger on my 64bit pc cause visual studio install it that way so if you are getting this error on any of your projects all you have to do is change the project to an x64 bit project.
go to the Top bar "Build"
then go to "Configuration manager"
in there change it to x64 bit instead of 32bit
hopefully this can help someone
the link to the page that i read to fix is here.
after all the changes code runs well and no error anymore.

QuantLib building error

I am trying to build QuantLib but, when running the build process, it returns with 18 succesfull and 1 failed (out of 19 projects in the solution). The one that fails should be testsuite. I am building a x64 release according to its website instruction. I have tried to build a Win32 but it is still the same.
I cannot attach output because it is too big, but I can link the output txt file here.
My boost version is 1.59 and it is working. I have tested it with several different codes and it compiles without any trouble.
I use Microsoft Visual Studio 2015 Community Edition.
Thank you very much!
https://github.com/lballabio/quantlib/pull/292/files?diff=split
This definitively fix the issue. It is an already known bug.

Building OpenCV 3.0.0's DLLs for Visual Studio 2015 with Cmake

Following the instructions here:
docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to
I setup an OpenCV project in VS 2015 Community and used the pre-built libraries. It works until I get this message:
"MSVCP120D.dll is missing from your computer"
From doing some searching I gathered this means that the pre-build libraries are only supposed to be used with an older version of VS so I figured I'd just compile them myself using this:
docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html#windowssetpathandenviromentvariablehere
While it appears to compile properly and despite flagging "BUILD_SHARED_LIBS" I can't find any DLL files in the output - just a lot of VS solutions:
imgur.com/JdSc5CH
Would someone be able to give me some advice on how to generate the DLLs?
thanks!
I'm a beginner at this stuff. I've since learned a lot about Visual Studio, about CMake and about OpenCV. Got it all working now, took me a day or two.
It turns out you have to compile the openCV library from git repository in order to be compatible with Visual Studio (VS14) 2015. As of this date, no go on pre-compiled version supporting VS14.
I've organized what I've learned, placed it online here in case anybody else has the same frustrations. Its pretty detailed, too much content to post here.
VS2015 uses MSVCP140.dll, I think your error message is about a redistributable package of VS2013.
And try BUILD_SHARED_LIBS as on/off.

Visual Studio npcc64_60.dll trap?

I get the following really interesting error:
Searching on google does not give me any direct answer. My setup is the following.
I use Visual Studio 2013 professional. Fameworks in use: NVidea SDK, Qt, OpenCV. Everything is setup because the software was working. After windows update something went wrong.
Can somebody point me in any direction ... how can I find out the starting point of the error, I cant even debug?
Use the Dependency Walker (depends.exe) tool to find out where this DLL dependency comes from. That should help to track the problem.
The problem occures because NVidea SDK 6.0 is missing. My problem was that the library was used by a prebuilt component.