https://github.com/genome/genome
Revision 8f07f3d33630d06a13f7c67569b66edddfb17c47 authored by Travis Abbott on 21 November 2012, 22:16:56 UTC, committed by Travis Abbott on 21 November 2012, 22:16:56 UTC
1 parent 93e6f92
Raw File
Tip revision: 8f07f3d33630d06a13f7c67569b66edddfb17c47 authored by Travis Abbott on 21 November 2012, 22:16:56 UTC
use 3 digit version
Tip revision: 8f07f3d
INSTALL.md
BreakDancer uses CMake which is a cross-platform build tool. Basically it will
generate a Makefile so you can use `make`. The requirements are samtools 0.1.6,
gcc, gmake, cmake 2.8+.

Here's the steps to build:

    # --recrusive option is important so that it gets the submodules too
    $ git clone --recursive https://github.com/genome/breakdancer.git
    ...
    Resolving deltas: 100% (38/38), done.
    Submodule path 'build-common': checked out '...'

    $ cd breakdancer
    $ mkdir build
    $ cd build

    $ wget "http://downloads.sourceforge.net/project/samtools/samtools/0.1.6/samtools-0.1.6.tar.bz2"
    $ tar -jxvf samtools-0.1.6.tar.bz2
    $ cd samtools-0.1.6
    $ make
    $ export SAMTOOLS_ROOT=$(pwd)
    $ cd ..

    $ cmake .. -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/usr/local
    ...
    -- Build files have been written to: .../breakdancer/build

    $ make
    ...
    Linking CXX executable ../../../../bin/breakdancer-max
    [100%] Built target breakdancer-max

    $ sudo make install
back to top