Installing OpenCV 2.4.10 on Windows 8.1 with VS 2013 - c++

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!

Related

VS12 Buiding Boost Library fatal error LNK1104: cannot open file 'libboost_system-vc110-mt-gd-1_58.lib'

I've been trying to build boost:asio for Visual Studio 2012.
I already did bjam and it gave me the include and lib addresses, which I pasted in VS settings.
Now compiler can't find 'libboost_system-vc110-mt-gd-1_58.lib', but in stage lib I got the 'libboost_system-vc120-mt-gd-1_58.lib', that is probably a newer version.
How can I solved this?
I searched it for days and couldn't get through this.
Looks like you are using VisualStudio 2012 (is requesting vc110 version libraries) but you actually have build boost for Visual Studio 2013 (vc120).
You need to specify the right toolset to boost build (--toolset=msvc-11.0) and not let him pick the default.
Are you using an older-than-last version of boost?
Make sure that your version does not predate the support for VS2012. The mechanism for detecting the version is different in bjam and in the autolink headers, so that with recent versions of Visual Studio you can end up trying to link to the latest version known of boost "vc110", even though bjam detected it correctly.

opencv 2.4.3 configuration issue with visual studio 2010

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..

Where to find cuda.rule files for cuda 4.1

I am a beginner in CUDA,I am trying to run the examples given in GPU Computing SDK but it is giving me following error.
File: C:\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.1\C\src\vectorAdd\vectorAdd_vs2008.vcproj
Line: 22
Column: 4
Error Message:
Custom build rules file 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\VCProjectDefaults\NvCudaRuntimeApi.rules' was not found or failed to load.
The file 'C:\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.1\C\src\vectorAdd\vectorAdd_vs2008.vcproj' has failed to load.
Can anybody please tell what m i missing and where can I get this rules file as I am not able to find it in SDK.
Thanks,Any suggestion will be very helpful.
Have you installed the CUDA Toolkit? The "SDK" is basically a set of examples, you will need the Toolkit as well since it includes the compiler itself.
When you install the CUDA Toolkit (available here) it will install the NvCudaRuntimeApi.rules into the Visual Studio directory. If for any reason it cannot find Visual Studio (you install VS after CUDA, for instance), you can find the rules file in \extras\visual_studio_integration\rules.
Once you've installed the Toolkit and got the SDK samples working, check out this post for how to get started with your own project (or this post for VS2010).

I can't run openCV2.3.1 with VS2010 because opencv_core231d.dll was not found

I installed openCV2.3.1 with VS2010. In VC++ Directories I set Library Directories to C:\opencv\build\x86\vc10\lib. My code has no error but when I try to build it VC++2010 displays this error
This application has failed strat because opencv_core231d.dll was not
found. Reinstall the application may fix this problem.
How do I setup openCV2.3.1 with VC++2010 to find the .dll?
Have you seen Microsoft Visual Studio tutorial from the latest OpenCV documentation?
You need to build the openCV2.3.1 yourself. We use cmake build tool in our project. And you should copy the opencv_core231d.dll to your exe directory so that your executable file can find the dll.
Here is the Complete Installation guide for OpenCV.
Download and install the 2.3.1 superpack for Windows and configure Visual Studio according to this post. Even though the instructions are for the 2.3 version, the procedure remains the same and you just need to take care to use the appropriate paths and file names of v2.3.1 when following the steps.
Alternatively you could try to follow Andrey's recommendation, but I haven't test it yet.

Problem deploying a project that uses Intel Parallel studio

So I have this small application of mine I'm trying to deploy using visual studio. I have Intel parallel studio 2011 added to visual studio, and I'm compiling this program using Intel within VS because I'm using OpenMP task construct which is not supported in VS2010. I added a deployment project to my solution and built a setup. Dependencies are detected as follows:
glu32.dll opengl32.dll and libiomp5md.dll
Now I'm trying to test this setup file to see if it works. I have Windows XP Mode installed and I access the setup file, I setup my application, decencies are copied just fine but:
When I try to run the application first time I got an error saying:
The entry point _ftol2 could not be loacted in the dynamic link library msvcrt.dll
I found solution to this problem by removing glu32.dll and opengl32.dll and adding glut32.dll to my windows/system folder.
But then it comes up with this second error saying:
The application or dll ".....\libiomp5md.dll" is not a valid windows image. please check this against your installation diskette
again I googled and I got this and it didn't work.
Reminder: I'm using Win7 x64 and Visual Studio 2010 with Intel Parallel Studio 2011.
I guess you need to install the redistributable libraries on the target machine.