LA solution.. pas de moi mais...simplifiée.
OpenCV Version 1.0 with DevCPP
0) Run the setup (OpenCV_1.0.exe) program you just downloaded. Accept all the defaults; this will install OpenCV to C:\Program Files\OpenCV.
1) Add the C:\Program Files\OpenCV\bin directory and the C:\Program Files\OpenCV\otherlibs\highgui directory to your system PATH variable.
This tells the computer where to find the .dll system libraries. To do this, go to Start Menu->Control Panel -> System -> Advanced tab->Variables button.
In the lower box, find the variable labeled PATH. Click Edit. In the lower text box, navigate to the end and append(or copy-paste) :
C:\Program Files\OpenCV\bin;C:\Program Files\OpenCV\otherlibs\highgui (remember the semicolons). Click OK in all the windows.
2) Open up Bloodshed Dev-C++
The test file. Go to File->Open Project or File… and open up C:\Program Files\OpenCV\samples\c\contours.c
Make a new file (File->New->Source File). Copy and paste the code from contours.c into this new file, and save it as test.cpp
3) Go to Tools->Compiler Options. It should come up with the Compiler tab selected. Check the box labeled Add these commands to the
linker command line and type (or copy-paste) the following into the text box:
-lhighgui -lcv -lcxcore -lcvaux -lcvcam
This tells the IDE to link your program with the OpenCV libraries.
4) Switch to the <Directories> tab, and in the <Libraries> sub-tab add to directories(or copy-paste):
C:\Program Files\OpenCV\lib
5) Switch to the <C includes> tab. Add(or copy-paste):
C:\Program Files\OpenCV\cv\include
C:\Program Files\OpenCV\cvaux\include
C:\Program Files\OpenCV\cxcore\include
C:\Program Files\OpenCV\otherlibs\highgui
C:\Program Files\OpenCV\otherlibs\cvcam\include
6) Do the same thing for the <C++ includes> tab.
7) compile and run the test.cpp sample file with the command Execute->Compile and Run. ENJOY !!!!