Ask Your Question
0

error in build a package

asked 2013-03-19 19:14:10 -0600

salma gravatar image

updated 2014-01-28 17:15:48 -0600

ngrennan gravatar image

Hi, i has a package in my home named navibot , it's CMake is :

cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)

# Set the build type.  Options are:
#  Coverage       : w/ debug symbols, w/o optimization, w/ code-coverage
#  Debug          : w/ debug symbols, w/o optimization
#  Release        : w/o debug symbols, w/ optimization
#  RelWithDebInfo : w/ debug symbols, w/ optimization
#  MinSizeRel     : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)

rosbuild_init()

#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set the default path for built libraries to the "lib" directory
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

#uncomment if you have defined messages
#rosbuild_genmsg()
#uncomment if you have defined services
#rosbuild_gensrv()

#common commands for building c++ executables and libraries
#rosbuild_add_library(${PROJECT_NAME} src/example.cpp)

rosbuild_add_boost_directories()

rosbuild_add_executable(navibot src/navibot_v1.1New.cpp)

#target_link_libraries(example ${PROJECT_NAME})

when building it i get 1 failure :


[ rosmake ] rosmake starting...                                                 
[ rosmake ] Packages requested are: ['navibot']                                 
[ rosmake ] Logging to directory /home/salma/.ros/rosmake/rosmake_output-20130320-070702
[ rosmake ] Expanded args ['navibot'] to:
['navibot']                           
[rosmake-0] Starting >>> geometry_msgs [ make ]                                 
[rosmake-0] Finished <<< geometry_msgs  No Makefile in package geometry_msgs    
[rosmake-0] Starting >>> roslang [ make ]                                       
[rosmake-0] Finished <<< roslang  No Makefile in package roslang                
[rosmake-0] Starting >>> rospy [ make ]                                         
[rosmake-0] Finished <<< rospy  No Makefile in package rospy                    
[rosmake-0] Starting >>> roscpp [ make ]                                        
[rosmake-0] Finished <<< roscpp  No Makefile in package roscpp                  
[rosmake-0] Starting >>> sensor_msgs [ make ]                                   
[rosmake-0] Finished <<< sensor_msgs  No Makefile in package sensor_msgs        
[rosmake-0] Starting >>> std_msgs [ make ]                                      
[rosmake-0] Finished <<< std_msgs  No Makefile in package std_msgs              
[rosmake-0] Starting >>> opencv2 [ make ]                                       
[rosmake-0] Finished <<< opencv2 ROS_NOBUILD in package opencv2                 
[rosmake-0] Starting >>> cv_bridge [ make ]                                     
[rosmake-0] Finished <<< cv_bridge ROS_NOBUILD in package cv_bridge             
[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 >>> message_filters [ make ]                               
[rosmake-0] Finished <<< message_filters  No Makefile in package message_filters
[rosmake-0] Starting >>> image_transport [ make ]                               
[rosmake-0] Finished <<< image_transport ROS_NOBUILD in package image_transport 
[rosmake-0] Starting >>> navibot [ make ]                                       
[ rosmake ] All 38 linesavibot: 5.1 sec ]            [ 1 Active 14/15 Complete ]
{-------------------------------------------------------------------------------
  mkdir -p bin
  cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
  [rosbuild] Building package navibot
  [rosbuild] Including /opt/ros/fuerte/stacks/client_rosjava_jni/rosjava_jni/cmake/rosjava.cmake
  [rosbuild] Including /opt/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake
  [rosbuild] Including /opt/ros/fuerte/share/roslisp/rosbuild/roslisp.cmake
  [rosbuild] Including /opt/ros/fuerte/share/rospy/rosbuild/rospy.cmake
  -- Configuring done
  -- Generating done
  CMake Warning:
    Manually-specified variables were not used by the project:

      CMAKE_TOOLCHAIN_FILE


  -- Build files have been written to: /home/salma/navibot/build
  cd build && make -l1
  make[1]: Entering directory `/home/salma/navibot/build'
  make[2]: Entering directory `/home/salma/navibot/build'
  make[3]: Entering directory `/home/salma/navibot/build'
  make[3]: Leaving directory `/home/salma/navibot/build'
  [  0%] Built target rospack_genmsg_libexe
  make[3]: Entering directory `/home/salma/navibot/build'
  make[3]: Leaving directory `/home/salma/navibot/build'
  [  0%] Built target rosbuild_precompile
  make[3]: Entering directory `/home/salma ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-03-20 03:22:46 -0600

It doesn't look like your error is related to boost, but rather to a failure to find the TurtlebotSensorState message. See this part of your build log:

/home/salma/navibot/src/navibot_v1.1New.cpp:13:119: fatal error: /opt/ros/electric/stacks/turtlebot/turtlebot_node/msg_gen/cpp/include/turtlebot_node/TurtlebotSensorState.h: No such file or directory
compilation terminated.

Check to make sure that you have the turtlebot stack installed, and that it's listed in the dependency list for your package.

edit flag offensive delete link more

Comments

How I can install turtlebot stack? I echo $ROS_PACKAGE_PATH, result is: /home/mai/catkin_ws/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks

Mai gravatar image Mai  ( 2014-11-25 21:09:38 -0600 )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

2 followers

Stats

Asked: 2013-03-19 19:14:10 -0600

Seen: 744 times

Last updated: Mar 20 '13