Compile and install WebRTCsvncheckouthttp in Ubuntu: // configure. Then gclientconfighttps: // webrtc.
Compile and install WebRTC in Ubuntu
Svn checkout http://webrtc.googlecode.com/svn/trunk/
After the download is complete, WebRTC will get a folder named trunk by default, which contains the WebRTC source code, which is only the source code and does not compile the corresponding project file.
Then gclient config https://webrtc.googlecode.com/svn/trunk (generate the. gconfig file)
Gclient sync -- force)
Gclient runhooks -- force (generate MakeFile files for Linux)
Make starts compilation. Many dependent libraries are not installed during compilation. The following is a record.
The following three libraries are installed:
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.tar get/video_render_module/webrtc/modules/video_render/linux/video_x11_channel.o
In file encoded ded from webrtc/modules/video_render/linux/video_x11_channel.cc: 11: 0:
Webrtc/modules/video_render/linux/video_x11_channel.h: 20: 33: Fatal error: X11/extensions/XShm. h: the file or directory compilation is not interrupted.
Make: *** [out/Debug/obj.tar get/video_render_module/webrtc/modules/video_render/linux/video_x11_channel.o] Error 1
Install a library
Root @ zhangsj-mac:/home/webrtc_svn/trunk # apt-get install libxext-dev
Finally, Make is successful.
July 2014 update: Ubuntu 14.04 compiled WebRTC For Android code http://www.linuxidc.com/Linux/2014-10/108084.htm
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2