SEQanswers

SEQanswers (http://seqanswers.com/forums/index.php)
-   Bioinformatics (http://seqanswers.com/forums/forumdisplay.php?f=18)
-   -   Cmake (ensure_out_of_source_build) error (http://seqanswers.com/forums/showthread.php?t=25524)

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,
https://github.com/pezmaster31/bamto...and-installing
https://github.com/pezmaster31/bamtools/pull/62

Thanks.

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.

Code:

git clone https://github.com/domibel/bamtools.git
mkdir bamtools-build
cd bamtools-build
cmake ../bamtools
make

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

Justin

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.