Skip to content
Tom Price edited this page Apr 18, 2016 · 1 revision

This is currently a scratch pad to remember how to do things and take notes

WebRTC

./build/linux/sysroot_scripts/install-sysroot.py --arch arm
export GYP_DEFINES="target_arch=arm arm_float_abi=hard clang=1 include_tests=0 sysroot=$(pwd)/rootfs werror="

sudo debootstrap --arch armhf --foreign --include=g++,libasound2-dev,libpulse-dev,libudev-dev,libexpat1-dev,libnss3-dev,libgtk2.0-dev wheezy rootfs
sudo cp /usr/bin/qemu-arm-static rootfs/usr/bin/
sudo chroot rootfs /debootstrap/debootstrap --second-stage
find rootfs/usr/lib/arm-linux-gnueabihf -lname '/*' -printf '%p %l\n' | while read link target; do     sudo ln -snfv "../../..${target}" "${link}"; done
find rootfs/usr/lib/arm-linux-gnueabihf/pkgconfig -printf "%f\n" | while read target ; do     sudo ln -snfv "../../lib/arm-linux-gnueabihf/pkgconfig/${target}" rootfs/usr/share/pkgconfig/${target}; done
export GYP_CROSSCOMPILE=1
export GYP_DEFINES="target_arch=arm arm_float_abi=hard clang=0 include_tests=0 sysroot=$(pwd)/rootfs werror="
export GYP_GENERATOR_OUTPUT='arm'
cd web
cd webrtc/
gclient sync
ninja -C src/$GYP_GENERATOR_OUTPUT/out/Release
unset GYP_GENERATOR_OUTPUT
gclient sync
ninja -C src/out/Release/
Clone this wiki locally