Coder Social home page Coder Social logo

Comments (3)

tfoote avatar tfoote commented on August 23, 2024

rospack asks the underlying packages for their exported libraries. Either my_library or one of it's dependencies are using the older version and exporting the linker flags. If you are using any package from the binary installation and it uses the Opencv, it will require 2.4.8 since that's what it's compiled against. You need to find any package using opencv and make sure that it also finds 2.4.9 as well.

from rospack.

ravich2-7183 avatar ravich2-7183 commented on August 23, 2024

@tfoote
Thanks for responding.

relevant contents of my manifest.xml are:

<package>
  <description brief="my_package">
     my_package
  </description>

  <depend package="roscpp"/>
  <depend package="tf"/>
  <depend package="sensor_msgs"/>
  <!-- <depend package="opencv2"/> -->
  <depend package="image_transport"/>
  <depend package="cv_bridge/>

</package>

You are right in that cv_bridge is the package brining in the opencv2.4.8 libs as revealed by:
rospack libs-only-l cv_bridge

(Since I'm using ros-indigo, I commented out the dependency on opencv2)

For now, I deleted the opencv2.4.8 libs from /usr/lib/x86_64-linux-gnu/, and replaced them with symlinks to the opencv2.4.9 ones in /usr/loca/lib/. Is there a better way to make sure that /opt/ros/indigo/lib/libcv_bridge.so finds opencv2.4.9?

from rospack.

tfoote avatar tfoote commented on August 23, 2024

The correct way to fix this is to recompile all packages using opencv from source with 2.4.9 on your path such that their CMake configuration stage finds the newer version. You cannot use the precompiled binary packages. The symlinking is fragile and relies on 2.4.8 and 2.4.9 being ABI compatible. And may break any other system actually using/relying on 2.4.8.

Since this isn't a rospack issue. I'm going to close this. If you need more help please ask on http://answers.ros.org

from rospack.

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.