Created
December 9, 2016 09:18
-
-
Save PierrickKoch/bcbd833eee63b6c37af00ff0851ff6ee to your computer and use it in GitHub Desktop.
Install pcl ros on Fedora 24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#### | |
# On Fedora 24: | |
# sudo dnf install pcl-devel | |
#### | |
[ -z "$DEVEL_BASE" ] && DEVEL_BASE=${HOME}/devel | |
dir=${DEVEL_BASE}/src | |
branch=indigo-devel | |
mkdir -p $dir; cd $dir | |
git clone https://github.com/ros-perception/pcl_msgs.git -b $branch | |
git clone https://github.com/ros-perception/pcl_conversions.git -b $branch | |
git clone https://github.com/ros-perception/perception_pcl.git -b $branch | |
export CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}:${DEVEL_BASE}:${ROBOTPKG_BASE} | |
cd $dir/pcl_msgs; mkdir build; cd build | |
cmake -DCMAKE_INSTALL_PREFIX=${DEVEL_BASE} .. | |
make -kj4 install | |
cd $dir/pcl_conversions; mkdir build; cd build | |
cmake -DCMAKE_INSTALL_PREFIX=${DEVEL_BASE} .. | |
make -kj4 install | |
cd $dir/perception_pcl/pcl_ros; mkdir build; cd build | |
cmake -DCMAKE_INSTALL_PREFIX=${DEVEL_BASE} .. | |
make -kj4 install | |
#### | |
# in your .bash{rc,_aliases} | |
#### | |
export DEVEL_BASE=${HOME}/devel | |
export PKG_CONFIG_PATH=${DEVEL_BASE}/lib/pkgconfig:${PKG_CONFIG_PATH} | |
export PYTHONPATH=${PYTHONPATH}:${DEVEL_BASE}/lib/python2.7/site-packages | |
export PATH=${DEVEL_BASE}/bin:${DEVEL_BASE}/usr/bin:${PATH} | |
#export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${DEVEL_BASE}/lib | |
source ${DEVEL_BASE}/etc/ros/setup.bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment