From 3d5c8096e0824a4bf0ed2319edb0d70cd08b63b8 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sat, 7 Dec 2024 13:02:29 +0100 Subject: [PATCH] Install custom libjxl --- docker_script | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docker_script b/docker_script index 8770a98c9f20b..aef2a0888f534 100755 --- a/docker_script +++ b/docker_script @@ -7,7 +7,17 @@ echo "--- Install dependencies ---"; apk update; apk add bluez-dev libffi-dev openssl-dev glib-dev eudev-dev libxml2-dev libxslt-dev libpng-dev libjpeg-turbo-dev tiff-dev cups-dev gmp-dev mpfr-dev mpc1-dev ffmpeg-dev gammu-dev yaml-dev openblas-dev fftw-dev lapack-dev gfortran blas-dev eigen-dev freetype-dev glew-dev harfbuzz-dev hdf5-dev libdc1394-dev libtbb-dev mesa-dev openexr-dev openjpeg-dev uchardet-dev nasm zlib-dev echo "--- ---"; -apk add "libjxl=0.10.3-r0" +apk del libjxl +echo "--- ---"; +git clone https://github.com/libjxl/libjxl.git --recursive --depth 1 --shallow-submodules --branch v0.10.4 +apk add brotli-dev clang giflib-dev libjpeg-turbo-dev openexr-dev libpng-dev libwebp-dev libavif-dev +export CC=clang CXX=clang++ +mkdir libjxl/build +cd libjxl/build +cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF .. +cmake --build . -- -j$(nproc) +ldd lib/libjxl.so.0.10.4 +cmake --install . echo "--- ---"; pip list; echo "--- ---"