2022-04-18 18:53:28 +00:00
|
|
|
:github_url: https://github.com/SunshineStream/Sunshine/tree/nightly/docs/source/building/macos.rst
|
|
|
|
|
|
|
|
MacOS
|
|
|
|
=====
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
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-04-30 23:20:16 +00:00
|
|
|
sudo port install cmake boost ffmpeg libopus
|
2022-04-18 18:53:28 +00:00
|
|
|
|
|
|
|
Homebrew
|
|
|
|
""""""""
|
|
|
|
Install Requirements
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2022-04-30 23:20:16 +00:00
|
|
|
brew install boost cmake ffmpeg opus
|
2022-04-18 18:53:28 +00:00
|
|
|
# if there are issues with an SSL header that is not found:
|
|
|
|
cd /usr/local/include
|
|
|
|
ln -s ../opt/openssl/include/openssl .
|
|
|
|
|
|
|
|
Build
|
|
|
|
-----
|
2022-04-18 20:05:17 +00:00
|
|
|
.. Attention:: Ensure you are in the build directory created during the clone step earlier before continuing.
|
2022-04-18 18:53:28 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
cmake ..
|
|
|
|
make -j ${nproc}
|
|
|
|
|
2022-04-30 23:20:16 +00:00
|
|
|
cpack -G DragNDrop # optionally, create a MacOS dmg package
|
|
|
|
|
2022-04-18 18:53:28 +00:00
|
|
|
If cmake fails complaining to find Boost, try to set the path explicitly.
|
|
|
|
|
|
|
|
``cmake -DBOOST_ROOT=[boost path] ..``, e.g., ``cmake -DBOOST_ROOT=/opt/local/libexec/boost/1.76 ..``
|
|
|
|
|