在mac上构建webrtc代码时出错

时间:2013-12-21 14:14:35

标签: macos webrtc

这是错误:

sys/cdefs.h' file not found

我所做的只是遵循官方步骤,“gclient sync --force”提示以下错误:

In file included from /Users/ted/Desktop/webrtcSrc/WD/trunk/third_party/llvm/projects/compiler-rt/lib/asan/asan_fake_stack.cc:14:
In file included from /Users/ted/Desktop/webrtcSrc/WD/trunk/third_party/llvm/projects/compiler-rt/lib/asan/asan_allocator.h:19:
In file included from /Users/ted/Desktop/webrtcSrc/WD/trunk/third_party/llvm/projects/compiler-rt/lib/asan/asan_interceptors.h:18:
/Users/ted/Desktop/webrtcSrc/WD/trunk/third_party/llvm/projects/compiler-rt/lib/interception/interception.h:90:10: fatal error: 'sys/cdefs.h' file not found

===== 有什么问题?

1 个答案:

答案 0 :(得分:0)

小牛队?尝试输入“xcode-select --install”弹出对话框以安装Xcode命令行工具。这应该给你一个/ usr / include目录,然后构建LLVM应该可以工作。

参考:http://clang-developers.42468.n3.nabble.com/Naive-Mavericks-Trunk-Build-Errors-td4035480.html