From ed7e8e519fcbc205eca3aecf26f6a163b5a07b2c Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Mon, 14 Oct 2019 18:35:45 -0400 Subject: [PATCH] docs: Add Fedora to the Windows via Linux guide. --- .../latest/developer/build-windows.markdown | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/source/docs/en/latest/developer/build-windows.markdown b/source/docs/en/latest/developer/build-windows.markdown index 03c8b6ce..4ac154cd 100644 --- a/source/docs/en/latest/developer/build-windows.markdown +++ b/source/docs/en/latest/developer/build-windows.markdown @@ -18,7 +18,46 @@ Building HandBrake for Windows ## Command line interface and LibHB -Building the HandBrake [CLI](abbr:Command Line Interface) and LibHB (`hb.dll`) for Windows requires Linux and a recent [MinGW-w64](https://mingw-w64.org/) toolchain. Ubuntu 18.04 LTS (Bionic Beaver) or later is recommended; other distros may work as well. In all cases, we recommend you build the MinGW-w64 toolchain using our instructions and the included script, as some packaged versions have issues that can produce non-functioning builds. +Building the HandBrake [CLI](abbr:Command Line Interface) and LibHB (`hb.dll`) for Windows requires Linux and a recent [MinGW-w64](https://mingw-w64.org/) toolchain. Fedora 28 or later, or Ubuntu 18.04 LTS (Bionic Beaver) or later are recommended; other distros may work as well. In all cases, we recommend you build the MinGW-w64 toolchain using our instructions and the included script, as some packaged versions have issues that can produce non-functioning builds. + +### Installing dependencies on Fedora + +The following instructions are for [Fedora](https://getfedora.org) 28 through 30. + +Basic requirements to run commands: + +- sudo (for normal user accounts) + +Dependencies: + +- Development Tools +- C Development Tools and Libraries +- cmake +- gcc-c++ +- git +- libtool +- m4 +- make +- meson +- nasm +- ninja-build +- patch +- python +- tar +- zlib-devel + +Install dependencies. + + sudo dnf update + sudo dnf groupinstall "Development Tools" "C Development Tools and Libraries" + sudo dnf install cmake gcc-c++ git libtool m4 make meson nasm ninja-build patch python tar zlib-devel + +Install the additional dependencies required to build the MinGW-w64 toolchain. + + sudo dnf install bison bzip2 curl flex g++ gzip pax + + +### Installing dependencies on Ubuntu The following instructions are for [Ubuntu](https://www.ubuntu.com) 18.04 LTS (Bionic Beaver) through 19.10 (Eoan Ermine). @@ -84,6 +123,9 @@ Install the additional dependencies required to build the MinGW-w64 toolchain. sudo apt-get install bison bzip2 curl flex g++ gzip pax + +### Building the MinGW-w64 toolchain and HandBrake + Clone the HandBrake repository. git clone https://github.com/HandBrake/HandBrake.git && cd HandBrake