-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.sh
executable file
·47 lines (37 loc) · 2.22 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
#!/bin/sh
# This script will configure and build Woolz. Uncomment the appropriate
# configure command line 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=$HOME/MouseAtlas/Build/
export MA=/opt/MouseAtlas
# Build; with debug and external file formats.
# This requires jpeg, nifti, tiff, bz2, lzma and z libraries.
#./configure --prefix=$MA --enable-debug --enable-extff --with-tiff=$MA --with-cjson=$MA --with-nifti=$MA --with-jpeg=$MA
# The default build; optimised, using openmp and external file formats.
# This requires jpeg, nifti, tiff, bz2, lzma and z libraries.
./configure --prefix=$MA --enable-optimise --enable-openmp --enable-extff --with-cjson=$MA --with-nifti=$MA --with-jpeg=$MA --with-tiff=$MA --with-pic --enable-static --disable-shared
# A more optimised build suitable for recent compilers and x86_64 processors
# developed after 2013, again this requires jpeg, nifti and tiff libraries.
#./configure --prefix=$MA --enable-optimise --enable-openmp --enable-avx2 --enable-lto --enable-extff --with-cjson=$MA --with-nifti=$MA --with-jpeg=$MA --with-tiff=$MA --with-pic --enable-static --disable-shared
# Build the core Woolz code unoptimised with debug support.
# This requires only standard system libraries.
#./configure --prefix=$MA --enable-debug
# Build the core and test Woolz code unoptimised with debug support.
# This requires only standard system libraries.
#./configure --prefix=$MA --enable-debug --enable-test
# Build the core Woolz code optimised
# This requires only standard system libraries.
#./configure --prefix=$MA --enable-optimise --enable-openmp
# Build the core Woolz code optimised with test code.
# This requires only standard system libraries.
#./configure --prefix=$MA --enable-optimise --enable-openmp --enable-test
# Build the core Woolz code optimised for Windows (64 bit) from a Linux
# environmnt using MinGW64
#./configure --prefix=$MA --host=x86_64-w64-mingw32 --enable-optimise --enable-static --disable-shared --with-pic