Opencv 3.1 and ROS indigo?
I trying to implement a simple subscriber using cv_bridge, and opencv 3.1 but for some reason i am getting some errors when i compile my program.
as these
CMakeFiles/subscriber.dir/subscriber.cpp.o: In function `drawCross(cv::Mat, cv::Point_<int>, cv::Scalar_<double>, int)':
subscriber.cpp:(.text+0xec): undefined reference to `cv::line(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
subscriber.cpp:(.text+0x180): undefined reference to `cv::line(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
CMakeFiles/subscriber.dir/subscriber.cpp.o: In function `detect(cv::Mat)':
subscriber.cpp:(.text+0x65a): undefined reference to `cv::findContours(cv::_InputOutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, int, int, cv::Point_<int>)'
subscriber.cpp:(.text+0x845): undefined reference to `cv::drawContours(cv::_InputOutputArray const&, cv::_InputArray const&, int, cv::Scalar_<double> const&, int, int, cv::_InputArray const&, int, cv::Point_<int>)'
subscriber.cpp:(.text+0x959): undefined reference to `cv::findContours(cv::_InputOutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, int, int, cv::Point_<int>)'
subscriber.cpp:(.text+0xb44): undefined reference to `cv::drawContours(cv::_InputOutputArray const&, cv::_InputArray const&, int, cv::Scalar_<double> const&, int, int, cv::_InputArray const&, int, cv::Point_<int>)'
CMakeFiles/subscriber.dir/subscriber.cpp.o: In function `cv::String::String(char const*)':
subscriber.cpp:(.text._ZN2cv6StringC2EPKc[_ZN2cv6StringC5EPKc]+0x4f): undefined reference to `cv::String::allocate(unsigned long)'
CMakeFiles/subscriber.dir/subscriber.cpp.o: In function `cv::String::~String()':
subscriber.cpp:(.text._ZN2cv6StringD2Ev[_ZN2cv6StringD5Ev]+0x14): undefined reference to `cv::String::deallocate()'
CMakeFiles/subscriber.dir/subscriber.cpp.o: In function `cv::Mat::Mat(int, int, int, void*, unsigned long)':
subscriber.cpp:(.text._ZN2cv3MatC2EiiiPvm[_ZN2cv3MatC5EiiiPvm]+0x121): undefined reference to `cv::error(int, cv::String const&, char const*, char const*, int)'
subscriber.cpp:(.text._ZN2cv3MatC2EiiiPvm[_ZN2cv3MatC5EiiiPvm]+0x228): undefined reference to `cv::error(int, cv::String const&, char const*, char const*, int)'
CMakeFiles/subscriber.dir/subscriber.cpp.o: In function `Node::Node(ros::NodeHandle&)':
subscriber.cpp:(.text._ZN4NodeC2ERN3ros10NodeHandleE[_ZN4NodeC5ERN3ros10NodeHandleE]+0x2d1): undefined reference to `cv::setIdentity(cv::_InputOutputArray const&, cv::Scalar_<double> const&)'
subscriber.cpp:(.text._ZN4NodeC2ERN3ros10NodeHandleE[_ZN4NodeC5ERN3ros10NodeHandleE]+0x348): undefined reference to `cv::setIdentity(cv::_InputOutputArray const&, cv::Scalar_<double> const&)'
subscriber.cpp:(.text._ZN4NodeC2ERN3ros10NodeHandleE[_ZN4NodeC5ERN3ros10NodeHandleE]+0x3bf): undefined reference to `cv::setIdentity(cv::_InputOutputArray const&, cv::Scalar_<double> const&)'
CMakeFiles/subscriber.dir/subscriber.cpp.o: In function `Node::process()':
subscriber.cpp:(.text._ZN4Node7processEv[_ZN4Node7processEv]+0x72f): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
subscriber.cpp:(.text._ZN4Node7processEv[_ZN4Node7processEv]+0x791): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
subscriber.cpp:(.text._ZN4Node7processEv[_ZN4Node7processEv]+0x1296): undefined reference to `cv::rectangle(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
subscriber.cpp:(.text._ZN4Node7processEv[_ZN4Node7processEv]+0x141d): undefined reference to `cv::line(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
subscriber.cpp:(.text._ZN4Node7processEv[_ZN4Node7processEv]+0x155a): undefined reference to `cv::line(cv::_InputOutputArray const&, cv::Point_<int ...