Difference between revisions of "NVIDIA VPI GStreamer Plug-in/Getting Started/Building the NVIDIA VPI GStreamer Plug-in"

From RidgeRun Developer Connection
Jump to: navigation, search
m
Line 2: Line 2:
 
{{NVIDIA VPI GStreamer Plug-in/Head|previous=Getting Started/Getting the code|next=User Guide|keywords=}}
 
{{NVIDIA VPI GStreamer Plug-in/Head|previous=Getting Started/Getting the code|next=User Guide|keywords=}}
 
</noinclude>
 
</noinclude>
 +
 +
== Dependencies ==
 +
 +
The GstVPI plugin has the following dependencies:
 +
 +
=== Meson ===
 +
 +
The GstVPI plugin makes use of the Meson build system. To build correctly this plugin you need to use the latest version of Meson:
 +
 +
First, make sure python dependencies and ninja are installed
 +
<syntaxhighlight lang=bash>
 +
sudo apt install python3 python3-pip python3-setuptools python3-wheel ninja-build
 +
</syntaxhighlight>
 +
 +
Then use '''pip3''' install '''Meson''' directly from its repository.
 +
<syntaxhighlight lang=bash>
 +
sudo -H pip3 install git+https://github.com/mesonbuild/meson.git
 +
</syntaxhighlight>
 +
 +
=== Hotdoc ===
 +
 +
The GstVPI plugin makes use of the Hotdoc documentation. In order to install it you need to follow the next steps:
 +
 +
First install the Hotdoc dependencies:
 +
 +
<syntaxhighlight lang=bash>
 +
sudo apt install python3-dev libxml2-dev libxslt1-dev cmake libyaml-dev libclang-dev llvm-dev libglib2.0-dev libjson-glib-dev flex
 +
</syntaxhighlight>
 +
 +
Then install their latest release version with:
 +
 +
<syntaxhighlight lang=bash>
 +
python3 -m pip install hotdoc
 +
</syntaxhighlight>
 +
 +
== Building the project ==
 +
 +
The GstVPI plugin must be built natively on the hardware. On its simplest form run:
 +
 +
<syntaxhighlight lang=bash>
 +
meson build --prefix /usr/
 +
ninja -C build
 +
ninja -C build test
 +
sudo ninja -C build install
 +
</syntaxhighlight>
 +
 +
For additional customization, you may refer to the following table of options:
 +
 +
<center>`
 +
{| class="wikitable"
 +
|-
 +
! Configure Option !! Description
 +
|-
 +
| -Dexamples=disabled || Skip examples compilation
 +
|-
 +
| -Dtests=disabled || Skip tests compilation
 +
|-
 +
| -Ddoc=disabled || Skip documentation generation
 +
|-
 +
| --prefix /usr || Set the installation path of the library
 +
|}
 +
<b>Table 1.</b> GstVPI configuration options (Meson)</caption>
 +
</center>
 +
 +
 +
  
  

Revision as of 11:22, 26 October 2020



Previous: Getting Started/Getting the code Index Next: User Guide





Dependencies

The GstVPI plugin has the following dependencies:

Meson

The GstVPI plugin makes use of the Meson build system. To build correctly this plugin you need to use the latest version of Meson:

First, make sure python dependencies and ninja are installed

sudo apt install python3 python3-pip python3-setuptools python3-wheel ninja-build

Then use pip3 install Meson directly from its repository.

sudo -H pip3 install git+https://github.com/mesonbuild/meson.git

Hotdoc

The GstVPI plugin makes use of the Hotdoc documentation. In order to install it you need to follow the next steps:

First install the Hotdoc dependencies:

sudo apt install python3-dev libxml2-dev libxslt1-dev cmake libyaml-dev libclang-dev llvm-dev libglib2.0-dev libjson-glib-dev flex

Then install their latest release version with:

python3 -m pip install hotdoc

Building the project

The GstVPI plugin must be built natively on the hardware. On its simplest form run:

meson build --prefix /usr/
ninja -C build
ninja -C build test
sudo ninja -C build install

For additional customization, you may refer to the following table of options:

`
Configure Option Description
-Dexamples=disabled Skip examples compilation
-Dtests=disabled Skip tests compilation
-Ddoc=disabled Skip documentation generation
--prefix /usr Set the installation path of the library

Table 1. GstVPI configuration options (Meson)












Previous: Getting Started/Getting the code Index Next: User Guide