linux - 使用软件 bam-window 软件的 cmake 错误

标签 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)

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

最佳答案

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

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

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

关于linux - 使用软件 bam-window 软件的 cmake 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29373758/

相关文章:

c - 为什么 fopen/fprintf 没有竞争条件

python - 如何在 Heroku (Python) 中解决 "Application Error"

github - Github网页-找不到错误404文件

java - 如何为目标集创建 Maven 别名?

linux - 使用 sys.stdin.buffer.read() 后使用 input() 时出现 EOFError

c++ - 在 linux 平台上用 c/c++ 打印进程的所有线程堆栈跟踪

java - 当我运行 Flutter 项目时,我的 Ubuntu 系统出现此错误

ruby-on-rails - 致命 : could not read Username for 'https://github.com' : No such device or address

docker - 如何将构建输出重定向到文件?

Angular dist 文件巨大,导致下载缓慢