-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sh
executable file
·57 lines (51 loc) · 2.35 KB
/
build.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh
# This script will configure and build the Woolz IIP Server. Uncomment
# the appropriate configure command lines for the build you want. The
# easiest way to use this script is probably to copy it to mybuild.sh and
# the edit that script.
set -x
# In most cases a simple autoreconf should be sufficient
autoreconf
# If you hit problems with missing files or libtool use the following
# autoreconf
# autoreconf -i --force
#export MA=$HOME
export MA=/opt/MouseAtlas/
#export MA=$HOME/MouseAtlas/Build/
#export MA=$HOME/MouseAtlas/Build/debug
# Configure for an optimised build on systems with compilers and x86_64
# processors developed after 2013
./configure \
--enable-optimise \
--enable-static-fcgi \
--with-fcgi-incl=/opt/fcgi/include --with-fcgi-lib=$MA/lib/ \
--with-log4cpp-incl=$MA/include --with-log4cpp-lib=$MA/lib \
--with-wlz-incl=$MA/include --with-wlz-lib=$MA/lib \
--with-nifti-incl=$MA/include --with-nifti-lib=$MA/lib \
--with-tiff-includes=$MA/include --with-tiff-libraries=$MA/lib \
--with-jpeg-includes=$MA/include --with-jpeg-libraries=$MA/lib \
--with-png-includes=$MA/include --with-png-libraries=$MA/lib \
--enable-openmp --enable-avx2 --enable-lto
# Configure for an optimised build on older systems
# ./configure \
# --enable-optimise \
# --enable-static-fcgi \
# --with-fcgi-incl=/opt/fcgi/include --with-fcgi-lib=$MA/lib/ \
# --with-log4cpp-incl=$MA/include --with-log4cpp-lib=$MA/lib \
# --with-wlz-incl=$MA/include --with-wlz-lib=$MA/lib \
# --with-nifti-incl=$MA/include --with-nifti-lib=$MA/lib \
# --with-tiff-includes=$MA/include --with-tiff-libraries=$MA/lib \
# --with-jpeg-includes=$MA/include --with-jpeg-libraries=$MA/lib \
# --with-png-includes=$MA/include --with-png-libraries=$MA/lib \
# --enable-openmp
# Configure for a debug build
# ./configure \
# --enable-debug \
# --enable-static-fcgi \
# --with-fcgi-incl=/opt/fcgi/include --with-fcgi-lib=$MA/lib/ \
# --with-log4cpp-incl=$MA/include --with-log4cpp-lib=$MA/lib \
# --with-wlz-incl=$MA/include --with-wlz-lib=$MA/lib \
# --with-nifti-incl=$MA/include --with-nifti-lib=$MA/lib \
# --with-tiff-includes=$MA/include --with-tiff-libraries=$MA/lib \
# --with-jpeg-includes=$MA/include --with-jpeg-libraries=$MA/lib \
# --with-png-includes=$MA/include --with-png-libraries=$MA/lib