https://github.com/ma-tech/Woolz
Raw File
Tip revision: 5ab012fff0fb50186d6ea8508f0d8b3063c45dc3 authored by Bill Hill on 15 August 2022, 13:30:41 UTC
README now Readme.md.
Tip revision: 5ab012f
build.sh
#!/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
back to top