c++ - OpenCV linking problems with ROS -



c++ - OpenCV linking problems with ROS -

i'm trying compile this project (following instructions given). when building rosmake, bunch of undefined reference cv::string::deallocate() , undefined reference cv::string::allocate(unsigned long). find curious i'm getting error in functions while rest of opencv functions seem working properly.

i know happens because linker can't find objects these functions compiled to, i'm kind of new ros build scheme , can't find what's wrong.

i've tried using cmakelists.txt file provided, , adding find_package(opencv required) , target_link_libraries(xxx xxx ${opencv_libraries}), without making difference. know opencv installed , compiled (i've used before), , had installed ros without problems.

i'm using opencv 3, ros indigo, ubuntu 14.04

i had exact same problem - same error messages, same setup. i've managed solve it, though i'm not sure of steps did contributed. far can tell, due conflict of opencv versions - think had old versions of opencv cluttering /usr/include , /usr/local. uninstalled opencv packages (including ros ones) , including from-source install of opencv3 (also in /usr/local). installed ros bundle vision_opencv, seemed install opencv 2.4.8 (incidentally 1 recommended lsd slam). of course, annoying if need opencv3 other things, have local install in home directory (i couldn't figure out how ros link this).

i think solved problem, issue remaining got error messages saying not found. because bundle install leaves in (similar module include files), whereas create install step of from-source install copies them parent folder. around edited #include in file in used (lsd_slam_core/src/iowrapper/opencv/imagedisplay_opencv.cpp). seemed solve it!

i hope helps, can give farther details if needed.

c++ opencv linker ubuntu-14.04 ros

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -