2022-06-28 19:16:24 -04:00
|
|
|
macOS
|
2022-04-18 14:53:28 -04:00
|
|
|
=====
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
------------
|
2022-06-28 19:16:24 -04:00
|
|
|
macOS Big Sur and Xcode 12.5+
|
2022-04-18 14:53:28 -04:00
|
|
|
|
2023-08-31 15:49:01 -04:00
|
|
|
Use either `MacPorts <https://www.macports.org>`__ or `Homebrew <https://brew.sh>`__
|
2022-04-18 14:53:28 -04:00
|
|
|
|
|
|
|
MacPorts
|
|
|
|
""""""""
|
|
|
|
Install Requirements
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2024-03-24 19:52:24 -04:00
|
|
|
sudo port install avahi boost180 cmake curl doxygen graphviz libopus miniupnpc npm9 pkgconfig python311 py311-pip
|
2022-04-18 14:53:28 -04:00
|
|
|
|
|
|
|
Homebrew
|
|
|
|
""""""""
|
|
|
|
Install Requirements
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2024-03-24 19:52:24 -04:00
|
|
|
brew install boost cmake doxygen graphviz miniupnpc node opus pkg-config python@3.11
|
2024-03-05 08:56:09 -05:00
|
|
|
|
|
|
|
If there are issues with an SSL header that is not found:
|
|
|
|
.. tab:: Intel
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
pushd /usr/local/include
|
|
|
|
ln -s ../opt/openssl/include/openssl .
|
|
|
|
popd
|
|
|
|
|
|
|
|
.. tab:: Apple Silicon
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
pushd /opt/homebrew/include
|
|
|
|
ln -s ../opt/openssl/include/openssl .
|
|
|
|
popd
|
2022-04-18 14:53:28 -04:00
|
|
|
|
|
|
|
Build
|
|
|
|
-----
|
2024-01-07 11:58:13 -05:00
|
|
|
.. attention:: Ensure you are in the build directory created during the clone step earlier before continuing.
|
2022-04-18 14:53:28 -04:00
|
|
|
|
2022-10-29 22:14:16 -04:00
|
|
|
.. code-block:: bash
|
2022-04-18 14:53:28 -04:00
|
|
|
|
2022-10-29 22:14:16 -04:00
|
|
|
cmake ..
|
2024-03-24 19:52:24 -04:00
|
|
|
make -j $(sysctl -n hw.ncpu)
|
2022-04-18 14:53:28 -04:00
|
|
|
|
2022-10-29 22:14:16 -04:00
|
|
|
cpack -G DragNDrop # optionally, create a macOS dmg package
|
2022-04-30 19:20:16 -04:00
|
|
|
|
2022-04-18 14:53:28 -04:00
|
|
|
If cmake fails complaining to find Boost, try to set the path explicitly.
|
2022-12-28 16:30:32 -05:00
|
|
|
``cmake -DBOOST_ROOT=[boost path] ..``, e.g., ``cmake -DBOOST_ROOT=/opt/local/libexec/boost/1.80 ..``
|