Running ROS from source on Arch Linux

1 minute read

yaourt -S python-rosinstall_generator –noconfirm yaourt -S python-rosdep sudo rosdep init patrick@dell  ~/ros_ws  rosdep update reading in sources list data from /etc/ros/rosdep/sources.list.d Hit Hit Hit Hit Hit Query rosdistro index Add distro “groovy” Add distro “hydro” Add distro “indigo” Add distro “jade” Add distro “kinetic” Add distro “lunar” updated cache in /home/patrick/.ros/rosdep/sources.cache

mkdir ros_ws mkdir kinetic

# # rosinstall_generator desktop_full –rosdistro kinetic –deps –wet-only –tar > kinetic-desktop-full-wet.rosinstall


wstool init -j8 src kinetic-desktop-full-wet.rosinstall

ok, if it fail, you can try: wstool update -j 4 -t src rosdep install –from-paths src –ignore-src –rosdistro kinetic -y

executing command [sudo -H pacman -S –noconfirm –needed urdfdom-headers cppunit ogre-1.9 tango-icon-theme python2-pygraphviz hddtemp python2-rosdep python2-catkin_pkg python2-opengl python2-paramiko pcl poco python2-empy python2-pydot vtk python2-defusedxml sbcl python2-netifaces urdfdom log4cxx python2-rospkg collada-dom console-bridge python2-coverage gazebo yaml-cpp]

run the command as yaourt, and maybe would be necessary to solve some problems until compile everything. (like qtwebkit -> qtwebkit-bin to gazebo) move to

Solving all problems with all the packages, you will need to run ./src/catkin/bin/catkin_make_isolated –install -DCMAKE_BUILD_TYPE=Release

And you will have ros installed ! srly, I love hate and ros, it’s good to do some things and terrible in others ! PS: Please help me to make arch a full supported distro in ROS and ROS2 :)

PS2: Mini tutorial to install ros2 in arch: use

Xephyr -screen 1024x768 :1 & docker run -ti –rm -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev:/dev -v ~/git/blue/:/mnt -e DISPLAY=:1.0 -e QT_X11_NO_MITSHM=1 ubuntu:17.10

wstool remove opencv3