opencv 2.4.2 Configuration with Visual Studio 2010 issue? - visual-studio-2010

Recently I decided to make a switch from OpenCV 2.1 to Opencv 2.4. I am having problems in configuring it with opencv. The details are as follows:-
Installed and extracted opencv in folder( opencv2.4).
Created a new folder "BIN" inside (opencv2.4). Used CMAKE to extract all data in BIN.
While using CMAKE I did not select QT, TBB, IPP options.
I added path to System environment i.e. C:\opencv2.4\build\x64\vc10\bin;
I used the solution in "BIN" folder and compiled first with Debug and then with Release options.
Now I started a new VS2010 project.
In project properties; C++ -> General
In project properties;Linker-> General I did
In project properties;Linker-> Input I did
I finally copied all .dll files in my debug folder.
When I run program, I am getting following error.
I dont know what wrong I am doing. Somehow I think I am not linking the library properly. Plz guide me in this regard . . .

There are extensive tutorials coming with the official OpenCV installation. They explain in great detail, with a lot of screenshots, how you configure Visual Studio with OpenCV. You can read the documentation online. I'll link the two tutorials relevant to this question:
Installation in Windows
http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html
How to build applications with OpenCV inside the Microsoft Visual Studio
http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html

You miss the opencv_legacy242.. lib. Add it and try again. Some functionality has moved to legacy in latest release

You may also try follow videos on this subject. They help a lot. Those from a reliable source of course. I know there's one on opencv.org website.

Related

How to install PCL on Visual Studio

I am new in Point Cloud Library and I would like to know how can I install it on my computer. I have already installed PCL 1.6.0 and Microsoft Visual Studio 2010 but I can't manage to use PCL. I understand that I am supposed to set references at some point but I am totally clueless as how and when I should do it.
I have been trying to follow the instructions at http://unanancyowen.com/?p=1255&lang=en but when I get to :
Set the environment variable for PCL and 3rdParty.
Variable Name Variable Value
PCL_ROOT C:\Program Files\PCL 1.7.2(or C:\Program Files (x86)\PCL 1.7.2)
Path ;%PCL_ROOT%\bin
;%PCL_ROOT%\3rdParty\FLANN\bin
;%PCL_ROOT%\3rdParty\VTK\bin
I am totally lost...
I have never used neither Visual Studio nor PCL before.
I am using windows7 64bits
If you could hint me in the right direction or direct me to a tutorial that I could understand, that would be very helpfull !!
Thanks in advance!
Your PCL version is not right...I use PCL 1.7.2 and VS2012 on Win8.1, and it's the same on win7.
Look at this tutorial(It's in chinese and you can use google translate, I follow it and succeed to run PCL1.7.2 on my VS2012):
I used the website you mentioned to install pcl in my computer. And it works just fine. And quite detailed compared to other tutorials. From your question, I understand that you have trouble adding the path to the environment variables. If thats not what you are having trouble with, let me know.
The environment variable helps the visual studio compiler to find the paths to PCL libraries during run time. So, after installing PCL, we need to tell the computer where we have installed pcl and pcl bin files and the supporting 3rd party libraries. You do that by editing the path.
As for how to set the environment variable, go through this tutorial: http://www.computerhope.com/issues/ch000549.htm

OpenCV : Difficulty in working with cvBlobs Library

I am a beginner in OpenCV2.3 on Windows7 and Visual Studio2010 and finding a tough time(confused rather due to several version available in google) in installing the blob library. I am aware that there are several posts on SO itself dealing with this question. So, kindly bear with this question. These are the steps that I did.
Downloaded the library from Grossman's blob detection library
Extracted the zipped folder
Created a New Visual Studio 2010 blank project C:\Users\Admin\Documents\Visual Studio 2010\Projects\Blob after reading Link1
Copied the two .cpp files from Step(1) under Source folder and copied the include.h under Header folder in VS2010. Then, I included the Additional Libraries and Other Dependencies which we normally do to run any OpenCV program.
This is where I am lost >> Followed Link2. In my version of Cmake2.8.7 under Where is the source code I have C:/OpenCV2.3/opencv/opencv and under Where to build libraries, I have C:/Users/Shreya/Downloads/OpenCV2.3. What should be done now?
Would be highly grateful for a detailed explanation.

visual studio 2010 release can't find dll

I've build a project with opencv, when I share my .exe on other pc they can't find some dlls, this happens in release and debug mode, I searched on the web and I know I must configure the properties of the project, I tried configure MFC but with all the configuration the problem persist.
thank you!
Are they SystemFramework libraries? Or are they libraries that your app specifically uses, ones that you have imported into the project?
If they are your custom/imported libraries, make sure you copy them to output, and send them with the exe. The point of an installer is to bring the client your executable will of the the files it need to reference, compiled into a single file.
It seems the runtime librarie of opencv are missing. I'm not familiar with opencv, but VS provides a way to find all dependencies: http://msdn.microsoft.com/en-us/library/vstudio/dd293568.aspx. You can build an installation package for your application.
Another way to find all dependencies is using depends.exe, details are in:http://msdn.microsoft.com/en-us/library/ms235265.aspx

Using Gloox with Visual Studio 2010

I am trying to use the gloox library (C++) to create a Windows XMPP application. It seems simple enough, except I don't know how to import gloox into Visual Studio 2010 so I can include it in my application project.
I've looked at the instructions provided in the read-me (shown below), but when I try to compile the library, I get this error:
Cannot open source file: 'src\tlsgnutlsserver.cpp': No such file or directory
Instructions provided in the read-me file:
Building gloox on MSVC++
use the included project file or create your own
adjust include + library paths if necessary
to receive any debug output you should use the LogSink facilities (this is not win32-specific)
build
Does anyone have experience using Gloox with VS10? If yes, can you please help me out? Thanks!
I assume you're using the official 1.0 tarball? I had the same problem (missing source file) and had to acquire the source from SVN instead. I used the 1.0 branch.
I encountered a few other build problems, namely
the release build configuration was set to build an Application (.exe) instead of Dynamic library (.dll) (Project->Properties->General->Configuration Type)
I needed to add DLL_EXPORT to the preprocessor definitions (Project->Properties->Configuration Properties->C/C++ ->Properties->Preprocessor)
src\atomicrefcount.cpp needed to be added to the project's source files. (Project->Add Existing Item)
This worked for me in express editions of both VC++ 2010 and VC++ 2008.
Hopefully it helps you as well.

HOW TO INSTALL openCV in Win7 -64-bit

I am facing problem in installing openCV in Win7 -64bit, and i need to know how to do it?
i have downloaded http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.3.1/
131mb file from here and it doesnt contain any exe file, it contains some cmake file.
Help me.
Thanks,
sumit
Assuming you are using Visual Studio, after extracting the files to a location like c:\OpenCV-2.3.1\ you should setup a new project and link OpenCV libraries.
A couple of months ago I wrote a detailed tutorial explaining how to setup projects using Visual Studio 2010 in a 64bit machine. You can find the tutorial here.
I am surprised that you are not having trouble with your entire windows breaking down/slowing down. Please read this http://answers.opencv.org/question/3996/cannot-do-anything-with-opencv-anymore-on-windows/
If you are NOT having the same problem, I would love to hear how you managed to setup OpenCV to work with Visual Studio 2010 (or Visual C++ 2010 Express) on Windows 7 64-bit machine.
Once again, sorry that I technically unable to post it as a comment because I know that it is not ACTUALLY an answer.
I've written a blog post which can help you with the installation. It includes detailed steps, right from adding the dll's to the PATH variable, to running a simple program. Hope it helps!
I am not sure what are your situation about, I can download a .exe from that page directly. The whole 131mb file is an exe file.
You may try this direct link.

Resources