ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

We have a similar problem.

Here is the error log for compiling cob_bringup:

fxm@sony-fxm:~/projects/groovy/care-o-bot/cob_robots/cob_bringup$ make
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=/opt/ros/groovy/share/ros/core/rosbuild/rostoolchain.cmake  ..
[rosbuild] Building package cob_bringup
[rosbuild] Cached build flags older than manifests; calling rospack to get flags
Failed to invoke /opt/ros/groovy/bin/rospack cflags-only-I;--deps-only cob_bringup
Package swig-wx was not found in the pkg-config search path.
Perhaps you should add the directory containing `swig-wx.pc'
to the PKG_CONFIG_PATH environment variable
No package 'swig-wx' found
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/rosdep2/rospack.py", line 45, in call_pkg_config
    value = subprocess.check_output(['pkg-config', option, pkg_name])
  File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['pkg-config', '--cflags-only-I', 'swig-wx']' returned non-zero exit status 1
[rospack] Error: could not call python function 'rosdep2.rospack.call_pkg_config'


CMake Error at /opt/ros/groovy/share/ros/core/rosbuild/public.cmake:129 (message):


  Failed to invoke rospack to get compile flags for package 'cob_bringup'.
  Look above for errors from rospack itself.  Aborting.  Please fix the
  broken dependency!

Call Stack (most recent call first):
  /opt/ros/groovy/share/ros/core/rosbuild/public.cmake:227 (rosbuild_invoke_rospack)
  CMakeLists.txt:16 (rosbuild_init)


-- Configuring incomplete, errors occurred!
make: *** [all] Error 1

We were able to build and run our simulation after commenting the swig-wx related lines in /opt/ros/groovy/share/rxtools/package.xml. However, manipulating read-only files can't be the final solution...

Any suggestions? Thank you!