1.) Download Eclipse IDE and complete software updates for C/C++ Development Tool:
2.) Download Eclipse Classic IDE
3.) Download OpenCV Libraries and install in C:\OpenCV Directory
4.) Download Cygwin and gcc, g++ plug-in's
5.) Download MinGw toolchain from Cygwin (see Dennis' notes at bottom)
You can setup Eclipse CDT to work with the OpenCV libraries.
Create a new C++ project in Eclipse CDT. Select MinGw as the toolchain.
In the project properties, go to the C/C++ Build->Settings->GCC C++ Compiler, set the directories to:
OpenCv\cv\include
OpenCv\cxcore\include
OpenCv\otherlibs\highgui
OpenCv\otherlibs\cvcam\include
OpenCv\cvaux\include
In the C++ Linker->Libraries, set:
cv
highgui
cxcore
In Library search path, set:
OpenCV\lib
Dennis: I had problems downloading mingw from cygwin, so instead I got it from the mingw website. You need to run the minimalist installer .exe and then you need to download and install 4 packages to get it up to current version. http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite has further instructions. To install just untar the packages and drag them into your mingw directory (C:/mingw for example). You need to also make sure C:/mingw is your PATH environment variable. To do this, right click and go to properties on My Computer. then, find system variables and edit it. DO NOT delete whatever's there, just put a semicolon and the new path if you need to add something.
Also, you may have to rename camshiftdemo to .cpp to run it.