0
$\begingroup$

Rosanswers logo

Hi all,

Working on Ubuntu 12.04, ROS Hydro

Recently, I decided I wanted to make changes to robot_state_publisher. In order to do this, I downloaded the source code and made changes, added its location to my ROS_PACKAGE_PATH (I can roscd to it just fine), and apt-get purge'd the binary. Unfortunately, now when I try to rosmake a package that depends on robot_state_publisher, I get the error I've included below. I've tried deleting the ~/.ros folder's contents (and re-initializing) and make clean-ing. Neither fix this problem.

I'm totally stumped. Does anyone have any ideas on this? It shouldn't be looking for that .pc file because it should no longer be looking for the binary, but I don't know what to delete or add to make it look in source.

mkdir -p bin
  cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=/opt/ros/hydro/share/ros/core/rosbuild/rostoolchain.cmake  ..
  [rosbuild] Building package youbot_description
  [rosbuild] Cached build flags older than manifests; calling rospack to get flags
  Failed to invoke /opt/ros/hydro/bin/rospack cflags-only-I;--deps-only youbot_description
  Package robot_state_publisher was not found in the pkg-config search path.
  Perhaps you should add the directory containing `robot_state_publisher.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'robot_state_publisher' found
  [rospack] Error: python function 'rosdep2.rospack.call_pkg_config' could not call 'pkg-config --cflags-only-I robot_state_publisher' without errors
  
  
  CMake Error at /opt/ros/hydro/share/ros/core/rosbuild/public.cmake:129 (message):
    
  
    Failed to invoke rospack to get compile flags for package
    'youbot_description'.  Look above for errors from rospack itself.
    Aborting.  Please fix the broken dependency!
  
  Call Stack (most recent call first):
    /opt/ros/hydro/share/ros/core/rosbuild/public.cmake:227 (rosbuild_invoke_rospack)
    CMakeLists.txt:12 (rosbuild_init)
  
  
  -- Configuring incomplete, errors occurred!

Originally posted by aespielberg on ROS Answers with karma: 113 on 2013-10-29

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Have you tried "catkin_make clean"?


Originally posted by maska with karma: 61 on 2013-10-30

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.