undefind reference to cv::merge, mat::mat(_iplconstImage cnost*, bool);
Hello every one!
i am trying to capture an image and convert image data to byte array. for this i am using opencv in c++. for the same, i tried to install opencv on raspberry pi by following, below link
[http://mitchtech.net/raspberry-pi-opencv/]
after this i tried to run sample examples available at
pi@raspberrypi~/opencv-2.3.1/samples/python $ python ./camera.py
this example works fine. but when i tried to run c++ example is shows error:
pi@raspberrypi~/opencv-2.3.1/samples/cpp $ g++ camera.cpp
fatal error : cv.h not find
I thought it is because of complier not able to find cv.h header file. so for this i put the whole path of cv.h ie
include"/opencv/cv.h"
but i got a long list of errors:
image.cpp: undefind reference to cvLodadImage
image.cpp: undefind reference to InputArray(cv::mat::const&); image.cpp: undefind reference to mat::mat(_iplconstImage cnost*, bool); image.cpp: undefind reference to outputArray:: outputarray(cv::mat&); image.cpp: undefind reference to cv::merge();
kindly suggest how do i solve this issue? thank you