WebRTC : ninja build not working

前端 未结 2 1777
盖世英雄少女心
盖世英雄少女心 2020-12-18 13:44

Steps I followed for build of webRTC in UBUNTU env.

Check out the code:

 gclient config https://webrtc.googlecode.com/svn/trunk
 echo \"target_os = [         


        
相关标签:
2条回答
  • 2020-12-18 14:38

    I got the same ninja: error: unknown target 'AppRTCDemo' error on Mac. To resolve this error, I had to specify a valid demo app. For iOS its AppRTCMobile instead of AppRTCDemo as stated in the docs.

    ninja -C out/Debug-sim32 AppRTCMobile

    The RTC Mobile demo exists in the gclient checkout: src/webrtc/examples/objc

    https://chromium.googlesource.com/external/webrtc/+/master/webrtc/examples/objc/AppRTCMobile/

    0 讨论(0)
  • 2020-12-18 14:39

    here are my notes for building the AppRTCDemo on Ubuntu 12.04.4, obviously your directories may be slightly different.

    ## building webrtc
    
    # install dependencies:
    sudo apt-get install git git-svn subversion g++ python libnss3-dev libasound2-dev libpulse-dev libjpeg62-dev libxv-dev libgtk2.0-dev libexpat1-dev lib32asound2-dev ia32-libs
    
    # create a working directory:
    mkdir -p ~/git/working
    
    cd ~/git/working
    
    # get the depottools:
    git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
    
    # Add depot_tools to your PATH:
    echo "PATH=\$PATH:$HOME/git/working/depot_tools" >> ~/.bash_aliases
    echo "export PATH" >> ~/.bash_aliases
    . ~/.bash_aliases
    
    # get the WebRTC source:
    gclient config http://webrtc.googlecode.com/svn/trunk
    
    # configure for android:
    echo "target_os = ['android', 'unix']" >> .gclient
    
    # synchronize:
    gclient sync --nohooks
    
    # set up env variables:
    source ~/git/working/trunk/build/android/envsetup.sh
    
    # install new dependencies:
    sudo ~/git/working/trunk/build/./install-build-deps-android.sh
    sudo ~/git/working/trunk/build/./install-build-deps.sh
    
    # Set up webrtc-related GYP variables:
    export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_java=1 $GYP_DEFINES"
    
    # generate the build scripts:
    gclient runhooks
    
    # install find_depot_tools dummy file:
    wget -O ~/git/working/trunk/build/find_depot_tools.py http://webrtc.googlecode.com/svn/trunk/webrtc/build/find_depot_tools.py
    
    # build the Debug version of the AppRTCDemo:
    ninja -C out/Debug AppRTCDemo
    
    0 讨论(0)
提交回复
热议问题