Skip to content

Commit 23ce311

Browse files
committed
Update macOS-Development-Setup.rst
- add Xcode App Store link - BASH -> ZSH (default) - make homebrew paths generic
1 parent 4c24ade commit 23ce311

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/Installation/Alternatives/macOS-Development-Setup.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You need the following things installed to build ROS 2:
2929
#.
3030
**Xcode**
3131

32-
* If you don't already have it installed, install Xcode.
32+
* If you don't already have it installed, install [Xcode](https://apps.apple.com/app/xcode/id497799835).
3333
* Note: Versions of Xcode later than 11.3.1 can no longer be installed on macOS Mojave, so you will need to install an older version manually, see: https://stackoverflow.com/a/61046761
3434
* Also, if you don't already have it installed, install the Command Line Tools:
3535

@@ -71,12 +71,12 @@ You need the following things installed to build ROS 2:
7171
.. code-block:: bash
7272
7373
# Add the openssl dir for DDS-Security
74-
# if you are using ZSH, then replace '.bashrc' with '.zshrc'
75-
echo "export OPENSSL_ROOT_DIR=$(brew --prefix openssl)" >> ~/.bashrc
74+
# if you are using BASH, then replace '.zshrc' with '.bashrc'
75+
echo "export OPENSSL_ROOT_DIR=$(brew --prefix openssl)" >> ~/.zshrc
7676
7777
# Add the Qt directory to the PATH and CMAKE_PREFIX_PATH
78-
export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:/usr/local/opt/qt@5
79-
export PATH=$PATH:/usr/local/opt/qt@5/bin
78+
export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:$(brew --prefix qt@5)
79+
export PATH=$PATH:$(brew --prefix qt@5)/bin
8080
8181
#.
8282
Use ``python3 -m pip`` (just ``pip`` may install Python3 or Python2) to install more stuff:
@@ -92,7 +92,7 @@ You need the following things installed to build ROS 2:
9292
nose pep8 psutil pydocstyle pydot pygraphviz pyparsing==2.4.7 \
9393
pytest-mock rosdep rosdistro setuptools==59.6.0 vcstool
9494
95-
Please ensure that the ``$PATH`` environment variable contains the install location of the binaries (default: ``$HOME/Library/Python/<version>/bin``)
95+
Please ensure that the ``$PATH`` environment variable contains the install location of the binaries (``$(brew --prefix)/bin``)
9696

9797
#.
9898
*Optional*: if you want to build the ROS 1<->2 bridge, then you must also install ROS 1:
@@ -156,7 +156,7 @@ Source the ROS 2 setup file:
156156

157157
.. code-block:: bash
158158
159-
. ~/ros2_{DISTRO}/install/setup.bash
159+
. ~/ros2_{DISTRO}/install/setup.zsh
160160
161161
This will automatically set up the environment for any DDS vendors that support was built for.
162162

0 commit comments

Comments
 (0)