I just started using openCV (version 2.4.1) in visual studio 2008 on windows 7. I did the installation and the “hello world” program as described in
http://opencv.willowgarage.com/wiki/VisualC%2B%2B
and
How to install OpenCV 2.0 on win32
Thanks to these instruction my program compiles fine without any errors. But when I first ran it I got error that files opencv_core241d.dll and tbb_debug.dll are missing. So obviously something didn’t get set right but as per the instruction in first link I copied these files to the same folder where the exe is sitting, Ran it third time and now I am getting the popup about libgcc_s_dw2-1.dll missing. I have done a search on my computer and no such dll is available.
I have researched this online and haven’t seen any real solution online about some issues like this. My guess is with the multiple dll being missing openCV didn;t get installed properly but I have no idea what really is going on.
Any help is desperately needed and will be appreciated heavily by my hairs and scalp.
Follow these steps and try.
Extract OpenCV 2.4.x into your main partition (I’ll assume
C\{opencvdir})Add
C\{opencvdir}\build\x86\vc9\binto environmental variable’spathvariable. And restart your computer (These settings are for 32bit (x86) Windows version and Visual Studio 2008 (VC9)).Now create a new Visual Studio project and add your sample OpenCV code.
Go to project Properties -> Configuration Properties -> C/C++ -> General -> Additional Directories and add:
Go to project Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies and add:
(These libraries are for a basic application. Add more as your application needs them).
Now run your project.
P.S. My recommendation is to use Visual Studio 2010 with OpenCV 2.3.x or higher.