Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

giving an error when i include opencv librariry files

dear,

i am trying to compile the opencv code, but it is giving me an error while compiling the opencv program. i guess the problem is with i is not able to detect opencv library file. but i am not getting that error ..i have included each and every path.

kanchan@Mylappi:~$ arm-linux-g++ -O2 -I/usr/local/include/opencv bck_sub.cpp -L/home/kanchan/opencv/opencv-2.4.9/build/lib -o find_obj -lcv -lhighgui -lcxcore -lml -lcvaux -lrt -lpthread -ldl -lz -lpng12 -ljpeg cc1plus: warning: include location "/usr/local/include/opencv" is unsafe for cross-compilation bck_sub.cpp: In function 'int main(int, char**)': bck_sub.cpp:12: error: 'VideoCapture' is not a member of 'cv' bck_sub.cpp:12: error: expected ;' before 'cap' bck_sub.cpp:13: error: 'BackgroundSubtractorMOG2' is not a member of 'cv' bck_sub.cpp:13: error: expected;' before 'bg' bck_sub.cpp:14: error: 'bg' was not declared in this scope bck_sub.cpp:19: error: 'namedWindow' is not a member of 'cv' bck_sub.cpp:20: error: 'namedWindow' is not a member of 'cv' bck_sub.cpp:24: error: 'cap' was not declared in this scope bck_sub.cpp:31: error: 'imshow' is not a member of 'cv' bck_sub.cpp:32: error: 'imshow' is not a member of 'cv' bck_sub.cpp:33: error: 'waitKey' is not a member of 'cv' kanchan@Mylappi:~$