CMake错误:文件/cygdrive /.../src/LLVMBuild.txt不存在

时间:2015-09-15 03:10:14

标签: windows cmake cygwin llvm cling

我正按照说明here尝试在Windows7上构建cling

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=[Install Path] ..\src
cmake --build . --config [Release/Debug] --target cling

我注意到编译器cmake正在使用Visual Studio 12 2013(使用cmake-gui或cmdline),而我收到以下错误(full traceback is here):

Constructing LLVMBuild project information
CMake Error: File /cygdrive/e/ABOUT-C++/cling/src/LLVMBuild.txt does not exist.
CMake Error at E:/ABOUT-C++/cling/build/LLVMBuild.cmake:28 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:431 (include)


CMake Error: File /cygdrive/e/ABOUT-C++/cling/src/bindings/LLVMBuild.txt does not exist.
CMake Error at E:/ABOUT-C++/cling/build/LLVMBuild.cmake:30 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:431 (include)

为什么路径的前缀是/cygdrive/e/...而不是E:/...?那些有效的路径? (缺少的文件cmake提到DO存在于相应的文件夹中!)

或者是因为llvm / clang / cling应该在Windows上使用cygwin构建,而我默认使用的编译器vc12是不正确的?

1 个答案:

答案 0 :(得分:5)

我敢打赌,你的问题在于你的python。判断D:/cygwin/bin/python2.7.exe似乎你使用的是特殊版本的python,它在整个地方都有/cygdrive/

尝试使用官方binary package for Windows