当前位置:   article > 正文

Ubuntu下编译安装WebRTC_running depot tools as root is sad.

running depot tools as root is sad.


svn  checkout  http://webrtc.googlecode.com/svn/trunk/

下载完成后, WebRTC下会得到一个默认名为trunk的文件夹,里头就是WebRTC源码了,只是源码而已,并没有编译的相应工程文件。

然后  gclient  config https://webrtc.googlecode.com/svn/trunk     (生成.gconfig文件)

操作这步会提示   Running depot tools as root is sad.  这样的错误,

直接  vi depot_tools/update_depot_tools

把下面的这几行代码全部注释掉, 在执行即可

  1. if [ "$USER" == "root" ];  
  2. then  
  3.   echo Running depot tools as root is sad.  
  4.   exit  
  5. fi 


gclient sync --force     (同步项目文件,要下载1个多G的文件,网速不好的,可以去玩一盘dota回来)

gclient runhooks --force     (生产Linux的MakeFile文件)

下来Make开始编译,编译的过程中碰到很多依赖库没有安装,下面做了记录

安装了下面的三个库:

apt-get install libasound2-dev
apt-get install libpulse-dev
apt-get install libx11-dev


root@zhangsj-mac:/home/webrtc_svn/trunk# make
  CXX(target) out/Debug/obj.target/video_render_module/webrtc/modules/video_render/linux/video_x11_channel.o
In file included from webrtc/modules/video_render/linux/video_x11_channel.cc:11:0:
webrtc/modules/video_render/linux/video_x11_channel.h:20:33: 致命错误: X11/extensions/XShm.h:没有那个文件或目录编译中断。
make: *** [out/Debug/obj.target/video_render_module/webrtc/modules/video_render/linux/video_x11_channel.o] 错误 1


在安装一个库
root@zhangsj-mac:/home/webrtc_svn/trunk#
  apt-get install libxext-dev


最后在Make, 成功。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/850954
推荐阅读
相关标签
  

闽ICP备14008679号