Install Aravis#
Install Aravis 0.8#
Aravis is now available through apt packages along with some useful tooling:
sudo apt libaravis-dev aravis-tools aravis-tools-cli
If you are going to build applications for Aravis, you might need to perform system introspection using PkgConfig. We noticed that additional development packages are necessary for PkgConfig to correctly find Aravis:
sudo apt install libglib2.0-dev libxml2-dev zlib1g-dev libusb-1.0-0-dev
Install Aravis 0.4#
- Download the current stable release here (backup here).
- Install the following dependencies:
sudo apt install glib-2.0 gobject-2.0 gio-2.0 libxml-2.0 thread-2.0 zlib gstreamer-base-1.0 streamer-app-1.0 gstreamer-base-0.10 gstreamer-app-0.10 gstreamer-video-1.0 gtk+-3.0 libnotify - Install even more dependencies:
sudo apt install autoconf intltool python-gobject-dev gobject-introspection gtk-doc-tools libgstreamer0.10-dev python-gst0.10-dev libxml2-dev - Uncompress the downloaded Aravis package and open a terminal in that folder.
- Run
./configure - Run
make - Run
sudo make install - Run
sudo ldconfig - (for USB cameras only) Copy the udev rules into
/etc/udev/rules.d/aravis.rules(source):# FLIR Integrated Imaging Solutions SUBSYSTEM=="usb", ATTRS {idVendor}=="1e10", MODE:="0666", TAG+="uaccess", TAG+="udev-acl"
If you need some special features...#
Depending on what you need, you have to call autogen with different parameters.
The most common are:
--enable-viewer#
Builds the aravis example application that allows basic interaction with your camera. The viewer needs GTK+3 and libnotify. You can install them with
sudo apt install libgtk-3-dev libnotify-dev libgstreamer1.0 libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-bad
--enable-gst-plugin#
Build the aravis gstreamer plugin.
--enable-gst-plugin-0.10#
Build the aravis gstreamer-0.10 plugin.
--enable-gtk-doc#
Build the aravis documentation.
--enable-introspection=yes#
Allow interaction with aravis trough gobject introspection. This allows usage of aravis in non-c based languages like Python or Perl.
On Ubuntu / Debian it is sudo apt install libgirepository1.0-dev
--disable-silent-rules#
If you want to see the actual compile commands
For an overview over all available arguments try configure --help
In case the library is built with ./autogen.sh --enable-viewer --enable-introspection=yes some more packages are needed: sudo apt install libgirepository1.0-dev libnotify-dev lib-gtk-3-dev
Original Source#
Should you have any trouble with the installation process, you can read the original source of this guide here.