由于缺少变量,LLVM无法编译

时间:2015-03-23 05:46:54

标签: clang llvm clang++ llvm-clang

当我尝试使用here中的以下命令编译llvm时, cmake "Unix Make Files" -DCMAKE_BUILD_TYPE=Debug ~/llvm/1/llvm/

我收到以下错误:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBCXXABI_LIBCXX_INCLUDES
   used as include directory in directory /home/salman/llvm/1/llvm/projects/libcxxabi/src
   used as include directory in directory /home/salman/llvm/1/llvm/projects/libcxxabi/src
   used as include directory in directory /home/salman/llvm/1/llvm/projects/libcxxabi/src
   used as include directory in directory /home/salman/llvm/1/llvm/projects/libcxxabi/src

为什么?我用谷歌搜索但找不到可能的解决方案。

1 个答案:

答案 0 :(得分:1)

我刚刚解决了这个问题。

查看here

  

将libcxx和libcxxabi签出到llvm / projects

确保在llvm / projects中查看两者 libcxx和libcxxabi。