Ask Your Question
-1

undefind reference to cv::merge, mat::mat(_iplconstImage cnost*, bool);

asked 2014-07-30 01:41:13 -0600

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-07-31 03:51:00 -0600

boaz001 gravatar image

Seems you are trying to compile with g++ without telling the compiler where to look for includes and libraries. Also using a preceding slash in the include probably will not point to the right path.

A simple google search also reveals this.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-07-30 01:41:13 -0600

Seen: 166 times

Last updated: Jul 31 '14