# webrtc **Repository Path**: privaterepo/webrtc ## Basic Information - **Project Name**: webrtc - **Description**: webrtc branch for rtc_v_group - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2020-07-17 - **Last Updated**: 2020-12-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ##webrtc #1 编译ninja ### Python ``` ./configure.py --bootstrap ``` This will generate the `ninja` binary and a `build.ninja` file you can now use to build Ninja with itself. ### CMake ``` cmake -Bbuild-cmake -H. cmake --build build-cmake ``` The `ninja` binary will now be inside the `build-cmake` directory (you can choose any other name you like). To run the unit tests: ``` ./build-cmake/ninja_test ``` #2 编译GN git clone https://gn.googlesource.com/gn cd gn python build/gen.py ninja -C out On Windows, it is expected that `cl.exe`, `link.exe`, and `lib.exe` can be found in `PATH`, so you'll want to run from a Visual Studio command prompt, or similar. On Linux and Mac, the default compiler is `clang++`, a recent version is expected to be found in `PATH`. This can be overridden by setting `CC`, `CXX`, and `AR`. #3 添加Ninja GN Depot_tools到Path变量 #4 Windows build gn gen out/x86/Debug --ide=vs2017 --sln=webrtc_msvc.sln --winsdk=10.0.16299.0 --args="is_debug=true is_clang=false rtc_include_tests=false target_cpu=\"x86\"" gn gen out/x86/Debug --ide=vs2017 --sln=webrtc_msvc --winsdk=10.0.17763.0 --args="target_os=\"win\" is_debug=true is_clang=false rtc_include_tests=false target_cpu=\"x86\"" gn gen out/x64/Debug --ide=vs2017 --sln=webrtc_msvc --winsdk=10.0.16299.0 --args="is_debug=true is_clang=false rtc_include_tests=false target_cpu=\"x64\"" #5 Linux build gn gen out/Debug --args="is_debug=true is_clang=false rtc_include_tests=false treat_warnings_as_errors=false" gn gen out/Release --args="is_debug=false is_clang=false rtc_include_tests=false treat_warnings_as_errors=false" ### trouble-shoot pkg-not-found add PKG_CONFIG_PATH to enviroment,x86_64 /usr/lib/x86_64-linux-gnu/pkgconfig/ ;mips64el /usr/lib/mips64el-linux-gnuabi64/pkgconfig/:/usr/share/pkgconfig/: gtk+-3.0.pc install libgtk-3-dev audio library apt-get install libasound2-dev libpulse-dev