Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion scripts/build_gst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ GST_VERSION=${GST_VERSION:-main}
# This install directory will be accessed by other stages of the docker build:
GST_INSTALL_DIR=${GST_INSTALL_DIR:-/artifacts}
GST_OMX_ENABLED=${GST_OMX_ENABLED:-true}
GST_PYTHON_ENABLED=${GST_PYTHON_ENABLED:-true}
LIBCAMERA_ENABLED=${LIBCAMERA_ENABLED:-false}
LIBCAMERA_VERSION=${LIBCAMERA_VERSION:-master}
LIBCAMERA_GIT_URL=${LIBCAMERA_GIT_URL:-https://git.libcamera.org/libcamera/libcamera.git}
Expand Down Expand Up @@ -56,7 +57,7 @@ GST_MESON_OPTIONS_DEFAULT=(
-D libav=enabled
-D nls=disabled
-D orc=disabled
-D python=disabled
-D python=$( [[ "$GST_PYTHON_ENABLED" == true ]] && echo enabled || echo disabled )
-D qt5=disabled
-D rs=disabled
-D rtsp_server=enabled
Expand Down Expand Up @@ -126,6 +127,15 @@ GST_BUILD_TOOLS_DEFAULT=(
python-gi-dev
)
GST_BUILD_TOOLS=${GST_BUILD_TOOLS:-${GST_BUILD_TOOLS_DEFAULT[@]}}
if [ $GST_PYTHON_ENABLED == true ]; then
GST_BUILD_TOOLS+=(
build-essential
llvm
tk-dev
wget
xz-utils
)
fi

# Although to build GStreamer essentially we need only a few libraries, here we
# are actively providing several libraries which would otherwise be compiled
Expand Down Expand Up @@ -174,6 +184,18 @@ if [ $LIBCAMERA_ENABLED == true ]; then
libboost-dev
)
fi
if [ $GST_PYTHON_ENABLED == true ]; then
GST_BUILD_LIBS+=(
libbz2-dev
libcairo2-dev
libgirepository1.0-dev
libncurses5-dev
libncursesw5-dev
libreadline-dev
libsqlite3-dev
zlib1g-dev
)
fi

GST_PIP_DEPENDENCIES=(
"mako==1.2.0"
Expand All @@ -187,6 +209,11 @@ if [ $LIBCAMERA_ENABLED == true ]; then
"pyyaml==6.0"
)
fi
if [ $GST_PYTHON_ENABLED == true ]; then
GST_PIP_DEPENDENCIES+=(
"pygobject==3.44"
)
fi

cat << EOF
Going to build and install GStreamer in 5 seconds...
Expand Down