47 lines
1.0 KiB
ReStructuredText
Raw Normal View History

2022-06-28 19:16:24 -04:00
macOS
=====
Requirements
------------
2022-06-28 19:16:24 -04:00
macOS Big Sur and Xcode 12.5+
Use either `MacPorts <https://www.macports.org>`_ or `Homebrew <https://brew.sh>`_
MacPorts
""""""""
Install Requirements
.. code-block:: bash
2022-12-20 14:38:50 -05:00
sudo port install avahi boost180 cmake curl libopus npm9 pkgconfig
Homebrew
""""""""
Install Requirements
.. code-block:: bash
2022-12-11 17:46:19 -05:00
brew install boost cmake node opus
# if there are issues with an SSL header that is not found:
cd /usr/local/include
ln -s ../opt/openssl/include/openssl .
2022-11-19 18:58:37 -05:00
npm dependencies
----------------
Install npm dependencies.
.. code-block:: bash
npm install
Build
-----
2022-04-18 16:05:17 -04:00
.. Attention:: Ensure you are in the build directory created during the clone step earlier before continuing.
2022-10-29 22:14:16 -04:00
.. code-block:: bash
2022-10-29 22:14:16 -04:00
cmake ..
make -j ${nproc}
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
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 ..``