在Mac上构建WebRTC代码时出错 [英] Error building the webrtc code on mac

查看:110
本文介绍了在Mac上构建WebRTC代码时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是错误:

sys/cdefs.h' file not found

我所做的只是按照官方的步骤进行,"gclient sync --force"提示以下错误:

what i've done is just follow the offical steps,the" gclient sync --force" prompt the following errors:

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

===== 什么问题

===== what the problem?

推荐答案

在小牛队上?尝试键入"xcode-select --install"以弹出对话框来安装Xcode命令行工具.那应该给您一个/usr/include目录,然后构建LLVM应该可以工作.

On Mavericks? Try typing "xcode-select --install" to pop up the dialog to install the Xcode command-line tools. That should give you a /usr/include directory and then building LLVM should work.

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

这篇关于在Mac上构建WebRTC代码时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆