Skip to content

Building from source

Hannes Hauswedell edited this page Sep 2, 2015 · 23 revisions

Getting the source

Either download the source from the [releases] (https://github.com/seqan/lambda/releases) page as lambda-vX.Y.Z.tar.gz or check out the master branch with git: % git clone https://github.com/seqan/lambda.git

The latest master branch is not always guaranteed to build, although I do my best to prevent breakage.

Build requirements

  • platforms: 64-bit Linux, 64-bit FreeBSD, 64-bit MacOS X
  • compilers: only GCC >= 4.9.1 is supported right now!
  • cmake >= 2.8.2

Other platforms are currently not a priority, but I do accept patches if they don't break anything else!

Build instructions

   % tar xzf lambda-vX.Y.Z.tar.gz
   % mkdir -p lambda-build/release
   % cd lambda-build/release
   % cmake ../../lambda-vX.Y.Z
   % make -j2

Please be aware that due to excessive use of templating and compile-time optimizations the build might take well over 10min. If your most recent version of GCC is not the default, you have to give its path with -DCMAKE_C_COMPILER and -DCMAKE_CXX_COMPILER.

Build options

As of version 0.9.0 Lambda has two options:

NAME description
LAMBDA_FASTBUILD Setting this is useful for debugging, because the build will be faster. Only BLASTP and BLASTX and only Blosum62 scoring will be supported.
LAMBDA_NATIVE_BUILD Deactivating this will disable CPU-specific optimization, but in return your binary will work on different hardware than the one you are building from.