rosmake mypackage
Hi dear all, I got some problems when I want to compile my package(mytele). I want to create a new package named mytele, and it is copy from turtlebot_teleop turtlebot_key.cpp. I am sure that the copy is complete. Here is my steps:
roscreate-pkg mytele geometry_msgs rospy roscpp
and I type this path so that ROS can find my package
export ROS_PACKAGE_PATH=/home/turtlebot/mytele:$ROS_PACKAGE_PATH
and then I copy this package code to my new package
cp turtlebot_key.cpp /home/turtlebot/mytele/src/turtlebot_key.cpp
and complie it
rosmake mytele mytele
the first time compile is completed, and new folder "bin" and "build" has been created. It seems every things is OK here.
> [ rosmake ] rosmake starting...
[ rosmake ] Packages requested are: ['mytele', 'mytele']
[ rosmake ] Logging to directory /home/turtlebot/.ros/rosmake/rosmake_output-20130325-140610
[ rosmake ] Expanded args ['mytele', 'mytele'] to:
['mytele', 'mytele']
[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-2] Starting >>> roscpp [ make ]
[rosmake-2] Finished <<< roscpp No Makefile in package roscpp
[rosmake-0] Finished <<< rospy No Makefile in package rospy
[rosmake-2] Starting >>> mytele [ make ]
[rosmake-2] Finished <<< mytele [PASS] [ 7.28 seconds ]
[ rosmake ] Results:
[ rosmake ] Built 5 packages with 0 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/turtlebot/.ros/rosmake/rosmake_output-20130325-140610
and add the following line at the end of CMakeLists.txt file
rosbuild_add_executable(mytele.keyboard src/turtlebot_key.cpp)
and compile again
rosmake mytele mytele
but, this time, I got this failure message.
> [ rosmake ] rosmake starting...
[ rosmake ] Packages requested are: ['mytele']
[ rosmake ] Logging to directory /home/turtlebot/.ros/rosmake/rosmake_output-20130325-145504
[ rosmake ] Expanded args ['mytele'] to:
['mytele']
[rosmake-0] Starting >>> geometry_msgs [ make ]
[rosmake-1] Starting >>> roslang [ make ]
[rosmake-0] Finished <<< geometry_msgs No Makefile in package geometry_msgs
[rosmake-1] Finished <<< roslang No Makefile in package roslang
[rosmake-1] Starting >>> rospy [ make ]
[rosmake-2] Starting >>> roscpp [ make ]
[rosmake-1] Finished <<< rospy No Makefile in package rospy
[rosmake-2] Finished <<< roscpp No Makefile in package roscpp
[rosmake-2] Starting >>> mytele [ make ]
[ rosmake ] All 39 linesytele: 2.3 sec ] [ 1 Active 4/5 Complete ]
{------------------------------------------------------------------------------- [ 1 Active 4/5 Complete ]
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake ..
[rosbuild] Building package mytele
[rosbuild] Including /opt/ros/fuerte/share/rospy/rosbuild/rospy.cmake
[rosbuild] Including /opt/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake
[rosbuild] Including /opt/ros/fuerte/share/roslisp/rosbuild/roslisp.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/turtlebot/mytele/build
cd build && make -l4
make[1]: Entering directory `/home/turtlebot/mytele/build'
make[2]: Entering directory `/home/turtlebot/mytele/build'
make[3]: Entering directory `/home/turtlebot/mytele/build'
make[3]: Leaving directory `/home/turtlebot/mytele/build'
[ 0%] Built target rospack_genmsg_libexe
make[3]: Entering directory `/home/turtlebot/mytele/build'
make[3]: Leaving directory `/home/turtlebot/mytele/build'
[ 0%] Built target rosbuild_precompile
make[3]: Entering directory `/home/turtlebot/mytele/build'
make[3]: Leaving directory `/home/turtlebot/mytele/build'
make[3]: Entering directory `/home/turtlebot/mytele/build ...