Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catkin build package_name can't link shared libraries that are in catkin_ws/devel/lib correctly #385

Closed
yuzhangbit opened this issue Jun 27, 2016 · 1 comment

Comments

@yuzhangbit
Copy link

yuzhangbit commented Jun 27, 2016

There are some problems with catkin build command.

ROS package1 generated a shared library and I install it into catkin_ws/devel/ . Package2 links the shared lib generated by package1. When I run catkin build package2, it reports

CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "package1"
......................

If I run catkin build package1(no error when building package1), then run catkin build package2. I got

/usr/bin/ld: cannot find -lpackage1
collect2: error: ld returned 1 exit status

If I delete catkin_ws/build and catkin_ws/devel and run catkin_make in catkin_ws, there is no error at all.

It seem catkin build can't handle dependences of ros packages and can't link shared libs correctly.

System Info

  • Operating System: Ubuntu 14.04 LTS
  • Python Version: Python 2.7.6
  • Version of catkin_tools: catkin_tools 0.4.2 [GCC 4.8.2]
  • ROS Distro: Indigo
@jbohren
Copy link
Contributor

jbohren commented Jun 28, 2016

@yuzhangbit Can you post the example packages that you think should be building?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants