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.
-
Install Visual Studio 2017.
-
Install CMake (http://www.cmake.org/download/).
-
git clone --single-branch --branch master https://github.com/CasparCG/server casparcg-server-master
-
cd casparcg-server-master
-
mkdir build
-
cd build
-
cmake -G "Visual Studio 15 2017" -A x64 ../src
-
Open
CasparCG Server.sln
git clone --single-branch --branch master https://github.com/CasparCG/server casparcg-server-master
cd casparcg-server-master
./tools/linux/build-in-docker
If all goes to plan, a docker image casparcg/server
has been created containing CasparCG Server.
./tools/linux/extract-from-docker
You will then find a folder called casparcg_server
which should contain everything you need to run CasparCG Server.
- Install dependencies
apt-get install git cmake build-essential g++ libglew-dev libfreeimage-dev libtbb-dev libsndfile1-dev libopenal-dev libjpeg-dev libfreetype6-dev libglfw3-dev libxcursor-dev libxinerama-dev libxi-dev libsfml-dev libvpx-dev libwebp-dev liblzma-dev libfdk-aac-dev libmp3lame-dev libopus-dev libtheora-dev libx264-dev libx265-dev libbz2-dev libssl-dev libcrypto++-dev librtmp-dev libgmp-dev libxcb-shm0-dev libass-dev libgconf2-dev
- Install Docker by following installation instructions from Docker Docs
git clone --single-branch --branch master https://github.com/CasparCG/server casparcg-server-master
cd casparcg-server-master
- Extract Boost, FFmpeg and CEF from the docker images via
sudo ./tools/linux/extract-deps-from-docker
. Alternatively these can be prepared manually by following the steps laid out in each Dockerfile mkdir build && cd build
cmake ../src
make -j8
If all goes to plan, a folder called 'staging' has been created with everything you need to run CasparCG server.