opencv 2.4.3 configuration issue with visual studio 2010 - c++

I have tried to install and configure opencv and link it with visual studio 2010 in 32bit windows 7 but after all the configuration when i debug a piece of code i get this error really need help please help.
"error LNK1181: cannot open file 'opencv_calib3d243d.lib'"
"'opencv_calib3d243d.lib'" was included during the configuration, but still i get this error.
I have followed the coniguration procedure from here.
Installing OpenCV 2.4.3 in Visual C++ 2010 Express

There might be 2 things that are the source of your woes:
You are trying to link to x64 instead of x86 (this is assuming that your OS is 32-bit, of course)
You haven't specified the Linker Directory properly.
I would advise you to use CMake to link your libraries as it will make your life a lot simpler.. Please refer to my answer to this question for details..

Related

Installing Magick++ in visual studio 2019

I have tried to install Magick++.h in visual studio 2019.
First I download ImageMagick++ and installed my pc. Then I copied include & library path to project properties. there is no error when I am writing the program. after compiling, there is a build error. Can someone help to solve this problem?

cv:Exception at memory location - Running openCV code Visual studio 2013 & Visual studio 2017 - Windows 7

How can I get rid of Exceptions in Visual Studio? Possibly from project exception settings?
I am using openCV 2.4.9 library with c++ code library in Visual studio. when I run the code. I tried library with 2012 & 2015 also but had "lnk1104" error for missing library file . I tried resolving those with solutions found from internet ( redistributable c++ package & others) but couldn't fix it.
So I tried in 2013 & 2017, but get the unhandled exceptions(Microsoft C++ exception: cv::Exception at memory location 0x0037AD58(& other locations too)) for both versions.
I have been trying to run code successfully since last 3 days.
Can anyone please help me?
Thanks in advance.
exceptions are baked into the code, so you can't rid of them. The best you can do is to use try catch
try
{
my_exception_throwing_function();
}
catch(err)
{
}
But in your case I think it's a linker problem. You need to tell the compiler where all the binaries of OpenCV. Check the linker page of the compiler.
Did you recompile OpenCV yourself? Did you use precompiled binaries? if so, were the binaries compiled with the same compiler you are using? Which version of OpenCV are you using?
I would go to the documentations of OpenCV, they have good guides to setup the toolchain.
https://docs.opencv.org/2.4/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html

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.

Missing opencv_world300.lib while using visual studio 2015/2013

I'm trying to install OpenCV 3.0.0 to my project within MS Visual Studio 2013/2015 (two PCs). I'm doing same things as in tutorial described here http://tinyurl.com/cbdvucw, but on both PCs I get an error, saying that 'opencv_world300.lib is missing, try to reinstall programm'. I sure that it's not missing, I've set system variables: OPENCV_DIR: 'D:\opencv\build\x86\vc12' and added to PATH: '%OPENCV_DIR%\lib'. Restarted my computer, but Visual Studio says error above. All project properties are the same as in the tutorial. What should I do to solve this problem? Thanks.
You need to build the library again
Go back to cmake step and activate Build_opencv_world

Installing OpenCV 2.4.10 on Windows 8.1 with VS 2013

I am trying to install opencv 2.4.10 on Windows 8.1. Normally I install OpenCV without any third party libraries but this time I am trying to install some libraries like CStripes, Eigen, OpenExr, CUDA 6.5, AMD Blas and Fft.
I am using Visual Studio 2013 64-bit. OpenCV installation without any third party library completes without any issues but with 3rd party libraries it is unsuccessful. I was following the installation procedure given here.
The issue that I noticed is that during the installation the system cannot find the .lib and .dll files e.g.
LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\opencv_contrib2410.lib'
file INSTALL cannot find "E:/opencv/build/bin/Release/opencv_gpu2410.dll".
I ran the installation as an admin but I was still getting the same errors.
You can view the Visual Studio build log here and Cmake build log here.
Please help me out.
Search for "Error" in the Visual Studio logs. There is clearly a CUDA error being thrown:
E:/opencv/sources/modules/gpu/src/nvidia/core/NCV.cu(356): error : namespace "std" has no member "max"
It seems as though you need to add #include <algorithm> for this to work (as suggested here).
I would also suggest that you raise this as a bug on the OpenCV tracker!