c++ - Building ROS Node which contains OpenCV in Netbeans 8.0 leads to undefined references -


i trying compile code ros (indigo) node contains opencv 3.0 code. node of colleague compiles fine in eclipse on ubuntu 14.04 throws following errors when try compile in netbeans (8.0.2):

linking cxx executable devel/lib/lsvo/tft_estimation cmakefiles/tft_estimation.dir/src/tft_test.cpp.o: in function `drawmatches(std::vector<eigen::matrix<double, -1, 1, 0, -1, 1>, std::allocator<eigen::matrix<double, -1, 1, 0, -1, 1> > > const&, std::vector<eigen::matrix<double, -1, 1, 0, -1, 1>, std::allocator<eigen::matrix<double, -1, 1, 0, -1, 1> > > const&, std::vector<eigen::matrix<double, -1, 1, 0, -1, 1>, std::allocator<eigen::matrix<double, -1, 1, 0, -1, 1> > > const&)': tft_test.cpp:(.text+0xbcf): undefined reference `cv::string::allocate(unsigned long)' tft_test.cpp:(.text+0xc6a): undefined reference `cv::imread(cv::string const&, int)' tft_test.cpp:(.text+0xc96): undefined reference `cv::string::deallocate()' tft_test.cpp:(.text+0xcb7): undefined reference `cv::string::allocate(unsigned long)' tft_test.cpp:(.text+0xd52): undefined reference `cv::imread(cv::string const&, int)' tft_test.cpp:(.text+0xd7e): undefined reference `cv::string::deallocate()' tft_test.cpp:(.text+0xd9f): undefined reference `cv::string::allocate(unsigned long)' tft_test.cpp:(.text+0xe3a): undefined reference `cv::imread(cv::string const&, int)' tft_test.cpp:(.text+0xe66): undefined reference `cv::string::deallocate()' tft_test.cpp:(.text+0x1157): undefined reference `cv::line(cv::_inputoutputarray const&, cv::point_<int>, cv::point_<int>, cv::scalar_<double> const&, int, int, int)' tft_test.cpp:(.text+0x11e6): undefined reference `cv::line(cv::_inputoutputarray const&, cv::point_<int>, cv::point_<int>, cv::scalar_<double> const&, int, int, int)' tft_test.cpp:(.text+0x1276): undefined reference `cv::line(cv::_inputoutputarray const&, cv::point_<int>, cv::point_<int>, cv::scalar_<double> const&, int, int, int)' tft_test.cpp:(.text+0x1445): undefined reference `cv::string::allocate(unsigned long)' tft_test.cpp:(.text+0x146a): undefined reference `cv::imshow(cv::string const&, cv::_inputarray const&)' tft_test.cpp:(.text+0x1474): undefined reference `cv::string::deallocate()' tft_test.cpp:(.text+0x1535): undefined reference `cv::string::deallocate()' tft_test.cpp:(.text+0x1551): undefined reference `cv::string::deallocate()' tft_test.cpp:(.text+0x1572): undefined reference `cv::string::deallocate()' tft_test.cpp:(.text+0x1596): undefined reference `cv::string::deallocate()' collect2: error: ld returned 1 exit status make[2]: *** [devel/lib/lsvo/tft_estimation] error 1 make[1]: *** [cmakefiles/tft_estimation.dir/all] error 2 make: *** [all] error 2 

i have feeling somehow problem of linking opencv libraries correctly don't know how because "linking" menu gone in netbeans 8.0.


Comments

Popular posts from this blog

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

javascript - Create websocket without connecting -

sharepoint - Accessing files across a shared directory using a Windows service -