Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To install libjxl (JPEG XL library) on Ubuntu from source, follow these steps:

Install build tools and dependencies:

sudo apt update
sudo apt install git cmake pkg-config libbrotli-dev libpng-dev libwebp-dev zlib1g-dev

Clone the libjxl repository:

git clone https://github.com/libjxl/libjxl.git
cd libjxl

Checkout the desired version or commit (optional):

git checkout <desired_version_or_commit>

Set up the submodule:

git submodule update --init --recursive

Create a build directory and move into it:

mkdir build
cd build

Configure the build using CMake:

cmake -DCMAKE_BUILD_TYPE=Release ..

Compile the library:

make -j$(nproc)

Install the library:

sudo make install

Update the linker cache:

sudo ldconfig

Now, libjxl should be installed on your Ubuntu system from source.