cmake 软件错误 bam-window 软件

cmake error with a software bam-window software

我正在尝试安装工具 bam-window,但出现 cmake 错误。我在linux中下载了bam-window-master.zip。该工具的 link 托管在 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)

我如何摆脱它并使安装正确?

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

因此,不要使用 "Dowload ZIP" link,只需使用常规 GIT 命令克隆它即可:

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