This repository was archived by the owner on Apr 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
EPEL7
sukinull edited this page Oct 21, 2015
·
8 revisions
- Groups
Development Tools
- Packages
subversion
pkg-config
java-1.7.0-openjdk-devel
expat-devel
gtk2-devel
nss-devel
openssl-devel
pulseaudio-libs-devel
systemd-devel
- Download latest depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
- Add depot_tools folder to your environmental variables PATH
export PATH=$HOME/Build/depot_tools:$PATH
export JAVA_HOME=/usr/lib/jvm/java-1.8.0
export GYP_DEFINES="use_openssl=1"
- (Optional) For 32-bit compilation set target_arch *1
export GYP_DEFINES="$GYP_DEFINES target_arch=ia32"
- fetch webrtc, source *1 shows 3.52 is most stable(?)
mkdir webrtc-checkout
cd webrtc-checkout
fetch webrtc
- Download libwebrtc and dependencies
gclient sync --force
gclient sync --force
- Very straightforward
gclient runhooks --force
ninja -C out/Debug
ninja -C out/Release
- comments HAVE_WEBRTC_VIDEO in
- chromium/src/third_party/libjingle/source/talk/build/common.gypi
- chromium/src/third_party/libjingle/libjingle.gyp
- patch ./talk/media/webrtc/webrtcvideocapturerfactory.cc
--- ./talk/media/webrtc/webrtcvideocapturerfactory.cc.orig 2015-10-21 19:05:44.557046601 +0800
+++ ./talk/media/webrtc/webrtcvideocapturerfactory.cc 2015-10-21 19:10:33.673506909 +0800
@@ -32,12 +32,16 @@
namespace cricket {
VideoCapturer* WebRtcVideoDeviceCapturerFactory::Create(const Device& device) {
+#if defined(HAVE_WEBRTC_VIDEO)
rtc::scoped_ptr<WebRtcVideoCapturer> capturer(
new WebRtcVideoCapturer());
if (!capturer->Init(device)) {
return NULL;
}
return capturer.release();
+#else
+ return NULL;
+#endif
}
} // namespace cricket
*1) Is not tested. Source is here Building the code for Linux
Build the code
gclient