【发布时间】:2015-09-15 03:10:14
【问题描述】:
我正在尝试按照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 提到的缺失文件确实存在于相应的文件夹中!)
还是因为llvm / clang / cling应该在windows上用cygwin构建,而我默认使用的编译器vc12不正确?
【问题讨论】:
标签: windows cmake cygwin llvm cling