使用软件bam-window软件发生cmake错误

时间:2015-03-31 16:33:05

标签: linux github build cmake cmake-gui

我正在尝试安装工具bam-window但我收到了cmake错误。我在linux下载了bam-window-master.zip。该工具的链接托管在git https://github.com/genome-vendor/bam-window中。我下载并按照以下命令。

unzip bam-window-master.zip
cd bam-window-master
mkdir build
cd build
cmake ..

在做cmake ..编译我一段时间后我得到一个错误

-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Git: /usr/bin/git (found version "1.7.10.4") 
CMake Error at cmake/GitHelper.cmake:15 (message):
  Failed to get git revision, abort: fatal: Not a git repository (or any
  parent up to mount point /scratch/GT)

  Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

  !
Call Stack (most recent call first):
  CMakeLists.txt:9 (get_git_version_info)

如何摆脱这种情况并使安装正确?

1 个答案:

答案 0 :(得分:1)

此项目的CMakeLists.txt假设(不幸的是)源代码不是作为zip文件下载,而是从github克隆。

因此,不要使用“Dowload ZIP”链接,只需使用常规GIT命令克隆它:

git clone https://github.com/genome-vendor/bam-window.git