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

How to solve rosmake error when moving package directory?

asked 2012-07-07 21:24:45 -0600

sam gravatar image

I have tried:

  rosmake --pre-clean

or

  rosmake --target=clean
  rosmake

But I also get error message like

    CMake Error: The current CMakeCache.txt directory /home/ira/code/ros/sam_pcl/perception_pcl_electric_unstable/pcl/msg/build/CMakeCache.txt is different than the directory /home/wei/ros/perception_pcl_electric_unstable/pcl/msg/build where CMackeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
    CMake Error: The source "/home/ira/code/ros/sam_pcl/perception_pcl_electric_unstable/pcl/CMakeLists.txt" does not match the source "/home/wei/ros/perception_pcl_electric_unstable/pcl/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.

The Full message is:

  ira@ira-K42JP:~/code/ros/sam_pcl/perception_pcl_electric_unstable$ rosmake
  [ rosmake ] No package specified.  Building stack ['perception_pcl_electric_unstable']                   
  [ rosmake ] Packages requested are: ['perception_pcl_electric_unstable']                                 
  [ rosmake ] Logging to directory/home/ira/.ros/rosmake/rosmake_output-20120708-151720                    
  [ rosmake ] Expanded args ['perception_pcl_electric_unstable'] to:
  ['flann', 'cminpack', 'pcl_ros', 'pcl']
  [ rosmake ] Checking rosdeps compliance for packages perception_pcl_electric_unstable.  This may take a few seconds.
  [ rosmake ] rosdep check failed to find system dependencies: libvtk-qt                                   
  [rosmake-0] Starting >>> cpp_common [ make ]                                                             
  [rosmake-0] Finished <<< cpp_common ROS_NOBUILD in package cpp_common                                    
  [rosmake-1] Starting >>> roslib [ make ]                                                                 
  [rosmake-1] Finished <<< roslib ROS_NOBUILD in package roslib                                            
  [rosmake-2] Starting >>> rosbuild [ make ]                                                               
  [rosmake-2] Finished <<< rosbuild ROS_NOBUILD in package rosbuild
   No Makefile in package rosbuild       
  [rosmake-3] Starting >>> smclib [ make ]                                                                 
  [rosmake-1] Starting >>> rostime [ make ]                                                                
  [rosmake-0] Starting >>> std_msgs [ make ]                                                               
  [rosmake-2] Starting >>> roslang [ make ]                                                                
  [rosmake-1] Finished <<< rostime ROS_NOBUILD in package rostime                                          
  [rosmake-1] Starting >>> rosconsole [ make ]                                                             
  [rosmake-0] Finished <<< std_msgs ROS_NOBUILD in package std_msgs                                        
  [rosmake-0] Starting >>> rosgraph_msgs [ make ]                                                          
  [rosmake-2] Finished <<< roslang ROS_NOBUILD in package roslang
   No Makefile in package roslang          
  [rosmake-1] Finished <<< rosconsole ROS_NOBUILD in package rosconsole                                    
  [rosmake-2] Starting >>> rosclean [ make ]                                                               
  [rosmake-0] Finished <<< rosgraph_msgs ROS_NOBUILD in package rosgraph_msgs                              
  [rosmake-3] Finished <<< smclib ROS_NOBUILD in package smclib                                            
  [rosmake-3] Starting >>> rosgraph [ make ]                                                               
  [rosmake-1] Starting >>> rosparam [ make ]                                                               
  [rosmake-2] Finished <<< rosclean ROS_NOBUILD in package rosclean                                        
  [rosmake-1] Finished <<< rosparam ROS_NOBUILD in package rosparam                                        
  [rosmake-3] Finished <<< rosgraph ROS_NOBUILD in package rosgraph                                        
  [rosmake-1] Starting >>> roscpp_traits [ make ]                                                          
  [rosmake-2] Starting >>> rosmaster [ make ]                                                              
  [rosmake-3] Starting >>> rospy [ make ]                                                                  
  [rosmake-1] Finished <<< roscpp_traits ROS_NOBUILD in package roscpp_traits                              
  [rosmake-3] Finished <<< rospy ROS_NOBUILD in package rospy                                              
  [rosmake-0] Starting >>> xmlrpcpp [ make ]                                                               
  [rosmake-1] Starting >>> roscpp_serialization [ make ]                                                   
  [rosmake-2] Finished <<< rosmaster ROS_NOBUILD in package rosmaster                                      
  [rosmake-1] Finished <<< roscpp_serialization ROS_NOBUILD in package roscpp_serialization                
  [rosmake-2] Starting >>> rosunit [ make ]                                                                
  [rosmake-2] Finished <<< rosunit ROS_NOBUILD in package rosunit                                          
  [rosmake-1] Starting >>> pluginlib [ make ]                                                              
  [rosmake-0] Finished <<< xmlrpcpp ROS_NOBUILD in package xmlrpcpp                                        
  [rosmake-3] Starting >>> bond [ make ]                                                                   
  [rosmake-2] Starting >>> roscpp [ make ]                                                                 
  [rosmake-1] Finished <<< pluginlib ROS_NOBUILD in package pluginlib                                      
  [rosmake-2] Finished <<< roscpp ROS_NOBUILD in package roscpp                                            
  [rosmake-3] Finished <<< bond ROS_NOBUILD in package bond                                                
  [rosmake-0] Starting >>> cminpack [ make ]                                                               
  [rosmake-1] Starting >>> flann [ make ]                                                                  
  [rosmake-3] Starting >>> rosout [ make ]                                                                 
  [rosmake-2] Starting >>> bondcpp [ make ]                                                                
  [rosmake-0] Finished <<< cminpack [PASS] [ 3.78 seconds ]                                                
  [rosmake-3] Finished <<< rosout ROS_NOBUILD in package rosout                                            
  [rosmake-0] Starting >>> roslaunch [ make ]                                                              
  [rosmake-0] Finished <<< roslaunch ROS_NOBUILD in package roslaunch
   No Makefile in package roslaunch    
  [rosmake-2] Finished <<< bondcpp ROS_NOBUILD in package bondcpp                                          
  [rosmake-3] Starting >>> common_rosdeps [ make ]                                                         
  [rosmake-0] Starting >>> rostest [ make ]                                                                
  [rosmake-2] Starting >>> nodelet [ make ]                                                                
  [rosmake-3] Finished <<< common_rosdeps ROS_NOBUILD in package common_rosdeps                            
  [rosmake-0] Finished <<< rostest ROS_NOBUILD in package rostest                                          
  [rosmake-0] Starting >>> test_roslaunch [ make ]                                                         
  [rosmake-3] Starting >>> message_filters [ make ]                                                        
  [rosmake-2 ...
(more)
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-07-07 22:39:45 -0600

KruseT gravatar image

Delete the file: /home/ira/code/ros/sam_pcl/perception_pcl_electric_unstable/pcl/msg/build/CMakeCache.txt

It ought to be deleted by rosmake --pre-clean, but apparently it is not.

edit flag offensive delete link more
1

answered 2012-07-07 23:15:48 -0600

Either your CMakeCache.txt file is still not deleted or your Makefile is corrupt. Check is the Makefile contains the following line exclusively:

include $(shell rospack find mk)/cmake.mk
edit flag offensive delete link more

Comments

Which Makefile at perception_pcl_electric_unstable has this line? Thank you~

sam gravatar image sam  ( 2012-07-07 23:41:01 -0600 )edit

Question Tools

Stats

Asked: 2012-07-07 21:24:45 -0600

Seen: 6,259 times

Last updated: Jul 07 '12