-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_openslide.sh
executable file
·25 lines (21 loc) · 1.06 KB
/
install_openslide.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# To see where, if it fails
set -x
set -e
# v4.0.0 is the first version with dicom support. Test new versions before updating.
# IMPORTANT NOTE: If we're building OpenSlide instead of installing from apt-get
# whenever the version in meson.build in OpenSlide source code is updated,
# the version in our files "libopenslide0" and "register_openslide_apt.sh"
# needs to be updated to be a greater version number (or equal)
git clone https://github.com/openslide/openslide.git --branch=v4.0.0 --depth=1
cd openslide
## test that openslide still automatically installs libdicom as a meson submodule
# if not, modify this Dockerfile to install it
# also for uthash, which is a dependency of libdicom
test -e subprojects/libdicom.wrap
#./configure --enable-static --enable-shared=no
# may need to set OPENJPEG_CFLAGS='-I/usr/local/include' and OPENJPEG_LIBS='-L/usr/local/lib -lopenjp2'
# and the corresponding TIFF flags and libs to where bigtiff lib is installed.
meson setup build_openslide
meson compile -C build_openslide
meson install -C build_openslide
rm -r build_openslide