docs: Add nasm to latest Windows build article.

This commit is contained in:
Bradley Sepos 2018-01-10 04:43:25 -05:00
parent 2c5662ad99
commit e90c425a74
No known key found for this signature in database
GPG Key ID: DEADE2F57D42D9C7

View File

@ -18,9 +18,9 @@ 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 16.04 LTS 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 most 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. Ubuntu 18.04 LTS (Bionic Beaver) and 16.04 LTS (Xenial Xerus) 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 most packaged versions have issues that can produce non-functioning builds.
The following instructions are for Ubuntu 16.04 LTS (Xenial Xerus).
The following instructions are for Ubuntu 18.04 LTS (Bionic Beaver) and 16.04 LTS (Xenial Xerus).
Dependencies:
@ -42,6 +42,10 @@ Dependencies:
- yasm
- zlib1g-dev
Additional dependencies not available in the Ubuntu 16.04 LTS base repository:
- nasm 2.13 or later
Additional MinGW-w64 toolchain dependencies:
- bison
@ -56,6 +60,21 @@ Install dependencies.
sudo apt-get update
sudo apt-get install automake autoconf build-essential cmake curl gcc git intltool libtool libtool-bin m4 make patch pkg-config python tar yasm zlib1g-dev
For Ubuntu 18.04 (Bionic Beaver), install `nasm` from the base repository.
sudo apt-get install nasm
For Ubuntu 16.04 LTS (Xenial Xerus), the `nasm` version in the base repository is too old, so compile from source.
curl -O http://www.nasm.us/pub/nasm/releasebuilds/2.13.02/nasm-2.13.02.tar.bz2
tar -xf nasm-2.13.02.tar.bz2
cd nasm-2.13.02
./configure --prefix=/usr/local --enable-sections --enable-lto
make -j$(nproc)
sudo make install
source ~/.bashrc
cd ..
Install the additional dependencies required to build the MinGW-w64 toolchain.
sudo apt-get install bison bzip2 flex g++ gzip pax