Ask Your Question
0

How can I install libjxl on Ubuntu from Source?

asked 2023-04-09 11:51:54 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-04-09 11:53:56 +0000

qstack gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

1 follower

Stats

Asked: 2023-04-09 11:51:54 +0000

Seen: 26 times

Last updated: Apr 09 '23