Last active
July 15, 2022 11:27
-
-
Save apcro/99ced7c8a5b20fd77622e7394c2049ac to your computer and use it in GitHub Desktop.
Installing libvips from source and making it work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing `libvips` from source on Ubuntu 18.04 Bionic | |
(See the first comment at https://gist.github.com/apcro/99ced7c8a5b20fd77622e7394c2049ac for a formatted version of this gist) | |
<code> | |
wget https://github.com/libvips/libvips/releases/download/v8.8.2/vips-8.8.2.tar.gz | |
tar -xvf vips-8.8.2.tar.gz | |
cd vips-8.8.2 | |
./configure | |
</code> | |
Make sure image loading libraries are installed. | |
<code> | |
* optional dependencies | |
use fftw3 for FFT: no | |
Magick package: MagickCore | |
Magick API version: magick6 | |
load with libMagick: yes | |
save with libMagick: yes | |
accelerate loops with orc: no | |
(requires orc-0.4.11 or later) | |
ICC profile support with lcms: yes (lcms2) | |
file import with niftiio: no | |
file import with libheif: no | |
file import with OpenEXR: yes | |
file import with OpenSlide: no | |
(requires openslide-3.3.0 or later) | |
file import with matio: no | |
PDF import with PDFium no | |
PDF import with poppler-glib: no | |
(requires poppler-glib 0.16.0 or later) | |
SVG import with librsvg-2.0: yes | |
(requires librsvg-2.0 2.34.0 or later) | |
zlib: yes | |
file import with cfitsio: no | |
file import/export with libwebp: yes | |
(requires libwebp, libwebpmux, libwebpdemux 0.5.0 or later) | |
text rendering with pangoft2: no | |
file import/export with libpng: yes (pkg-config libpng >= 1.2.9) | |
(requires libpng-1.2.9 or later) | |
support 8bpp PNG quantisation: no | |
(requires libimagequant) | |
file import/export with libtiff: yes (pkg-config libtiff-4) | |
file import/export with giflib: yes (found by search) | |
file import/export with libjpeg: yes (pkg-config) | |
image pyramid export: no | |
(requires libgsf-1 1.14.26 or later) | |
use libexif to load/save JPEG metadata: yes | |
</code> | |
If not: | |
<code> | |
apt-get install glib2.0-dev build-essential libexpat1-dev libjpeg-dev libpng-dev libwebp-dev libgif-dev libexif-dev imagemagick libmagick++-dev | |
./configure | |
</code> | |
Once libraries are installed: | |
<code> | |
make | |
vips -v | |
</code> | |
If necessary, link binary | |
<code> | |
cd /usr/lib/ | |
ln -s /usr/local/lib/libvips.so.42 libvips.so.42 | |
vips -v | |
</code> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks so much for this.