Sunshine/docs/source/building/windows.rst

28 lines
804 B
ReStructuredText
Raw Normal View History

Windows
=======
Requirements
------------
First you need to install `MSYS2 <https://www.msys2.org>`_, then startup "MSYS2 MinGW 64-bit" and install the
following packages using:
2022-04-30 22:22:17 +00:00
.. code-block:: bash
2022-10-30 02:14:16 +00:00
pacman -S mingw-w64-x86_64-binutils mingw-w64-x86_64-openssl mingw-w64-x86_64-cmake \
mingw-w64-x86_64-toolchain mingw-w64-x86_64-opus mingw-w64-x86_64-x265 mingw-w64-x86_64-boost \
git mingw-w64-x86_64-make cmake make gcc
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-10-30 02:14:16 +00:00
.. code-block:: bash
2022-10-30 02:14:16 +00:00
cmake -G"Unix Makefiles" ..
cmake -G"MinGW Makefiles" .. # alternatively
2022-04-30 22:22:17 +00:00
2022-10-30 02:14:16 +00:00
mingw32-make
2022-04-30 22:22:17 +00:00
2022-10-30 02:14:16 +00:00
cpack -G NSIS # optionally, create a windows installer
cpack -G ZIP # optionally, create a windows standalone package