c - Eclipse + OpenCV + Cygwin --> cv.h: No such file or directory -
hi i'm having troubles in eclipse including opencv library. follow lot of tutorials can't compile anything. here output console.
building file: ../hand.c invoking: cygwin c compiler gcc -o2 -g -wall -c -fmessage-length=0 -mmd -mp -mf"hand.d" -mt"hand.d" -o"hand.o" "../hand.c" cygwin warning: ms-dos style path detected: d:\eclipse_workspace_c++\helloworld\default preferred posix equivalent is: /cygdrive/d/eclipse_workspace_c++/helloworld/default cygwin environment variable option "nodosfilewarning" turns off warning. consult user's guide more details posix paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames ../hand.c:3:16: fatal error: cv.h: no such file or directory compilation terminated. subdir.mk:18: recipe target `hand.o' failed make: *** [hand.o] error 1
i'm using opencv2.0.
i configured in proyect properties c/c++ build -> settings -> tool settings tab -> compiler , linker add library , headers of opencv can not compile it.
screenshoot of eclipse project.
solved!
steps configure eclipse , opencv 2.4.5 in windows
1) after installing opencv include in environment path directory opencv installed, mine opencv\opencv2.4.5\build\include
2) use cygwin compile c files. configure eclipse using cdt cygwin , in project setting put next configuration.
if using mingw put there in linker settings. me it's vc9.
3)my source file like
#include <stdio.h> #include <stdlib.h> #include <cv.h> int main(void) { puts("hello world!!!"); return exit_success; }
Comments
Post a Comment