Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.6 KB

BUILDING.md

File metadata and controls

51 lines (34 loc) · 1.6 KB

Building the CasparCG Server

The CasparCG Server source code uses the CMake build system in order to easily generate build systems for multiple platforms. CMake is basically a build system for generating build systems.

On Windows we can use CMake to generate a .sln file and .vcproj files. On Linux CMake can generate make files or ninja files. Qt Creator has support for loading CMakeLists.txt files directly.

Windows

Development using Visual Studio

  1. Install Visual Studio 2017.

  2. Install CMake (http://www.cmake.org/download/).

  3. git clone --single-branch --branch 2.2.0 https://github.com/CasparCG/server casparcg-server-2.2.0

  4. cd casparcg-server-2.2.0

  5. cmake -G "Visual Studio 15 2017" -A x64 ./src

  6. Open ./src/CasparCG Server.sln

Linux

Building inside Docker

  1. git clone --single-branch --branch 2.2.0 https://github.com/CasparCG/server casparcg-server-2.2.0
  2. cd casparcg-server-2.2.0
  3. tools/linux/build-in-docker

If all goes to plan, a docker image has been created containing CasparCG Server.

Development

  1. Build boost and ffmpeg as per the docker images inside of tools/linux they should be saved in /opt/boost and /opt/ffmeg
  2. git clone --single-branch --branch 2.2.0 https://github.com/CasparCG/server casparcg-server-2.2.0
  3. mkdir casparcg-server-2.2.0-build && cd casparcg-server-2.2.0-build
  4. cmake ../casparcg-server-2.2.0
  5. make -j8

If all goes to plan, a folder called 'staging' has been created with everything you need to run CasparCG server.