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

"Rosmake tf" with nao toolchain cross compiling

asked 2012-10-03 14:10:44 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi, I have problems to make tf package. I am using Fuerte Ros-Base installation from Source, ubuntu 12. Tha aldebaran NAO atom cross-compiling. The boost libraries are in /path/to/nao-cross-toolchain-dir/sysroot/usr but ros boost config is searching into the wrong patth /path/to/nao-cross-toolchain-dir/cross folder. Thanks.

[ rosmake ] rosmake starting...                                                 
    [ rosmake ] Packages requested are: ['tf']                                      
    [ rosmake ] Logging to directory /home/nao/.ros/rosmake/rosmake_output-20121003-205651
    [ rosmake ] Expanded args ['tf'] to:
    [rosmake-0] Starting >>> bullet [ make ]                                        
    [rosmake-1] Starting >>> geometry_msgs [ make ]                                 
    [rosmake-1] Finished <<< geometry_msgs  No Makefile in package geometry_msgs    
    [rosmake-1] Starting >>> sensor_msgs [ make ]                                   
    [rosmake-1] Finished <<< sensor_msgs  No Makefile in package sensor_msgs        
    [rosmake-1] Starting >>> roslang [ make ]                                       
    [rosmake-1] Finished <<< roslang  No Makefile in package roslang                
    [rosmake-1] Starting >>> roscpp [ make ]                                        
    [rosmake-1] Finished <<< roscpp  No Makefile in package roscpp                  
    [rosmake-1] Starting >>> rosconsole [ make ]                                    
    [rosmake-1] Finished <<< rosconsole  No Makefile in package rosconsole          
    [rosmake-1] Starting >>> angles [ make ]                                        
    [rosmake-1] Finished <<< angles [PASS] [ 0.41 seconds ]                         
    [rosmake-1] Starting >>> rospy [ make ]                                         
    [rosmake-1] Finished <<< rospy  No Makefile in package rospy                    
    [rosmake-1] Starting >>> rostest [ make ]                                       
    [rosmake-1] Finished <<< rostest  No Makefile in package rostest                
    [rosmake-1] Starting >>> roswtf [ make ]                                        
    [rosmake-1] Finished <<< roswtf  No Makefile in package roswtf                  
    [rosmake-1] Starting >>> message_filters [ make ]                               
    [rosmake-1] Finished <<< message_filters  No Makefile in package message_filters
    [ rosmake ] All 30 lines
      /home/nao/ros-nao/ros/fuerte/share/ros/core/mk/ warning: overriding commands for target `all'
      /home/nao/ros-nao/ros/fuerte/share/ros/core/mk/ warning: ignoring old commands for target `all'
      /home/nao/ros-nao/ros/fuerte/share/ros/core/mk/ warning: overriding commands for target `clean'
      /home/nao/ros-nao/ros/fuerte/share/ros/core/mk/ warning: ignoring old commands for target `clean'
      mkdir -p bin
      cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
      [rosbuild] Building package bullet
      [rosbuild] Including /home/nao/ros-nao/ros/fuerte/share/rospy/rosbuild/rospy.cmake
      [rosbuild] Including /home/nao/ros-nao/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake
      [rosbuild] Including /home/nao/ros-nao/ros/fuerte/share/common-lisp/ros/roslisp/rosbuild/roslisp.cmake
      Traceback (most recent call last):
        File "/home/nao/ros-nao/ros/fuerte/bin/rosboost-cfg", line 5, in <module>
          pkg_resources.run_script('roslib==1.8.9', 'rosboost-cfg')
        File "/usr/lib/python2.7/dist-packages/", line 499, in run_script
          self.require(requires)[0].run_script(script_name, ns)
        File "/usr/lib/python2.7/dist-packages/", line 1235, in run_script
          execfile(script_filename, namespace, namespace)
        File "/home/nao/ros-nao/ros/fuerte/lib/python2.7/dist-packages/roslib-1.8.9-py2.7.egg/EGG-INFO/scripts/rosboost-cfg", line 35, in <module>
        File "/home/nao/ros-nao/ros/fuerte/lib/python2.7/dist-packages/roslib-1.8.9-py2.7.egg/rosboost_cfg/", line 328, in main
          raise BoostError("Cannot find boost in any of %s"%search_paths(options.sysroot))
      rosboost_cfg.rosboost_cfg.BoostError: "Cannot find boost in any of [('/path/to/nao-cross-toolchain-dir//cross//usr', True), ('/path/to/nao-cross-toolchain-dir//cross//usr/local', True)]"
      CMake Error at /home/nao/ros-nao/ros/fuerte/share/ros/core/rosbuild/public.cmake:852 (message):
        rosboost-cfg --include_dirs failed
      Call Stack (most recent call first):
        CMakeLists.txt:8 (rosbuild_add_boost_directories)

      -- Configuring incomplete, errors occurred ...
edit retag flag offensive close merge delete


Did you set the BOOST_ROOT environment variable, and is it pointing to the right directory?

AHornung gravatar image AHornung  ( 2012-10-03 23:34:59 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-10-04 07:58:40 -0500

LeonardoLeottau gravatar image

Great... thanks a lot. export ROS_BOOST_ROOT="${CTC_DIR}/sysroot/usr" export ROS_BOOST_VERSION="1.45.0" export BOOST_ROOT="${CTC_DIR}/sysroot/usr"

edit flag offensive delete link more

Question Tools


Asked: 2012-10-03 14:10:44 -0500

Seen: 281 times

Last updated: Oct 03 '12