Giter Club home page Giter Club logo

Comments (3)

jfstepha avatar jfstepha commented on July 28, 2024

When I try to catkin_make rtabmap_ros, it fails with:
Linking CXX executable /home/jfstepha/catkin_ws/devel/lib/rtabmap_ros/rtabmapviz /usr/bin/ld: warning: libopencv_core.so.3.0, needed by /home/jfstepha/catkin_ws/devel/lib/librtabmap_core.so, may conflict with libopencv_core.so.2.4 /usr/bin/ld: CMakeFiles/rtabmapviz.dir/src/GuiWrapper.cpp.o: undefined reference to symbol '_ZN2cv6String10deallocateEv' //usr/local/lib/libopencv_core.so.3.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [/home/jfstepha/catkin_ws/devel/lib/rtabmap_ros/rtabmapviz] Error 1 make[1]: *** [rtabmap_ros/CMakeFiles/rtabmapviz.dir/all] Error 2 make: *** [all] Error 2 make: INTERNAL: Exiting with 3 jobserver tokens available; should be 2!

I have less of a clue of how to fix this one.

from rtabmap_ros.

matlabbe avatar matlabbe commented on July 28, 2024

Mixing OpenCV 2 and OpenCV 3 can be problematic. ROS packages are using OpenCV 2. Three solutions:

  1. Only use OpenCV installed by ROS. If you need SIFT or SURF, you may go with solution 2.
  2. Build OpenCV 2 from source and install in /usr/local (default). There should not be any incompatibilities with the OpenCV installed by ROS (the two can live side-by-side).
  3. If you really need OpenCV3, uninstall OpenCV 2 binaries. This will remove all ROS packages depending on it or indirectly through cv_bridge. You should build all these packages from source with your OpenCV 3 installation. I think cv_bridge can be built with OpenCV 3. So after that, everything will link on the same OpenCV libraries.

cheers,
Mathieu

from rtabmap_ros.

jfstepha avatar jfstepha commented on July 28, 2024

Excellent, thanks for your help. I removed OpenCV3, and now have rtabmap_ros building.

from rtabmap_ros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.