You need to build the WebRTC native library manually before you can compile this plugin.
Instructions can be found from http://www.webrtc.org/reference/getting-started but some parts are a bit obscure so here is the rundown.
Note: These instructions are for Visual Studio, not for cygwin.
WebRTC uses Google depot_tools
as the build platform which recently made Visual Studio 2013 the only supported toolchain on Windows. We are investigating how to correct the situation. Using a older revision from the WebRTC repo does not fix the issue as it is still using the latest depot_tools
. The below instructions are for VS2008 which is what we used to build the release binaries.
- Visual Studio 2008 or newer, with all service packs installed. If you have an Express edition see http://www.webrtc.org/reference/getting-started/prerequisite-sw for more instructions.
- Latest Microsoft Windows SDK
- Latest Microsoft DirectX SDK
- Python 2.7.x and add it to your PATH
Depot tools is used in various Google projects, so if you already have it installed skip this step.
- Download Google depot tools https://src.chromium.org/svn/trunk/tools/depot_tools.zip
- Extract to
<depot_path>
(freely choose your own location) - Add
<depot_path>
as the LAST item in yourPATH
- Open Windows cmd prompt and
cd <depot_path>
- Run command
gclient
. If this does not go back to 3.
- Open Windows cmd prompt and create a working directory
<webrtc_path>
(freely choose your own location) - Run command
cd <webrtc_path>
- Run command
gclient config http://webrtc.googlecode.com/svn/trunk
- Add new environment variable
GYP_MSVS_VERSION
and set the value as your Visual Studio version, eg.2008
. Close all cmd prompts before you set it. - Add net environment variable
WEBRTC_ROOT
and set te value to<webrtc_path>
. This is used by CloudRenderingPlugin CMake run to locate headers and libraries. - Repeat step 2. and run command
gclient sync --force
You should now have <webrtc_path>\trunk\all.sln
Visual Studio solution file. It is however misconfigured for Tundra usage, we need to use the DLL version of the runtime. Here is how to configure it. This step needs to be done any time you want to regenerate the project files.
- Open Windows cmd prompt and
cd <webrtc_path>\trunk
- Run command
python build/gyp_chromium -D"component=shared_library" --depth=. all.gyp
Now you will have <webrtc_path>\trunk\all.sln
that uses the DLL runtime. You can proceed to build WebRTC.
Open trunk\all.sln
in Visual Studio and build. You will likely get build errors in trunk especially on Windows. It's usually relatively simple to fix everything quickly. Exclude unit test projects, they have lots of build errors and are not needed.
Build results can be found from trunk\build\Release|Debug
. Build the needed modes what you need to build in your development.
- Add
add_subdirectory(src/cloud-rendering-plugins)
at the end of<tundra_repo>\CMakeBuildConfig.txt
. You may have cloned this repo to another location, make add_subdirectory point to it. - Run Tundra CMake.
- Open
tundra.sln
and build.
TundraConsole.exe --config tundra-client.json --plugin CloudRenderingPlugin --cloudRenderer <host:port_of_your_cloud_rendering_service>