cross compilation problem in opencv2.4.9

asked 2014-10-01 05:45:52 -0600

kanchan gravatar image

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

edit retag flag offensive close merge delete