SEQanswers (
-   Bioinformatics (
-   -   Cmake (ensure_out_of_source_build) error (

edge 12-05-2012 07:24 AM

Cmake (ensure_out_of_source_build) error
Currently I would like to install bamtools.
However, I keep on facing the following bug message:
CMake Error at CMakeLists.txt:20 (message):

BamTools requires an out of source build.
$ mkdir build
$ cd build
$ cmake ..
$ make

(or the Windows equivalent)

Call Stack (most recent call first):
CMakeLists.txt:24 (ensure_out_of_source_build)

-- Configuring incomplete, errors occurred!

Anyone got advice to solve this bug?
I have follow the step by step as shown in bamtools installation manual and the following link,


BAMseek 12-05-2012 10:24 AM

Where are you creating the build folder? The out-of-source build constraint means you aren't allowed to build the executable in your source directory (so that you don't clutter up the source tree).

I just tried the following steps, and it seemed to work fine on my Mac.


git clone
mkdir bamtools-build
cd bamtools-build
cmake ../bamtools

The bamtools-build directory is at the same level as the bamtools directory. The bamtools executable will be in bamtools-build/bin


edge 12-05-2012 07:45 PM

Thanks BAMseek.

You are right.
You solved my problem instead :)

Many thanks.

All times are GMT -8. The time now is 06:19 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.