Compile libheif from source as some distributions have outdated versions
This commit is contained in:
@ -25,7 +25,7 @@ DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install -y apt-tr
|
|||||||
```
|
```
|
||||||
The following command will install all required build dependencies for nginx and php:
|
The following command will install all required build dependencies for nginx and php:
|
||||||
```
|
```
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install -y autoconf automake bison g++ gcc ghostscript gnupg libargon2-dev libbz2-dev libbrotli-dev libc-client2007e-dev libcurl4-openssl-dev libdjvulibre-dev libedit-dev libenchant-dev libffi-dev libfreetype-dev libfftw3-dev libfribidi-dev libgd-dev libgmp-dev libgpg-error-dev libgpgme-dev libharfbuzz-dev libheif-dev libkrb5-dev libldap2-dev liblmdb-dev liblqr-1-0-dev libmariadb-dev libonig-dev libopenexr-dev libopenjp2-7-dev libpango1.0-dev libpcre3-dev libpng-dev libpspell-dev libqdbm-dev libraqm-dev libraw-dev libreadline-dev librsvg2-dev libsasl2-dev libsodium-dev libsqlite3-dev libssl-dev libsystemd-dev libtidy-dev libtool libwebp-dev libwmf-dev libxml2-dev libxpm-dev libxslt1-dev libzip-dev libzstd-dev make poppler-utils re2c zlib1g-dev
|
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install -y autoconf automake bison g++ gcc ghostscript gnupg libaom-dev libargon2-dev libbz2-dev libbrotli-dev libc-client2007e-dev libcurl4-openssl-dev libde265-dev libdjvulibre-dev libedit-dev libenchant-dev libffi-dev libfreetype-dev libfftw3-dev libfribidi-dev libgd-dev libgmp-dev libgpg-error-dev libgpgme-dev libharfbuzz-dev libkrb5-dev libldap2-dev liblmdb-dev liblqr-1-0-dev libmariadb-dev libonig-dev libopenexr-dev libopenjp2-7-dev libpango1.0-dev libpcre3-dev libpng-dev libpspell-dev libqdbm-dev libraqm-dev libraw-dev libreadline-dev librsvg2-dev libsasl2-dev libsodium-dev libsqlite3-dev libssl-dev libsystemd-dev libtidy-dev libtool libwebp-dev libwmf-dev libx265-dev libxml2-dev libxpm-dev libxslt1-dev libzip-dev libzstd-dev make poppler-utils re2c zlib1g-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
If you are running a distribution that is older than debian `bullseye` or ubuntu `focal`, you may encounter an error that `libargon2-dev` and/or `libfreetype-dev` were not found. Try these alternative names: `libfreetype6-dev` and `libargon2-0-dev`
|
If you are running a distribution that is older than debian `bullseye` or ubuntu `focal`, you may encounter an error that `libargon2-dev` and/or `libfreetype-dev` were not found. Try these alternative names: `libfreetype6-dev` and `libargon2-0-dev`
|
||||||
|
@ -5,6 +5,9 @@ set -e
|
|||||||
if [ ! -e libssh2 ]; then
|
if [ ! -e libssh2 ]; then
|
||||||
git clone https://github.com/libssh2/libssh2
|
git clone https://github.com/libssh2/libssh2
|
||||||
fi
|
fi
|
||||||
|
if [ ! -e libheif ]; then
|
||||||
|
git clone https://github.com/strukturag/libheif
|
||||||
|
fi
|
||||||
if [ ! -e ImageMagick ]; then
|
if [ ! -e ImageMagick ]; then
|
||||||
git clone https://github.com/ImageMagick/ImageMagick
|
git clone https://github.com/ImageMagick/ImageMagick
|
||||||
fi
|
fi
|
||||||
@ -75,6 +78,12 @@ autoreconf -fi
|
|||||||
CFLAGS="-O3 -march=native -mtune=native" ./configure
|
CFLAGS="-O3 -march=native -mtune=native" ./configure
|
||||||
make -j $PROC_LIMIT install
|
make -j $PROC_LIMIT install
|
||||||
cd ..
|
cd ..
|
||||||
|
cd libheif
|
||||||
|
./autogen.sh
|
||||||
|
./configure
|
||||||
|
CFLAGS="-O3 -march=native -mtune=native" CXXFLAGS="-O3 -march=native -mtune=native" make -j $PROC_LIMIT install
|
||||||
|
cd ..
|
||||||
|
ldconfig
|
||||||
cd ImageMagick
|
cd ImageMagick
|
||||||
git pull
|
git pull
|
||||||
CXXFLAGS='-O3 -mtune=native -march=native' CFLAGS='-O3 -mtune=native -march=native' ./configure --without-perl --without-magick-plus-plus --with-rsvg=yes
|
CXXFLAGS='-O3 -mtune=native -march=native' CFLAGS='-O3 -mtune=native -march=native' ./configure --without-perl --without-magick-plus-plus --with-rsvg=yes
|
||||||
|
Reference in New Issue
Block a user