Skip to content

Commit

Permalink
Linux: Build GStreamer
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Sep 16, 2024
1 parent 8ea10ee commit 37898d5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/actions/gstreamer/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
gst_version:
description: Version of GStreamer to Build
required: true
default: 1.22.11
default: 1.24.7
build_type:
description: Build Type "release" or "debug"
required: true
Expand All @@ -25,6 +25,10 @@ runs:
run: git clone --depth 1 --branch ${{ inputs.gst_version }} https://github.com/GStreamer/gstreamer.git
shell: bash

- name: Install Dependencies
run: python3 -m pip install --user ninja meson
shell: bash

- name: Configure GStreamer
working-directory: ${{ inputs.working_directory }}/gstreamer
run: meson setup
Expand All @@ -34,7 +38,7 @@ runs:
--wrap-mode=forcefallback
--strip
-Dauto_features=disabled
-Dgst-full-libraries=gstreamer,base,controller,net,app,audio,fft,pbutils,riff,rtp,rtsp,tag,video,gl,codecparsers,photography
-Dgst-full-libraries=gstreamer,base,video,gl
-Dgpl=enabled
-Dlibav=enabled
-Dorc=enabled
Expand Down Expand Up @@ -87,5 +91,5 @@ runs:

- name: Setup Environment
working-directory: ${{ runner.temp }}/gstreamer
run: echo "PKG_CONFIG_PATH=${{ runner.temp }}/gst/lib/x86_64-linux-gnu/pkgconfig:${{ env.PKG_CONFIG_PATH }}" >> "$GITHUB_ENV"
run: echo "PKG_CONFIG_PATH=${{ runner.temp }}/gst/lib/x86_64-linux-gnu/pkgconfig:${{ runner.temp }}/gst/lib/x86_64-linux-gnu/gstreamer-1.0/pkgconfig:${{ env.PKG_CONFIG_PATH }}" >> "$GITHUB_ENV"
shell: bash
6 changes: 3 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: |
chmod a+x ./tools/setup/install-dependencies-debian.sh
sudo ./tools/setup/install-dependencies-debian.sh
python3 -m pip install --user ninja cmake
python3 -m pip install --user ninja cmake meson
- uses: lukka/get-cmake@latest

Expand Down Expand Up @@ -102,8 +102,8 @@ jobs:
modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors
cache: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}

# - name: Build GStreamer
# uses: ./.github/actions/gstreamer
- name: Build GStreamer
uses: ./.github/actions/gstreamer

- run: mkdir ${{ runner.temp }}/shadow_build_dir

Expand Down
22 changes: 22 additions & 0 deletions tools/setup/install-dependencies-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,25 @@ if apt-cache show libgeographic-dev >/dev/null 2>&1 && apt-cache show libgeograp
elif apt-cache show libgeographiclib-dev >/dev/null 2>&1 && apt-cache show libgeographiclib-dev 2>/dev/null | grep -q "^Package: libgeographiclib-dev"; then
DEBIAN_FRONTEND=noninteractive apt-get install -y --quiet libgeographiclib-dev
fi

# Build GStreamer
# DEBIAN_FRONTEND=noninteractive apt -y --quiet install \
# build-essential \
# libglib2.0-dev \
# libgudev-1.0-dev \
# libssl-dev \
# libcairo-dev \
# libxml2-dev \
# libjpeg-dev \
# libmjpegtools-dev \
# libopenjp2-7-dev \
# libwxgtk3.0-gtk3-dev \
# libsoup2.4-dev \
# libjson-glib-1.0-0 \
# libjson-glib-dev \
# gcc \
# pkg-config \
# git \
# python3-pip \
# flex \
# bison

0 comments on commit 37898d5

Please sign in to comment.