Difference between revisions of "Create and Build Follow"
From wikidb
(→Create Follow) |
(→Create Follow) |
||
Line 41: | Line 41: | ||
</package> | </package> | ||
</pre> | </pre> | ||
+ | |||
+ | == Build == | ||
+ | |||
+ | Entering a make from the follow directory will create the bin and build directories. | ||
+ | |||
+ | epp@tabor:follow$ '''make''' | ||
+ | mkdir -p bin | ||
+ | cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake .. | ||
+ | -- The C compiler identification is GNU | ||
+ | -- The CXX compiler identification is GNU | ||
+ | -- Check for working C compiler: /usr/bin/gcc | ||
+ | -- Check for working C compiler: /usr/bin/gcc -- works | ||
+ | -- Detecting C compiler ABI info | ||
+ | -- Detecting C compiler ABI info - done | ||
+ | -- Check for working CXX compiler: /usr/bin/c++ | ||
+ | -- Check for working CXX compiler: /usr/bin/c++ -- works | ||
+ | -- Detecting CXX compiler ABI info | ||
+ | -- Detecting CXX compiler ABI info - done | ||
+ | -- Found PythonInterp: /usr/bin/python2.6 | ||
+ | [rosbuild] Building package follow | ||
+ | [rosbuild] Cached build flags older than manifests; calling rospack to get flags | ||
+ | [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/rospy/cmake/rospy.cmake | ||
+ | [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake | ||
+ | [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake | ||
+ | -- Configuring done | ||
+ | -- Generating done | ||
+ | -- Build files have been written to: /home/eepp/ros_workspace/follow/build | ||
+ | cd build && make | ||
+ | make[1]: Entering directory `/home/eepp/ros_workspace/follow/build' | ||
+ | make[1]: Leaving directory `/home/eepp/ros_workspace/follow/build' |
Revision as of 15:01, 20 May 2012
Create Follow
The Follow package will depend on messages, Python, and C++ packages.
eepp@tabor:~$ cd ros_workspace eepp@tabor:ros_workspace$ roscreate-pkg follow std_msgs rospy roscpp Created package directory /home/eepp/ros_workspace/follow Created include directory /home/eepp/ros_workspace/follow/include/follow Created cpp source directory /home/eepp/ros_workspace/follow/src Created package file /home/eepp/ros_workspace/follow/Makefile Created package file /home/eepp/ros_workspace/follow/manifest.xml Created package file /home/eepp/ros_workspace/follow/CMakeLists.txt Created package file /home/eepp/ros_workspace/follow/mainpage.dox Please edit follow/manifest.xml and mainpage.dox to finish creating your package
This will create the follow directory with make files, Doxygen template, a source directory and include directory.
epp@tabor:ros_workspace$ cd follow eepp@tabor:follow$ ls CMakeLists.txt include mainpage.dox Makefile manifest.xml src
manifest.xml will contain the dependencies listed in the package create command.
<package> <description brief="follow"> follow </description> <author>Ed C. Epp</author> <license>BSD</license> <review status="unreviewed" notes=""/> <url>http://ros.org/wiki/follow</url> <depend package="std_msgs"/> <depend package="rospy"/> <depend package="roscpp"/> </package>
Build
Entering a make from the follow directory will create the bin and build directories.
epp@tabor:follow$ make mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake .. -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found PythonInterp: /usr/bin/python2.6 [rosbuild] Building package follow [rosbuild] Cached build flags older than manifests; calling rospack to get flags [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/rospy/cmake/rospy.cmake [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake -- Configuring done -- Generating done -- Build files have been written to: /home/eepp/ros_workspace/follow/build cd build && make make[1]: Entering directory `/home/eepp/ros_workspace/follow/build' make[1]: Leaving directory `/home/eepp/ros_workspace/follow/build'