OpenCV : Difficulty in working with cvBlobs Library - visual-studio-2010

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.

Related

Building C/C++ projects with ASM modules in Visual Studio 2010

I'm feeling like an eejit right now. I have been using Visual Studio 2010 Professional successfully for C/C++ projects for quite some time. But now I have a project that also includes a couple of ASM files (written for the Microsoft Assembler). I read a few articles about enabling MASM in Visual Studio. I followed the instructions for checking the boxes for MASM and MASM64 in the project's Build Customizations. Then I saved the Project and reopened it. But now it cannot load the project and gives this error message:
The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\masm64.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
Where do I find this masm64.targets file or how do I create it? It is not anywhere on the disk.
Thanks for any guidance.
A tip for anyone who runs into the same problem, I found masm64.targets on GitHub:
https://github.com/MMOCOM/OSIE-GF/blob/master/Rules/masm64.targets

Linking FreeImage VS2013

Have been trying to link FreeImage to with Visual Studio Express 2013 and getting little stuck, have followed
Building & Linking FreeImage with Visual Studio Express 2013
and problem with having to include seems to been fixed with update FreeImage.
Have downloaded and extracted Lib, .h, and DLL and linked in VS but still getting LNK2019.
In solution folder is simple folders named lib + inc and linked in options
C/C++ - Additional Include Directories - .\inc
linker - general - additional lib directories - .\lib
and the DLL is in the folder with the .exe
Any help would be greatly appreciated
Rick
Ok found solution, well work around. Rather than linking the lib's etc myself by using NuGet was able to get FreeImage up and running. If only all things could have such a simple answer.
Any further details about how to get it working by linking the headers and lib etc would still be great help for future lib's i may need to link.
https://www.nuget.org/packages/freeimage/

How to rebuild the mpfr.svn.build.vc10.zip in my own computer?

This question is about how to install "mpfr" with visual studio 2010 in windows OS.
Though I have actually solved the mpfr installation problem by using a pre-compiled mpfr library (see the details here: install mpfr via precompiled mpfr library), I would still prefer to rebuild it myself since I am new and can learn more in C++ and Visual studio through such experience.
However, per the guidelines in Brian Gladman's GMP/MPIR/MPFR/MPC page and after downloading the mpfr.svn.build.vc10 and mpfr-3.0.0.build.vc10, I failed to rebuild them myself per the readme.txt inside.
Is there anyone who has successfully rebuilt them?
I would need more detailed guidelines on this for newbies.
Thank you!
I've built MPIR, MPFR, and MPC with Visual Studio as part of gmpy ( https://code.google.com/p/gmpy/ ). A full snapshot of my directory structure, with all the source files, is available as https://gmpy.googlecode.com/files/full-src-mpir-mpfr-mpc-gmpy2-2.0.2.zip
Look for a file called windows_build.txt; it contains my notes for building a new release of gmpy2. It may not answer all your questions but it will give you a known working environment to start from.

opencv 2.4.2 Configuration with Visual Studio 2010 issue?

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.

C++, DeviL, Opengl and msvs2010 - It compiles and links, but cant load entry point in dll

I am trying to use the DevIl image library in Windows in my project, using MSVS2010. I have downloaded the sdk "DevIL 1.7.8 SDK for 32-bit Windows" from http://openil.sourceforge.net/download.php and put in a folder where all my others libraries are. I have configured my project to include its headers and to link with the .lib provided. I have copied the dll provided to the folder my .exe is. It compiles and links with no problem but when i try to execute it i have an error popup saying something like "procedure entry point _ilGetData#0 could not be located in DevIl.dll" (translation from spanish). I have followed the same steps as in all libraries i am using with no problems, so i donĀ“t know where the problem is.
Thanks for you help.
I believe the problem is that the binaries were built with an older version of Visual Studio... you may have to build the library yourself.

Resources