![]() |
OpenCV compilation problem (add directory for including header files)
Hi folks
I try to build a project that needs to have included openCV header files. These files are store in /usr/include/opencv but the problem is that this direcotry is maybe not in my include directive. sample of my file: #include "opencv/cvaux.h" but the cvaux.h has inside directive '#include <cv.h>' and it makes error that this cant be included. How can I add /usr/include/opencv direcotry to be searched for including like I do when write '#include <iostream>' help just to add this direcotry to be enabled for #include directive in c++ |
On the command line for make, add "-I /usr/include/opencv" (no quotes), or add that same string to the CFLAGS or INCLUDES variable in the makefile.
|
Quote:
Great, that works. Thakns so much |
| All times are GMT -5. The time now is 10:02 AM. |