Compile and install WebRTC in Ubuntu

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.