Ask Your Question
1

Compiling from source error

asked 2012-03-08 07:56:50 -0500

Erik_S gravatar image

updated 2014-01-28 17:11:36 -0500

ngrennan gravatar image

I'm currently reinstalling ROS, exactly the way i did before this install. Basically just following this to the letter. Somehow, this is not working for me at the moment.

When the building process arrives at the part where it compiles (or 'rosmakes') ros_comm it halts, due to an error. Something is going wrong with the paths.

CMake Error at /home/erik/ros/ros/core/rosbuild/private.cmake:110 (message):
[rosbuild] rospack found package "cpp_common" at "", but the current
directory is "/home/erik/ros/ros_comm/test/test_crosspackage".  You 
should double-check your ROS_PACKAGE_PATH to ensure that packages are found in the
correct precedence order. Call Stack (most recent call first): /home/erik/ros/ros/core/rosbuild/public.cmake:180 (_rosbuild_check_package_location) CMakeLists.txt:16 (rosbuild_init).

So clearly something is going wrong filling out the actual path: rospack found package "cpp_common" at ""

I checked ROS_PACKAGE_PATH, but i wouldn't know what the correct order would be. Here it is (it scrolls a long way right).

robot_model_tutorials:visualization_tutorials:geometry_tutorials:common_tutorials:ros_tutorials:documentation:geometry_experimental:robot_model_visualization:geometry_visualization:diagnostics_monitors:executive_smach_visualization:visualization:slam_gmapping:navigation:vision_opencv:laser_pipeline:image_pipeline:image_transport_plugins:perception_pcl:image_common:rx:visualization_common:physics_ode:stage:simulator_gazebo:simulator_stage:xacro:executive_smach:robot_model:assimp:pluginlib:orocos_kinematics_dynamics:nodelet_core:geometry:bullet:filters:eigen:driver_common:diagnostics:common:common_msgs:bond_core:common_rosdeps:ros_comm:ros

Does anyone have a clue what is going wrong here? I'm using a fresh install of Ubuntu 10.04LTS (32bits).

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2012-03-10 21:15:23 -0500

KruseT gravatar image

updated 2012-03-12 09:04:40 -0500

tfoote gravatar image

This was a bug (my fault) in rosinstall 0.6.2

Make sure to update rosinstall by either running sudo pip install -U rosinstall

or

sudo easy_install -U rosinstall vcstools

edit flag offensive delete link more

Comments

Thanks! Unfortunately i can't test it now, http://pypi.python.org/simple/rosinstall/ is offline.

Erik_S gravatar image Erik_S  ( 2012-03-11 03:44:30 -0500 )edit

It works, thanks

Erik_S gravatar image Erik_S  ( 2012-03-14 03:11:35 -0500 )edit
1

answered 2012-03-09 21:54:00 -0500

cfo gravatar image

I was having the same problem yesterday. I finally got it working by changing the setup.sh file in the ros folder to an older version I still had (see below). But this is not really a proper solution.

#!/bin/sh
# THIS IS A FILE AUTO-GENERATED BY rosinstall
# IT IS UNLIKELY YOU WANT TO EDIT THIS FILE BY HAND
# IF YOU WANT TO CHANGE THE ROS ENVIRONMENT VARIABLES
# USE THE rosinstall TOOL INSTEAD.
# see: http://www.ros.org/wiki/rosinstall
export ROS_ROOT=/home/erik/ros/ros
export PATH=$ROS_ROOT/bin:$PATH
export PYTHONPATH=$ROS_ROOT/core/roslib/src:$PYTHONPATH
if [ ! "$ROS_MASTER_URI" ] ; then export ROS_MASTER_URI=http://localhost:11311 ; fi
export ROS_PACKAGE_PATH=/home/erik/ros/robot_model_tutorials:/home/erik/ros/visualization_tutorials:/home/erik/ros/geometry_tutorials:/home/erik/ros/common_tutorials:/home/erik/ros/ros_tutorials:/home/erik/ros/documentation:/home/erik/ros/geometry_experimental:/home/erik/ros/robot_model_visualization:/home/erik/ros/geometry_visualization:/home/erik/ros/diagnostics_monitors:/home/erik/ros/executive_smach_visualization:/home/erik/ros/visualization:/home/erik/ros/slam_gmapping:/home/erik/ros/navigation:/home/erik/ros/vision_opencv:/home/erik/ros/laser_pipeline:/home/erik/ros/image_pipeline:/home/erik/ros/image_transport_plugins:/home/erik/ros/perception_pcl_electric_unstable:/home/erik/ros/image_common:/home/erik/ros/rx:/home/erik/ros/visualization_common:/home/erik/ros/physics_ode:/home/erik/ros/stage:/home/erik/ros/simulator_gazebo:/home/erik/ros/simulator_stage:/home/erik/ros/xacro:/home/erik/ros/executive_smach:/home/erik/ros/robot_model:/home/erik/ros/assimp:/home/erik/ros/pluginlib:/home/erik/ros/orocos_kinematics_dynamics:/home/erik/ros/nodelet_core:/home/erik/ros/geometry:/home/erik/ros/bullet:/home/erik/ros/filters:/home/erik/ros/eigen:/home/erik/ros/driver_common:/home/erik/ros/diagnostics:/home/erik/ros/common:/home/erik/ros/common_msgs:/home/erik/ros/bond_core:/home/erik/ros/common_rosdeps:/home/erik/ros/ros_comm
export ROS_WORKSPACE=/home/erik/ros
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-03-08 07:56:50 -0500

Seen: 1,243 times

Last updated: Mar 12 '12