Skip to content

CasparCG on Linux notes

krzyc edited this page May 1, 2017 · 2 revisions

Table of Contents

CasparCG on Linux

Keep in mind that only officially supported Linux distribution is Ubuntu 14.04 LTS.

Compiling on Kubuntu 17.04

sudo apt install build-essential git-core cmake libudev-dev libx11-dev libgl1-mesa-dev libsndfile1-dev libxrandr-dev
git clone [repo] CasparCG-Server

Because Ubuntu shipped gcc defaults to PIE you need to disable it - apply patch from:
https://github.com/CasparCG/Server/pull/510/commits/808f91c29b0daeeefebad3c6b9a31f7823e356fa

You will also need to grab libgcrypt.so.11 from older Ubuntu version (CEF3 requirement):
https://launchpad.net/ubuntu/+archive/primary/+files/libgcrypt11_1.5.3-2ubuntu4.2_amd64.deb

cd CasparCG-Server
mkdir build
cd build
cmake ..
make -j[number of CPU cores]

Fixing problems on Kubuntu 17.04

General

Error while loading libgcrypt.so.11:
Extract libgcrypt.so.11 and libgcrypt.so.11.8.2 to CasparCG lib/ directory. You can get it from:
https://launchpad.net/ubuntu/+archive/primary/+files/libgcrypt11_1.5.3-2ubuntu4.2_amd64.deb

Error while loading libcgmanager.so.0:

sudo apt install libcgmanager0

HTML producer

After playing HTML template you can get some error messages or even a freeze.

To fix GTK theme error:

sudo apt install gnome-themes-standard

To fix Fontconfig error which probably also causes freeze in rendering engine, add below line to script starting CasparCG Server:

export FONTCONFIG_PATH=/etc/fonts