Skip to content

Commit 584a64c

Browse files
committed
chore: update linux building docs. Invert logic to prefer building with system dependencies
1 parent 9465f71 commit 584a64c

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

BUILDING.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,22 @@ Before beginning, check the build options section below, to decide if you want t
7979
1. `git clone --single-branch --branch master https://github.com/CasparCG/server casparcg-server-master`
8080
2. `cd casparcg-server-master`
8181
3. Install dependencies, this can be done with `sudo ./tools/linux/install-dependencies`
82-
4. `mkdir build && cd build`
83-
5. `cmake ../src`
84-
6. If not using system ffmpeg, run `./_deps/ffmpeg-lib-src/ffmpeg/install-ffmpeg-dependencies` to install the dependencies needed by the ffmpeg build
85-
7. `make -j8`
82+
4. If not using system ffmpeg, run `./_deps/ffmpeg-lib-src/ffmpeg/install-ffmpeg-dependencies` to install the dependencies needed by the ffmpeg build
83+
5. If using system CEF, `sudo add-apt-repository ppa:casparcg/ppa` and `sudo apt-get install casparcg-cef-131-dev`
84+
6. `mkdir build && cd build`
85+
7. `cmake ../src`
86+
8. `make -j8`
8687

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

8990
## Build options
9091

9192
-DENABLE_HTML=OFF - useful if you lack CEF, and would like to build without that module.
9293

93-
-DUSE_STATIC_BOOST=OFF - (Linux only) link against shared version of Boost.
94+
-DUSE_STATIC_BOOST=ON - (Linux only, default OFF) statically link against Boost.
9495

95-
-DUSE_SYSTEM_FFMPEG - (Linux only) use the version of ffmpeg from your OS.
96+
-DUSE_SYSTEM_FFMPEG=OFF - (Linux only, default ON) use the version of ffmpeg from your OS.
97+
98+
-DUSE_SYSTEM_CEF=OFF - (Linux only, default ON) use the version of CEF from your OS. This expects to be using builds from https://launchpad.net/~casparcg/+archive/ubuntu/ppa
99+
100+
-DDIAG_FONT_PATH - Specify an alternate path/font to use for the DIAG window. On linux, this will often want to be set to an absolute path of a font

src/CMakeModules/Bootstrap_Linux.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ if(POLICY CMP0167)
1212
endif()
1313

1414
set(ENABLE_HTML ON CACHE BOOL "Enable CEF and HTML producer")
15-
set(USE_STATIC_BOOST ON CACHE BOOL "Use shared library version of Boost")
16-
set(USE_SYSTEM_FFMPEG OFF CACHE BOOL "Use the version of ffmpeg from your OS")
15+
set(USE_STATIC_BOOST OFF CACHE BOOL "Use shared library version of Boost")
16+
set(USE_SYSTEM_FFMPEG ON CACHE BOOL "Use the version of ffmpeg from your OS")
17+
set(USE_SYSTEM_CEF ON CACHE BOOL "Use the version of cef from your OS (only tested with Ubuntu)")
1718

1819
# Determine build (target) platform
1920
SET (PLATFORM_FOLDER_NAME "linux")

tools/linux/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FROM docker.io/buildpack-deps:jammy as build-casparcg
1313
ARG CXX
1414
ARG GIT_HASH
1515

16-
RUN cmake -GNinja /source
16+
RUN cmake -GNinja /source -DUSE_STATIC_BOOST=ON -DUSE_SYSTEM_FFMPEG=OFF -DUSE_SYSTEM_CEF=OFF
1717

1818
# ensure ffmpeg dependencies are installed
1919
RUN apt-get update && ./_deps/ffmpeg-lib-src/ffmpeg/install-ffmpeg-dependencies

0 commit comments

Comments
 (0)