User Tools

Site Tools


ros:build_package

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ros:build_package [2013/12/14 22:25] – Add method B redoxros:build_package [2013/12/22 00:14] (current) – removed redox
Line 1: Line 1:
-# Build a ROS Package - Method A 
  
-<note important>This needs to be confirmed, but it should work...</note> 
- 
-When you need to build a separate package for ROS, instead of going throught all the steps like in the installation process, this should work 
- 
-    mkdir -p temp_dir/src 
-    cd temp_dir/src 
-    # Here, put your package_folder 
-    cd ../ 
-    # Maybe you can try this to resolve the dependencies, but I'm reaaaaally not sure 'bout that... 
-    #rosdep install --from-paths src --ignore-src --rosdistro hydro -y -r --os=debian:wheezy 
-    sudo catkin_make_isolated -DBUILD_BINARY_PACKAGE=ON -DCMAKE_INSTALL_PREFIX=/opt/ros/hydro -DCMAKE_INSTALL_LIBDIR=lib --install --merge --install-space /opt/ros/hydro 
-     
-//Edit:// 
-This procedure is usefull for users who installed ros paskages from repository and want to update a package with a newer source, Mostly ubuntu users. 
- 
-sudo needs to source /opt/ros/hydro/setup.bash to launch cantkin_make: 
- 
-    sudo bash 
-    #your password 
-    source /opt/ros/hydro/setup.bash 
-    catkin_make_isolated -DBUILD_BINARY_PACKAGE=ON -DCMAKE_INSTALL_PREFIX=/opt/ros/hydro -DCMAKE_INSTALL_LIBDIR=lib --install --merge --install-space /opt/ros/hydro 
-    exit 
-     
- 
-Aaaannd, that's it. 
- 
-# Build a ROS Package - Method B 
- 
-This one doesn't directly rely on catkin, it doesn't manage dependencies though... 
- 
-    mkdir yourpackage 
-    git clone --branch release/hydro/@package_name@/@package_branch@ @git_repository@ @package_name@ 
-    mkdir build 
-    cd build 
-    cmake ../@package_name@ -DSETUPTOOLS_DEB_LAYOUT=OFF -DCATKIN_BUILD_BINARY_PACKAGE=ON -DCMAKE_INSTALL_PREFIX=/opt/ros/hydro 
-    make 
-    sudo make install 
-    # There should be a way to checkinstall make install... not workin' yet... 
-     
-  
/home/share/www/redox.ws/wiki/data/attic/ros/build_package.1387059928.txt.gz · Last modified: 2023/11/24 21:55 (external edit)