Skip to content

Commit

Permalink
Added quickbuild.sh, mainly to reduce typing in the Containers traini…
Browse files Browse the repository at this point in the history
…ng course. Updated README.md
  • Loading branch information
aaszodi committed May 11, 2022
1 parent a665027 commit a759e2f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 5 deletions.
24 changes: 19 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,34 @@ by András Aszódi

_Version 1.3_

See `doc/html/guide.html` for installation instructions
and a detailed documentation.

This program is licensed under the terms of the BSD Open Source license.
See the file `LICENSE` for details.

Pre-compiled binaries are provided for some popular architectures.
If you want to build Multovl from scratch, keep on reading:

## Building Instructions for the Impatient
## Building instructions

See `doc/html/guide.html` for installation instructions
and a detailed documentation.

### Prerequisites

You will need `cmake` Version 2.8 or above, a C++98-compliant compiler,
You will need `cmake` Version 3.1 or above, a C++98-compliant compiler,
and the Boost libraries (1.44 or above) to build Multovl.

### For the very impatient

Run the `quickbuild.sh` script in the top-level Multovl directory.
This will compile the package using static linkage, assuming a Linux
platform, Boost libraries installed in the usual system location.
The Multovl installation goes under `/usr/local`. You can pass the
installation prefix by providing a path as a command line argument.
E.g. `quickbuild.sh $HOME/foo/bar` will install Multovl executables into
`$HOME/foo/bar/multovl-1.3/bin`.

### For the moderately impatient

By default all these external libraries will be linked statically.
To link all of them dynamically instead, specify the CMake option
`-DMULTOVL_USE_DYNAMIC_LIBS:BOOL=ON`
Expand Down
28 changes: 28 additions & 0 deletions quickbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

# Quick build script
# Release build, static linkage.
# Works on Linux platforms.
# 2022-05-11 Andras Aszodi

# Top-level MULTOVL directory (where this script is located)
MULTOVLDIR=$( cd $(dirname $0) ; pwd -P )

# Build in this subdirectory
BUILDDIR=release
# Install in this directory
INSTALLDIR=${1:-"/usr/local"}

# Build and install
mkdir -p $BUILDDIR
cd $BUILDDIR
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${INSTALLDIR} ..
make -j2 install

# Test the installation
cd ${INSTALLDIR}/multovl-1.3/bin
./multovltest.sh ./multovl
./multovl --version

# Go back
cd $MULTOVLDIR

0 comments on commit a759e2f

Please sign in to comment.