Building WebRTC trunk for Android and Unix on the VMware Ubuntu Server x64.

For best view please change quality of video up to 720p or 1080p

#Building WebRTC trunk for unix & android on VmWare Ubuntu Server x64 #Best Regards,Ryazantsev S.V. #--------------------------------------------------------------------- ######### Preparing Windows 7 64bit to building 1) Install VMWare on your PC 2) Download Ubuntu Server 12.04.3 LTS 64bit 
(We Need Server and not 32bit!!! this is important ) .iso image 3) Download jdk-6u45-linux-x64.bin form (Old JDK) to you local folder . ->> !) not javase7 this is important - some tools cant work properly with java 7 !! 3) Install Putty (for ssh connect) 4) Install Far3 with WinSCP plugin 5) Run VMWare and select iso image Ubuntu Server 64bit for installing Recomend settings for virtual machine: RAM : 2-2.5 Gb (if less then may be error "Out of memory" on compile ) HDD : 25-30 Gb #------------------------------ #------------------------------ 1) sudo apt-get install openssh-server 2) Type 'ifconfig' to get IP address of you Ubuntu. 3) Open Putty and connect by SSH . 4) Open Far3 , connect to Ubuntu by WinSCP plugin and: copy jdk-6u45-linux-x64.bin from you local directory in Ubuntu "~" folder . ---Go back to Putty. ## Type 'ls' for check existing jdk-6u45-linux-x64.bin ##Installing JAVA ### Firstly install default JAVA by apt-get sudo apt-get install python-software-properties sudo add-apt-repository ppa:webupd8team/java sudo apt-get update && sudo apt-get install oracle-jdk7-installer #then chmod a+x jdk-6u45-linux-x64.bin ./jdk-6u45-linux-x64.bin ##if you download *.tar.gz archive to extract use ## tar -xvf jdk-6u45-linux-x64.tar.gz sudo mkdir /usr/lib/jvm sudo mv jdk1.6.0_45 /usr/lib/jvm/jdk1.6.0_45 ##Update alternatives of java tools jdir=jdk1.6.0_45 sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/$jdir/bin/javac 1 sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/$jdir/bin/java 1 sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/$jdir/bin/javaws 1 sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/$jdir/bin/jar 1 ##Check alternatives sudo update-alternatives --config javac sudo update-alternatives --config java sudo update-alternatives --config javaws sudo update-alternatives --config jar ## and select right path if selected another ##--This manipulations works for me properly! #Checking for correct setting of alternatives ls -la /etc/alternatives/{java,javac,javaws,jar} #--We mast se correct paths to java ,javac,jar,javaws - something like this: lrwxrwxrwx 1 root root 32 Sep 7 08:21 /etc/alternatives/jar -> /usr/lib/jvm/jdk1.6.0_45/bin/jar lrwxrwxrwx 1 root root 33 Sep 7 08:21 /etc/alternatives/java -> /usr/lib/jvm/jdk1.6.0_45/bin/java lrwxrwxrwx 1 root root 34 Sep 7 08:21 /etc/alternatives/javac -> /usr/lib/jvm/jdk1.6.0_45/bin/javac lrwxrwxrwx 1 root root 35 Sep 7 08:21 /etc/alternatives/javaws -> /usr/lib/jvm/jdk1.6.0_45/bin/javaws ## -- Check for correct java version java -version #---- We mast se correct Java version Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode) ## Set JAVA_HOME variable export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_45 'nano ~/.bashrc ' and add line 'export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_45' to the end #Start preparing to build : git,svn,chromium and some tools and libs sudo apt-get install git subversion libpulse-dev g++ pkg-config gtk+-2.0 libnss3-dev git clone export PATH="$PATH":`pwd`/depot_tools 'nano ~/.bashrc' and add line 'PATH="$PATH":`pwd`/depot_tools' to the end 'printenv' to check exist depot_tools path variable . ###Building WebRTC Trunk cd ~ mkdir WebRTCDemo cd WebRTCDemo/ 1) gclient config 2) gclient sync 3) echo target_os = [\'android\', \'unix\'] >> .gclient 4)./trunk/build/ --no-chromeos-fonts 5)./trunk/build/ 6) check 'sudo update-alternatives --config java ' for correct path 7) gclient sync 8) cd trunk 9) source ./build/android/ 10) gclient runhooks 11) GYP_GENERATORS=ninja ./build/gyp_chromium --depth=. all.gyp 12) ninja -C out/Debug -j10 All # -j10 param set 10 threads on compile Compiled result you can find in ~/WebRTCDemo/trunk/out/Debug and download from Far3 Thats all thanks for watching ! ;) #-------------------------------------------------------------------------------- #Links that helped me

3 комментария:

  1. I follow the steps but can find the compiled artifact. When I use the ninja -C out/Debug AppRTCDemo , i get the error :

    ninja: error: unknown target 'AppRTCDemo'

    Any help will be appreciated.

    1. sorry, i mean "Can not find the compiled artifact"