【问题标题】:Error building the webrtc code on mac在 mac 上构建 webrtc 代码时出错
【发布时间】:2014-02-05 16:56:23
【问题描述】:

这是错误:

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

===== 什么问题?

【问题讨论】:

    标签: macos webrtc


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-18
      • 2016-03-10
      • 1970-01-01
      • 2021-06-30
      • 2016-01-10
      • 2019-11-10
      • 2011-06-17
      • 1970-01-01
      相关资源
      最近更新 更多