Installing dependencies on Clear
The following instructions are for Clear 31140 and later.
Basic requirements to run commands:
- curl
- sudo (for normal user accounts)
Dependencies:
- dev-utils
- dev-utils-dev
- devpkg-fribidi
- devpkg-jansson
- devpkg-libass
- devpkg-libogg
- devpkg-libsamplerate
- devpkg-libtheora
- devpkg-libvorbis
- devpkg-libvpx
- devpkg-opus
- devpkg-speex
Additional dependencies not available in the base repository:
- lame
- x264
Graphical interface dependencies:
- desktop-dev
Intel Quick Sync Video dependencies (optional):
- devpkg-libva
- devpkg-libdrm
Install dependencies.
sudo swupd update
sudo swupd bundle-add dev-utils dev-utils-dev devpkg-fribidi devpkg-jansson devpkg-libass devpkg-libogg devpkg-libsamplerate devpkg-libtheora devpkg-libvorbis devpkg-libvpx devpkg-opus devpkg-speex
Build and install the dependencies not available in the base repository.
# lame
curl -LO https://sourceforge.net/projects/lame/files/lame/3.100/lame-3.100.tar.gz
tar -xf lame-3.100.tar.gz
cd lame-3.100
./configure --enable-shared --enable-static --enable-nasm
make -j$(nproc)
sudo make install-strip
cd ..
# x264
curl -LO https://download.videolan.org/pub/videolan/x264/snapshots/last_stable_x264.tar.bz2
mkdir x264-snapshot-stable
tar -xf last_stable_x264.tar.bz2 --directory x264-snapshot-stable --strip-components=1
cd x264-snapshot-stable
./configure --enable-shared --enable-static --enable-lto --enable-pic --enable-strip
make -j$(nproc)
sudo make install
cd ..
# make shared libraries findable
export CFLAGS="${CFLAGS:-} -I/usr/local/include"
export LDFLAGS="${LDFLAGS:-} -L/usr/local/lib"
echo 'export CFLAGS="${CFLAGS:-} -I/usr/local/include"' >> "${HOME}/.bashrc"
echo 'export LDFLAGS="${LDFLAGS:-} -L/usr/local/lib"' >> "${HOME}/.bashrc"
if ! grep '\/usr\/local\/lib' /etc/ld.so.conf >/dev/null 2>&1; then
echo '/usr/local/lib' | sudo tee --append /etc/ld.so.conf
sudo ldconfig
fi
To build the GTK GUI, install the graphical interface dependencies.
sudo swupd bundle-add desktop-dev
To build with Intel Quick Sync Video support, install the QSV dependencies.
sudo swupd bundle-add devpkg-libva devpkg-libdrm
Clear is now prepared to build HandBrake. See Building HandBrake for Linux for further instructions.