Ask Your Question

kanchan's profile - activity

2018-02-25 16:39:02 -0600 received badge  Popular Question (source)
2014-10-01 05:45:52 -0600 asked a question cross compilation problem in opencv2.4.9

dear,

i trying to compile this stitching program using opencv but it is giving me an error

program is --> sample program of stitching from opencv2.4.9

Error is-->

kanchan@Mylappi:~$ arm-linux-g++ -O2 -I/usr/local/include/opencv -I/usr/local/include/opencv2 stitching.cpp -L/home/kanchan/opencv/opencv-2.4.9/build/lib -o stitched -lm -lopencv_core -lopencv_highgui -lopencv_cxcore -lcvblob -lopencv_ml -lopencv_aux -lopencv_rt -lopencv_pthread -lopencv_dl -lopencv_z -lopencv_png12 -lopencv_jpeg -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_video

cc1plus: warning: include location "/usr/local/include/opencv" is unsafe for cross-compilation cc1plus: warning: include location "/usr/local/include/opencv2" is unsafe for cross-compilation stitching.cpp:45:39: error: opencv2/highgui/highgui.hpp: No such file or directory stitching.cpp:46:42: error: opencv2/stitching/stitcher.hpp: No such file or directory stitching.cpp:49: error: 'cv' is not a namespace-name stitching.cpp:49: error: expected namespace-name before ';' token stitching.cpp:52: error: expected constructor, destructor, or type conversion before '<' token stitching.cpp: In function 'int main(int, char**)': stitching.cpp:63: error: 'Mat' was not declared in this scope stitching.cpp:63: error: expected ;' before 'pano' stitching.cpp:64: error: 'Stitcher' was not declared in this scope stitching.cpp:64: error: expected;' before 'stitcher' stitching.cpp:65: error: 'Stitcher' is not a class or namespace stitching.cpp:65: error: expected ;' before 'status' stitching.cpp:67: error: 'status' was not declared in this scope stitching.cpp:67: error: 'Stitcher' is not a class or namespace stitching.cpp:73: error: 'pano' was not declared in this scope stitching.cpp:73: error: 'imwrite' was not declared in this scope stitching.cpp: In function 'int parseCmdArgs(int, char**)': stitching.cpp:126: error: 'Mat' was not declared in this scope stitching.cpp:126: error: expected;' before 'img' stitching.cpp:127: error: 'img' was not declared in this scope stitching.cpp:132: error: 'imgs' was not declared in this scope stitching.cpp:132: error: 'img' was not declared in this scope

2014-10-01 05:01:39 -0600 received badge  Scholar (source)
2014-09-30 03:10:58 -0600 asked a question 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:~$