x265-4.1

Introduction to x265

x265 package provides a library for encoding video streams into the H.265/HEVC format.

x265 Dependencies

Required

CMake-4.0.3

Recommended

Optional

numactl

Installation of x265

First, change the CMake policy to allow building with CMake-4.0 and newer:

sed -r '/cmake_policy.*(0025|0054)/d' \
  -i source/CMakeLists.txt

Install x265 by running the following commands:

mkdir bld &&
cd    bld &&

cmake -D CMAKE_INSTALL_PREFIX=/usr        \
      -D GIT_ARCHETYPE=1                  \
      -D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
      -W no-dev ../source &&

make

This package does not come with a test suite.

To install the package, first remove any old library versions. After installation, remove a static library. As the root user:

make install &&
rm -vf /usr/lib/libx265.a

lib32-Installation of x265

Install lib32-x265 by running the following commands:

rm -rf * &&
CC="gcc -m32" CXX="g++ -m32"              \
PKG_CONFIG_PATH=/usr/lib32/pkgconfig      \
cmake -D CMAKE_INSTALL_PREFIX=/usr        \
      -D LIB_INSTALL_DIR=lib32            \
      -D GIT_ARCHETYPE=1                  \
      -D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
      -W no-dev ../source &&

make

This package does not come with a test suite.

To install the package, first remove any old library versions. After installation, remove a static library. As the root user:

make DESTDIR=$PWD/DESTDIR install     &&
cp -vR DESTDIR/usr/lib32/* /usr/lib32 &&
rm -vf /usr/lib32/libx265.a           &&
rm -rf DESTDIR                        &&
ldconfig

Command Explanations

[Note]

Note

For a full list of options and values, make sure you are in a build directory, then run cmake -LAH ...

-D GIT_ARCHETYPE=1: This switch is needed because the build system will not generate a pkg-config file or install a shared library unless Git is installed. Git isn't required for anything else in this package, so this switch is used to work around it for users who do not want to install Git as a build dependency.

-D CMAKE_POLICY_VERSION_MINIMUM=3.5: This switch allows building this package with cmake-4.0 or newer.

-W no-dev: This switch is used to suppress warnings intended for the package developers.

rm -vf /usr/lib{,32}/libx265.a: This removes an unnecessary static library.

Contents

Installed Program: x265
Installed Library: libx265
Installed Directories: None

Short Descriptions

libx265

provides the functions used to encode video streams into the H.265/HEVC format