Skip to content

Commit b2f520a

Browse files
richmattescottsay
authored andcommitted
Updates to the Fedora development setup. (ros2#289)
Updates to support the build-from-source instructions. Tested by following the directions on the wiki in a fedora:30 docker container. Update the package list to use dnf to install python3-colcon-common extensions, which is available in Fedora 29 and newer: https://bodhi.fedoraproject.org/updates/FEDORA-2019-8c1b78e3f3 wget and rosdep are required by the build from source instructions, and not installed by default. gcc-c++, patch, and make are required to build C++ packages, and may not be installed on a fresh system. redhat-rpm-config provides hardening flags that gcc-c++ needs. liblsan is needed to build rosbag2 (the sanitizer isn't installed by default when gcc-c++ is installed). It should probably be disabled by default, and/or added as a system rosdep. Remove pip command - all relevant dependencies can be installed with the system package manager. Also, a couple of cosmetic updates: - Put each package on a new line to match the Linux Development Setup page formatting - Alphabatize package list - Re-word first paragraph to reflect that the setup is now a single step. Signed-off-by: Rich Mattes <[email protected]>
1 parent 9b27615 commit b2f520a

File tree

1 file changed

+46
-9
lines changed

1 file changed

+46
-9
lines changed

source/Installation/Dashing/Fedora-Development-Setup.rst

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,53 @@ Building ROS 2 on Fedora Linux
44
How to setup the development environment?
55
-----------------------------------------
66

7-
First install a bunch of dependencies:
7+
The following system dependencies are required to build ROS 2 on Fedora. They can be installed with ``dnf`` as follows:
88

99
.. code-block:: bash
1010
11-
$ sudo dnf install cppcheck cmake libXaw-devel opencv-devel poco-devel poco-foundation python3-empy python3-devel python3-nose python3-pip python3-pyparsing python3-pytest python3-pytest-cov python3-pytest-runner python3-setuptools python3-yaml tinyxml-devel eigen3-devel python3-pydocstyle python3-pyflakes python3-coverage python3-mock python3-pep8 uncrustify python3-argcomplete python3-flake8 python3-flake8-import-order asio-devel tinyxml2-devel libyaml-devel python3-lxml python3-vcstool python3-lark-parser
11+
$ sudo dnf install \
12+
asio-devel \
13+
cmake \
14+
cppcheck \
15+
eigen3-devel \
16+
gcc-c++ \
17+
liblsan \
18+
libXaw-devel \
19+
libyaml-devel \
20+
make \
21+
opencv-devel \
22+
patch \
23+
python3-argcomplete \
24+
python3-colcon-common-extensions \
25+
python3-coverage \
26+
python3-devel \
27+
python3-empy \
28+
python3-lark-parser \
29+
python3-lxml \
30+
python3-mock \
31+
python3-nose \
32+
python3-pep8 \
33+
python3-pip \
34+
python3-pydocstyle \
35+
python3-pyflakes \
36+
python3-pyparsing \
37+
python3-pytest \
38+
python3-pytest-cov \
39+
python3-pytest-runner \
40+
python3-rosdep \
41+
python3-setuptools \
42+
python3-vcstool \
43+
python3-yaml \
44+
poco-devel \
45+
poco-foundation \
46+
python3-flake8 \
47+
python3-flake8-import-order \
48+
redhat-rpm-config \
49+
tinyxml-devel \
50+
tinyxml2-devel \
51+
uncrustify \
52+
wget
53+
54+
55+
With this done, you can follow the rest of the `instructions <Dashing_linux-dev-get-ros2-code>` to fetch and build ROS2.
1256

13-
Then install lark-parser from pip:
14-
15-
.. code-block:: bash
16-
17-
$ pip3 install lark-parser==0.7.1
18-
19-
With this done, you can follow the rest of the `instructions <linux-dev-get-ros2-code>` to fetch and build ROS2.

0 commit comments

Comments
 (0)