Skip to content

Commit

Permalink
Install custom libjxl
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Dec 7, 2024
1 parent ee3cc5f commit 3d5c809
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docker_script
Original file line number Diff line number Diff line change
Expand Up @@ -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 "--- ---"
Expand Down

0 comments on commit 3d5c809

Please sign in to comment.