LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   OpenCV compilation problem (add directory for including header files) (http://www.linuxquestions.org/questions/programming-9/opencv-compilation-problem-add-directory-for-including-header-files-695377/)

maikki 01-06-2009 12:51 PM

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++

raconteur 01-06-2009 01:09 PM

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.

maikki 01-07-2009 09:07 AM

Quote:

Originally Posted by raconteur (Post 3399026)
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.


Great, that works. Thakns so much


All times are GMT -5. The time now is 06:09 AM.