Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/aravis-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
run: |
pip3 install meson ninja Markdown toml typogrify gi-docgen
sudo apt-get update
sudo apt-get -y install python3 libusb-1.0-0-dev gobject-introspection valgrind libgstreamer-plugins-bad1.0-dev libgtk-3-dev libgirepository1.0-dev python3-gi libunwind-dev gettext
sudo apt-get install -y python3 libusb-1.0-0-dev gobject-introspection valgrind libgstreamer-plugins-bad1.0-dev libgtk-4-dev libadwaita-1-dev libgirepository1.0-dev python3-gi libunwind-dev gettext
- name: Build
run: |
meson setup --buildtype=plain -Ddocumentation=enabled -Dgst-plugin=enabled -Dintrospection=enabled -Dusb=disabled -Dviewer=enabled -Dgentl-producer=true . ./build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aravis-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3
- name: Install dependencies
run: |
brew install meson ninja gcc gettext intltool libxml2 libusb gstreamer adwaita-icon-theme gobject-introspection glib
brew install meson ninja gcc gettext intltool libxml2 libusb gstreamer gtk4 libadwaita adwaita-icon-theme gobject-introspection glib
- name: Build
run: |
meson setup --buildtype=plain -Ddocumentation=disabled -Dgst-plugin=enabled -Dintrospection=disabled -Dusb=enabled -Dviewer=enabled -Dgentl-producer=true . ./build
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/aravis-mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
mingw-w64-${{matrix.env}}-gst-plugins-good
mingw-w64-${{matrix.env}}-gst-plugins-bad
mingw-w64-${{matrix.env}}-gstreamer
mingw-w64-${{matrix.env}}-gtk3
mingw-w64-${{matrix.env}}-gtk4
mingw-w64-${{matrix.env}}-libadwaita
mingw-w64-${{matrix.env}}-libxml2
mingw-w64-${{matrix.env}}-zlib
mingw-w64-${{matrix.env}}-libusb
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ support depending on libusb1.
The GStreamer plugin depends on GStreamer1 in addition to the Aravis library
dependencies.

The simple viewer depends on GStreamer1, Gtk+3 and the Aravis library
dependencies.
The simple viewer depends on GStreamer1, GTK 4, libadwaita and the Aravis
library dependencies. The viewer renders through `gtk4paintablesink` (from
gst-plugins-rs) when that element is available, and falls back to a CPU
renderer otherwise; gst-plugins-rs is therefore optional at build time.

The required versions are specified in the
[meson.build](https://github.com/AravisProject/aravis/blob/main/meson.build)
Expand Down
20 changes: 12 additions & 8 deletions docs/reference/aravis/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,29 @@ indicates development releases, and even minor values stable releases. Prior to
1.0.0, stable releases with different minor are not compatible, and are parallel
installable, with executables suffixed with `-major.minor`.

## Install dependencies on Ubuntu 20.04
## Install dependencies on Ubuntu 24.04

The viewer requires GTK 4.12 and libadwaita 1.4, so Ubuntu 24.04 or later is
needed; older releases do not ship a new enough GTK 4.

Prior to running `meson` and `ninja`, dependencies can be installed using the
following(tested on Ubuntu 20.04):
following(tested on Ubuntu 24.04):

```sh
sudo apt install libxml2-dev libglib2.0-dev cmake libusb-1.0-0-dev gobject-introspection \
libgtk-3-dev gtk-doc-tools xsltproc libgstreamer1.0-dev \
libgtk-4-dev libadwaita-1-dev gtk-doc-tools xsltproc libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev \
libgirepository1.0-dev gettext
```

## Install dependencies on Fedora 34/35
## Install dependencies on Fedora 40 or later
Due to differences in the deb and rpm package ecosystems dependencies can be
installed on Fedora (tested on 34 and 35) with:
installed on Fedora with:

```sh
sudo dnf install libxml2-devel glib2-devel cmake libusb1-devel gobject-introspection \
gobject-introspection-devel gstreamer1-plugins-base-devel gtk3-devel \
gobject-introspection-devel gstreamer1-plugins-base-devel gtk4-devel \
libadwaita-devel \
gtk-doc libxslt gstreamer1-devel gstreamer1-plugins-good python3-gobject \
g++ meson gettext
```
Expand Down Expand Up @@ -86,7 +90,7 @@ If you want to be able to build the viewer, you have to install some additional
packages:

```sh
brew install gtk+3 gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad libnotify gnome-icon-theme
brew install gtk4 libadwaita gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad libnotify gnome-icon-theme
meson configure -Dviewer=enabled build
```

Expand Down Expand Up @@ -121,7 +125,7 @@ pip3 install --user git+git://git.tuxfamily.org/gitroot/crossroad/crossroad.git
# create cross-compilation environment with architecture "w64" called "aravis"
crossroad w64 aravis
# install packages required for compilation; crossroad adds the mingw-w64_x86_64- prefix automatically
crossroad install libnotify gstreamer gst-plugins-good gst-plugins-bad gst-plugins-bad gobject-introspection libusb gtk3 libxml2 zlib
crossroad install libnotify gstreamer gst-plugins-good gst-plugins-bad gst-plugins-bad gobject-introspection libusb gtk4 libadwaita libxml2 zlib
# clone aravis sources
git clone https://github.com/AravisProject/aravis
cd aravis
Expand Down
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ subdir ('src')

viewer_enabled = false
viewer_option = get_option ('viewer')
viewer_deps = aravis_dependencies + [dependency ('gtk+-3.0', version: '>=3.12', required: viewer_option),
viewer_deps = aravis_dependencies + [dependency ('libadwaita-1', version: '>=1.4', required: viewer_option),
dependency ('gtk4', version: '>=4.12', required: viewer_option),
dependency ('gstreamer-base-1.0', required: viewer_option),
dependency ('gstreamer-app-1.0', required: viewer_option),
dependency ('gstreamer-video-1.0', required: viewer_option)]
Expand Down
Loading
Loading