Ask Your Question
0

Why rosmake will skip when I set locale?

asked 2012-09-03 03:03:25 -0500

sam gravatar image

updated 2012-09-05 21:15:08 -0500

I have a language.sh:

  export LANG=en_US
  export LC_MESSAGE=en_US.UTF8

I have one package which rosmake will show error msg in chinese:

  sam@sam:~/code/ros/perception/recognition/rein$ rosmake
  [ rosmake ] rosmake starting...                                                                                                             
  [ rosmake ] No package specified.  Building ['rein']                                                                                        
  [ rosmake ] Packages requested are: ['rein']                                                                                                
  [ rosmake ] Logging to directory /home/sam/.ros/rosmake/rosmake_output-20120903-205804                                                      
  [ rosmake ] Expanded args ['rein'] to:
  ['rein']                                                                                             
  [rosmake-0] Starting >>> geometry_msgs [ make ]                                                                                             
  [rosmake-0] Finished <<< geometry_msgs  No Makefile in package geometry_msgs                                                                
  [rosmake-0] Starting >>> sensor_msgs [ make ]                                                                                               
  [rosmake-0] Finished <<< sensor_msgs  No Makefile in package sensor_msgs                                                                    
  [rosmake-0] Starting >>> roslang [ make ]                                                                                                   
  [rosmake-0] Finished <<< roslang  No Makefile in package roslang                                                                            
  [rosmake-0] Starting >>> roscpp [ make ]                                                                                                    
  [rosmake-0] Finished <<< roscpp  No Makefile in package roscpp                                                                              
  [rosmake-0] Starting >>> rosbuild [ make ]                                                                                                  
  [rosmake-0] Finished <<< rosbuild  No Makefile in package rosbuild                                                                          
  [rosmake-0] Starting >>> roslib [ make ]                                                                                                    
  [rosmake-0] Finished <<< roslib  No Makefile in package roslib                                                                              
  [rosmake-0] Starting >>> rosconsole [ make ]                                                                                                
  [rosmake-0] Finished <<< rosconsole  No Makefile in package rosconsole                                                                      
  [rosmake-0] Starting >>> pluginlib [ make ]                                                                                                 
  [rosmake-0] Finished <<< pluginlib ROS_NOBUILD in package pluginlib                                                                         
  [rosmake-0] Starting >>> rospy [ make ]                                                                                                     
  [rosmake-0] Finished <<< rospy  No Makefile in package rospy                                                                                
  [rosmake-0] Starting >>> bond [ make ]                                                                                                      
  [rosmake-0] Finished <<< bond ROS_NOBUILD in package bond                                                                                   
  [rosmake-0] Starting >>> smclib [ make ]                                                                                                    
  [rosmake-0] Finished <<< smclib ROS_NOBUILD in package smclib                                                                               
  [rosmake-0] Starting >>> bondcpp [ make ]                                                                                                   
  [rosmake-0] Finished <<< bondcpp ROS_NOBUILD in package bondcpp                                                                             
  [rosmake-0] Starting >>> nodelet [ make ]                                                                                                   
  [rosmake-0] Finished <<< nodelet ROS_NOBUILD in package nodelet                                                                             
  [rosmake-0] Starting >>> rosservice [ make ]                                                                                                
  [rosmake-0] Finished <<< rosservice  No Makefile in package rosservice                                                                      
  [rosmake-0] Starting >>> dynamic_reconfigure [ make ]                                                                                       
  [rosmake-0] Finished <<< dynamic_reconfigure ROS_NOBUILD in package dynamic_reconfigure                                                     
  [rosmake-0] Starting >>> bullet [ make ]                                                                                                    
  [rosmake-0] Finished <<< bullet ROS_NOBUILD in package bullet                                                                               
  [rosmake-0] Starting >>> angles [ make ]                                                                                                    
  [rosmake-0] Finished <<< angles ROS_NOBUILD in package angles                                                                               
  [rosmake-0] Starting >>> rostest [ make ]                                                                                                   
  [rosmake-0] Finished <<< rostest  No Makefile in package rostest                                                                            
  [rosmake-0] Starting >>> roswtf [ make ]                                                                                                    
  [rosmake-0] Finished <<< roswtf  No Makefile in package roswtf                                                                              
  [rosmake-0] Starting >>> message_filters [ make ]                                                                                           
  [rosmake-0] Finished <<< message_filters  No Makefile in package message_filters                                                            
  [rosmake-0] Starting >>> tf [ make ]                                                                                                        
  [rosmake-0] Finished <<< tf ROS_NOBUILD in package tf                                                                                       
  [rosmake-0] Starting >>> rosbag [ make ]                                                                                                    
  [rosmake-0] Finished <<< rosbag  No Makefile in package rosbag                                                                              
  [rosmake-0] Starting >>> std_msgs [ make ]                                                                                                  
  [rosmake-0] Finished <<< std_msgs  No Makefile in package std_msgs                                                                          
  [rosmake-0] Starting >>> nodelet_topic_tools [ make ]                                                                                       
  [rosmake-0] Finished <<< nodelet_topic_tools ROS_NOBUILD in package nodelet_topic_tools                                                     
  [rosmake-0] Starting >>> common_rosdeps [ make ]                                                                                            
  [rosmake-0] Finished <<< common_rosdeps ROS_NOBUILD in package common_rosdeps                                                               
  [rosmake-0] Starting >>> pcl_ros [ make ]                                                                                                   
  [rosmake-0] Finished <<< pcl_ros ROS_NOBUILD in package pcl_ros                                                                             
  [rosmake-0] Starting >>> opencv2 [ make ]                                                                                                   
  [rosmake-0] Finished <<< opencv2 ROS_NOBUILD in package opencv2                                                                             
  [rosmake-0] Starting >>> image_geometry [ make ]                                                                                            
  [rosmake-0] Finished <<< image_geometry ROS_NOBUILD in package image_geometry                                                               
  [rosmake-0] Starting >>> cv_bridge [ make ]                                                                                                 
  [rosmake-0] Finished <<< cv_bridge ROS_NOBUILD in package cv_bridge                                                                         
  [rosmake-0] Starting >>> image_transport [ make ]                                                                                           
  [rosmake-0] Finished <<< image_transport ROS_NOBUILD in package image_transport                                                             
  [rosmake-0] Starting >>> pcl [ make ]                                                                                                       
  [rosmake-0] Finished <<< pcl  No Makefile in package pcl                                                                                    
  [rosmake-0] Starting >>> rein [ make ]                                                                                                      
  [ rosmake ] Last 40 linesin: 4.9 sec ]                                                                           [ 1 Active 31/32 Complete ]
  {-------------------------------------------------------------------------------
    make[3]: Entering directory `/home/sam/code/ros/perception/recognition/rein/build'
    make[3]: Leaving directory `/home/sam/code/ros/perception/recognition/rein/build'
    [ 13%] Built target ROSBUILD_gensrv_cpp
    make[3]: Entering directory `/home/sam/code/ros/perception/recognition/rein/build'
    make[3]: Leaving directory `/home/sam/code/ros/perception/recognition/rein/build'
    [ 23%] Built target ROSBUILD_gensrv_py
    make[3]: Entering directory `/home/sam/code/ros/perception/recognition/rein ...
(more)
edit retag flag offensive close merge delete

Comments

Interesting.. What does a "make" in the directory result in?

dornhege gravatar image dornhege  ( 2012-09-03 03:34:15 -0500 )edit

I have edited my original post to add `make` result.

sam gravatar image sam  ( 2012-09-03 04:33:02 -0500 )edit
1

OK, maybe it's just that you have the locale not installed?

dornhege gravatar image dornhege  ( 2012-09-03 06:14:25 -0500 )edit

What's that means? How to fix it? Thank you~

sam gravatar image sam  ( 2012-09-03 13:40:22 -0500 )edit

Can you check the output of locale -a?

dornhege gravatar image dornhege  ( 2012-09-04 01:07:05 -0500 )edit

I have edited my original post to add locale -a result.

sam gravatar image sam  ( 2012-09-05 21:15:55 -0500 )edit

The good thing is, the locale is there...

dornhege gravatar image dornhege  ( 2012-09-05 23:57:15 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2012-09-06 17:19:14 -0500

tfoote gravatar image

rosmake does some parsing of the stdout to detect if there was no rule to make target. The string matching is likely screwed up by the different locale.

edit flag offensive delete link more

Comments

How to fix it? I also couldn't understand what happened.

sam gravatar image sam  ( 2012-09-12 05:51:21 -0500 )edit

Set your locale to en_US.UTF-8 when running rosmake.

tfoote gravatar image tfoote  ( 2012-09-18 22:36:03 -0500 )edit

I set export LANG=en_US export LC_MESSAGE=en_US.UTF-8 But still pass the rosmake.process.

sam gravatar image sam  ( 2012-09-19 02:22:50 -0500 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2012-09-03 03:03:25 -0500

Seen: 232 times

Last updated: Sep 06 '12